Page 1 of 1

Returning OSCOMPSTAT in PowerShell

Posted: 16 May 2016 6:11
by DocGoo
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