Task server clients do not properly report exit codes from power shell scripts
search cancel

Task server clients do not properly report exit codes from power shell scripts

book

Article ID: 164709

calendar_today

Updated On:

Products

Task Server

Issue/Introduction

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

Environment

SMP 7.x - 8.1.x

Resolution

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)