MarcoTizzoni604411

Job return code is always zero when powershell script ha syntax error

Discussion created by MarcoTizzoni604411 on Sep 7, 2017
Latest reply on Sep 12, 2017 by Wolfgang_Brueckler_1288
Hi,
I came across a weird issue. It looks like that for Win job when the interpreter is powershell if the script has any syntax error the job will return successfully anyway, i.e. return code is 0.
My guess is that this a powershell issue. Anybody knows how to solve it?

Best,
Marco

Outcomes