Microsoft KB Archive/324721

= SMS: Clitravl.exe Returns Error Code 1 Even If It Runs Successfully =

Article ID: 324721

Article Last Modified on 2/26/2007

-

APPLIES TO


 * Microsoft Systems Management Server 2003
 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 1
 * Microsoft Systems Management Server 2.0 Service Pack 2
 * Microsoft Systems Management Server 2.0 Service Pack 3
 * Microsoft Systems Management Server 2.0 Service Pack 4

-



This article was previously published under Q324721



SYMPTOMS
If you use a Microsoft Systems Management Server (SMS) advertisement to run Clitravl.exe to set or modify Travel mode on SMS clients, the advertisement return a &quot;failed&quot; status even if Clitravl.exe runs successfully.



CAUSE
Clitravl.exe returns error code 1 even if it runs successfully. You can confirm this by verifying that the Travel mode properties are selected on the clients and that the advertisement status is &quot;failed.&quot;



WORKAROUND
To work around this behavior and to cause the correct status to be returned, you can run Clitravl.exe from a batch file to detect and set the return status. This is a sample batch file:

clitravl.exe /TRAVEL=ON

if errorlevel 1 exit 0



STATUS
This behavior is by design.



MORE INFORMATION
Clitravl.exe returns the following values when you run it:
 * Clitravl.exe returns 1 if Travel mode was already on or was just turned on.
 * Clitravl.exe returns 0 if Travel mode was already turned off or was just turned off.
 * Clitravl.exe returns -1 if an error occurs.

Additional query words: prodsms

Keywords: kbprb KB324721

-

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

© Microsoft Corporation. All rights reserved.