Microsoft Knowledge Base Email Alertz

(324721) - 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.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











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

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 "failed" 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 "failed."

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.

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
Keywords: 
kbprb KB324721
       

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