Quick Answer: To deploy PowerShell scripts via SCCM without full application packaging, use the Configuration Manager Run Scripts node under Software Library > Scripts. Add your script, secure RBAC second-approver sign-off, select a target device collection, and monitor real-time client output directly within the admin console.
Managing devices at scale can be challenging, but SCCM simplifies this by allowing you to deploy PowerShell scripts directly to client machines. Whether you’re installing applications, modifying configurations, or collecting data, this feature is invaluable. Let’s walk through the process.
Prerequisites
| Deployment Method | Delivery Channel | Content Distribution Required? | Best Use Case |
|---|---|---|---|
| SCCM Run Scripts | Fast Channel (Notification push over TCP 10123) | No; raw script payload pushes directly to client RAM. | Immediate ad-hoc troubleshooting, log collection, and emergency remediation. |
| Standard Package / Program | Policy polling (Default 60-minute cycle) | Yes; full package payload must replicate to Distribution Points. | Multi-file toolkits, heavy binary installers, and scheduled recurring scripts. |
| Configuration Item & Baseline | Compliance schedule (Daily or weekly evaluation) | No; discovery and remediation script blocks run in-agent. | Continuous configuration compliance drift auditing and automatic self-healing. |
Before you begin, ensure the following:
SCCM Version: Your SCCM environment should be running version 1706 or later.
Client Requirements: Targeted client devices must have PowerShell version 3.0 or higher installed.
Permissions: You need appropriate permissions to create, approve, and run scripts within SCCM.
Step 1: Create the PowerShell Script
Open the SCCM Console: Launch the SCCM console and navigate to the Software Library workspace.
Access Scripts: In the left-hand pane, expand Software Library > Scripts.
Create New Script:
On the Home tab, click Create Script.

In the Create Script wizard:
Script Name: Enter a descriptive name for your script.
Script Language: Select PowerShell.
Script Content: Paste your PowerShell code into the provided field.
# Define Username and Secure Password
$username = "TechEUC"
$password = ConvertTo-SecureString "TechEUC.com!" -AsPlainText -Force
# Create the Local User Account
try {
New-LocalUser -Name "$username" -Password $password -FullName "$username" -Description "TechEUC Test User" -ErrorAction Stop
Write-Output "Local user '$username' created successfully."
exit 0
} catch {
Write-Error "Failed to create user: $_"
exit 1
}“
Click Next, review the summary, and then click Close to finish
Step 2: Approve the Script
Select the Script: In the Scripts list, click on the script you just created.
Approve Script:
On the Home tab, click Approve/Deny.
If you notice the Approve/Deny option is greyed out, then we need to allow the Author to approve own scripts.

Go to your Administration / Site / Hierarchy Setting. Then Disable “Script Authors require additional script approver”

Now the Approve/Deny option should be enabled

In the Approve or deny script dialog box:
Select Approve.
Optionally, enter a comment regarding the approval.
Click Next, review the summary, and then click Close.

Note: By default, script authors cannot approve their own scripts. This setting can be modified in the Hierarchy Settings if necessary
Step 3: Run the Script on Target Devices
Navigate to Device Collections: In the SCCM console, go to Assets and Compliance > Device Collections.
Select Target Collection: Right-click on the device collection you wish to target and choose Run Script.

Choose Script:
In the Run Script wizard:
Select the approved script from the list.
Click Next.

Review the summary and click Next to initiate the script deployment.
Click Close to exit the wizard.
Note: Scripts are executed immediately on online clients. Offline clients will execute the script once they come online, within a one-hour window.
Step 4: Monitor Script Execution
Access Script Status: In the SCCM console, navigate to Monitoring > Script Status.
Review Results:
Locate the script you ran in the list.
Click on it to view detailed execution results, including success rates and any error messages.

Note: A script exit code of 0 typically indicates successful execution
Related SCCM & Automation Guides:
- Understanding your infrastructure: What Is a Distribution Point in SCCM / MECM?
- Designing capacity & boundary groups: Planning for Distribution Points in SCCM
- Modern alternative with Intune: Automating Defender Platform Updates with Intune Remediations
Next Steps in Production
When operationalizing SCCM Run Scripts across enterprise environments:
- Dual-Administrator Approval: In production hierarchies, ensure script approvers differ from script authors to maintain security compliance.
- Fast Channel Verification: Ensure client communication utilizes BGB (Big Green Button) fast notification channel so scripts trigger within seconds rather than waiting for machine policy intervals.
- Output Sizing: Keep script standard output under 4 KB to prevent truncation in the SCCM administrative console and SQL reporting tables.