SMS: 'Too Many Parameters' Error When Running Smsls.bat

Last reviewed: March 12, 1998
Article ID: Q161412
The information in this article applies to:
  • Microsoft Systems Management Server, versions 1.0, 1.1, and 1.2

SYMPTOMS

When you run the Smsls.bat file on a client computer running Windows 95, you may receive errors, and the command prompt window may display the following message:

   Too Many Parameters
   Bad Command or Filename
   Bad Command or Filename
   Too Many Parameters

CAUSE

If there is a space in the directory name for the "path" environment variable (such as "C:\Program Files"), and you run the Smsls.bat file on a client computer running Windows 95, Systems Management Server does not parse the path correctly.

This problem occurs when Smsls.bat sets the SMS_P=%PATH% environment variable. SMS_P is then used in various places in the logon script that contains the space, and causes that command-line to clock.

WORKAROUND

To work around this problem, add quotation marks around the path variable in two (and only two) places in the Smsls.bat file.

  1. Place quotation marks around the %PATH% variable under :RUN_FROM.

    For example, change

          if not "%OS%" == "Windows_NT" set PATH=%0\..;%0\..\%SMS_BIN%;%PATH%
    

    To:

          if not "%OS%" == "Windows_NT" set
    
PATH=%0\..;%0\..\%SMS_BIN%;"%PATH%"

  1. Place quotation marks around SMS_P when it is reassigned to the path at the end of the script under :RESTORE.

    For example, change

          PATH=%SMS_P%
    

    To:

          PATH="%SMS_P%"
    

STATUS

Microsoft has confirmed this to be a problem in Systems Management Server versions 1.0, 1.1, and 1.2. This problem was corrected in the latest Microsoft Systems Management Server version 1.2 U.S. Service Pack. For information on obtaining the service pack, query on the following word in the Microsoft Knowledge Base (without the spaces):

   S E R V P A C K


Additional query words: prodsms 1.00 1.10 1.20
Keywords : kbbug1.00 kbbug1.10 kbbug1.20 kbfix1.20.sp2 smsconfig smssetup kbfix1.20.sp3 kbenv kbfixlist
Version : 1.00 1.10 1.20
Platform : WINDOWS
Solution Type : kbservicepack


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 12, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.