Microsoft KB Archive/260395

= SMS: Environment Variables May Not Work Properly in a Program Command Line =

Article ID: 260395

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 1

-



This article was previously published under Q260395



SYMPTOMS
When you use environment variables in program command lines, the variable may not be expanded (replaced with the actual value of the variable) before you run the command. A non-batch file command line receives the actual environment variable (for example, %TEMP%) rather than the actual value of the variable.



RESOLUTION
To resolve this problem, obtain the latest service pack for Systems Management Server version 2.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

236325 How to Obtain the Latest Systems Management Server 2.0 Service Pack



WORKAROUND
To work around this behavior, use the command line within a batch file to allow the environment variable to be replaced with the actual value.

NOTE: This may not resolve all types of packages.



STATUS
Microsoft has confirmed this to be a problem in Systems Management Server version 2.0. This problem was first corrected in Systems Management Server version 2.0 Service Pack 2. This problem was first corrected in Systems Management Server version 2.0 Service Pack 2.

Additional query words: prodsms

Keywords: kbbug kbclient kbconfig kbfix kbpackage kbsms200sp2fix kbsoftwaredist KB260395

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.