Microsoft Knowledge Base Article
This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved.
Terms
of Use |
Trademarks
Article ID: 324721 - Last Review: February 26, 2007 - Revision: 3.4
SMS: Clitravl.exe Returns Error Code 1 Even If It Runs Successfully
This article was previously published under Q324721
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 "failed" status even if Clitravl.exe runs successfully.
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 "failed."
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
This behavior is by design.
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.
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
Community Feedback System
Very often, it takes hours to solve a problem. Very often, you've looked high
and low, and have tried a lot of solutions. When you finally found it, chances
are, it was because someone else helped you. Here's your chance to give back.
Use our community feedback tool to let others know what worked for you and what
didn't.
Please also understand that the community feedback system is not warranted to be
correct, it's simply a system that we've built to let people try and help each
other. If something in a feedback response doesn't make sense to you, or you're
not comfortable making changes that the feedback talks about (like registry
edits), please consult a professional.
Thank you for using kbAlertz.com Feedback System.
-- Scott Cate