With scripts that use exit codes with the following syntax the task client will not accurately pick up the error code and report a failure.
Syntax:
$Host.SetShouldExit(99)
n / a
SMP 7.x - 8.1.x
This issue has been addressed by the Symantec Development team. A fix was released to ITMS 8.1 RU2.
Prior to ITMS 8.1 RU2, the workaround is to use a different exit command in the PowerShell scripts. Use the following syntax instead:
Syntax:
[Environment]::Exit(98)