1 2 Previous Next 15 Replies Latest reply on Mar 1, 2018 10:49 AM by msalmon

    Powershell Software Distribution always return code 0




      I work actualy with Landesk 9.0 SP3.


      I want to deploy on some computer a powershell script and I want to take the exit code from powershell as return code for the déployment on the computer.


      As prove of concept I tested with a file test.ps1 :

      exit (1)


      As I déploy this on my computer, it return always 0.

      (the deployment went well)

      And that's true, the script was executed on my computer.


      I don't want this result, I want an error on the distribution result.


      How is it possible ?



        1 2 Previous Next