LucD
Leadership
Leadership

Exit code 1 means that an uncaught Throw happened (i.e. a terminating exception).
See Windows PowerShell Exit Codes

With the Try-Catch I mentioned earlier you can use different exit codes in the Catch block to clarify what went wrong.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos