It is currently 23 Sep 2017 3:08


Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 16 May 2016 6:11 
Offline
Nouveau
Nouveau
User avatar

Joined: 08 Sep 2010 12:00
Posts: 73
All,

In order to properly bring the oscompstat code back from your PowerShell script, you must include this line as the last parameter in the SET tab.

; EXIT $LASTEXITCODE

Yes, it begins with a semi-colon. This tells the PowerShell executable that there are no more parameters.

The next executable command is EXIT and it brings the last exit code back to CM.

~~Goo


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved