14 Replies Latest reply on Apr 22, 2016 7:30 AM by wcoffey

    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 ?