I'm using an SCCM 2012 application deployment to install software. The specific install type is scripted installer as SCCM kept failing for exe validation errors. The script is powershell and successfully installs the software even when executed by SCCM.
The problem is that SCCM only sees the return of 0 from the completion from the script. I've tried write-host
, return
, write-output
, and just a line item with the code for a soft reboot. None of them seem to be read by SCCM as the app execution log captures a return of 0.
How do you output return codes from powershell so that SCCM can interpret them?