Deploy a PowerShell Script as a SCCM Application

This is just a quick post to help those who are struggling to find the correct syntax to place into the program (CMD line) field when deploying a PowerShell Script as an application or program for that matter using SCCM.

Just place this into the Program line or CMD line for a program:

Powershell.exe -ExecutionPolicy ByPass -File Scriptname.PS1

You can add other properties also like -NoProfile but to be honest I have found this to work 100% of the time without the need for those extras. Just make sure you detection method is solid!

Leave a Reply

Your email address will not be published. Required fields are marked *