exit code returns 0 even it has access denied RRS feed

  • Question

  • I am calling powershell script remotely from orchestrator runbook.

    The powershell runs succesfully.

    But I found out in the program output for the runbook, it has some error about access denied in the powershell script.

    This is because the orchestrator account does not have access to one of the directory that is used in powershell.

    But the runbook job runs successful because Powershell returns exit code 0 even it has access denied when running the powershell. Why the powershell does not return exit code 1 or anything greater than 1.



    • Moved by jrv Monday, October 21, 2019 11:41 PM Correct forum
    Monday, October 21, 2019 11:13 PM


All replies