โ† Windows & Intune
๐Ÿ“ฑ Intune

Deploy PowerShell Script via Intune โ€” Upload & Assign

Steps to upload, configure, and assign a PowerShell script through the Intune admin center with the correct execution settings.

Navigate to Scripts in Intune

Open endpoint.microsoft.com โ†’ Devices โ†’ Scripts and remediations โ†’ Platform scripts โ†’ + Add โ†’ Windows 10 and later


Upload Your Script

Give it a descriptive name, then upload your .ps1 file. Use these recommended settings:

โ†’
Run using logged-on credentials
No โ€” runs as SYSTEM for elevated tasks
โ†’
Enforce script signature check
No โ€” unless your org requires signed scripts
โ†’
Run in 64-bit PowerShell
Yes โ€” avoids 32-bit compatibility issues

Assign to Device Group & Create

On the Assignments tab, target the correct device group. Click Create. The script will run on managed devices at the next check-in (usually within 1 hour).

# Check if script ran successfully โ€” look for this log:
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\AgentExecutor.log