I have PSADT script that checks if the certain software is already installed, and then Exit-Script. I am deploying the PSADT as Package/Program using SCCM, so I am wondering if there is an exit code I can give back to SCCM that will mark the program as “Not Required” for that client? Rather than the typical Success, Reboot Required, or Failure Retry codes?
I might be wrong but if CCMExec decides to execute the package, it is considered to be “required”. I think the “not required” flag comes from the conditions and requirements set for the package.
If these requirements are met, the program is launched with your parameters and the rest is decided by:
If you decide to deploy this as an application you can use Global Conditions to decide if the application is applicable to the client: