Quantcast
Channel: LANDESK User Community : Popular Discussions - Software Distribution
Viewing all articles
Browse latest Browse all 2282

Powershell Software Distribution always return code 0

$
0
0

Hello,

 

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 ?

 

Thank's


Viewing all articles
Browse latest Browse all 2282

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>