Getting a PowerShell Script to Work in SCCM

Here’s a tip for those trying to run a PowerShell script out of SCCM. If you want to run a Powershell script in SCCM, you’ll need to bypass the execution policy if it has not been modified on the computers in your domain. If you want to do this, in the “Command line” field of the SCCM package kickoff your .ps1 file with the following:

Powershell.exe -executionpolicy Bypass -file .myfilename.ps1

Here’s a screenshot of where to look in SCCM:



Leave a Reply

%d bloggers like this: