Intune PowerShell Script Not Running? Check the Management Extension and Logs

Intune troubleshooting guide · Source checked 4 November 2026

An assigned PowerShell script may seem to do nothing because it has not reached the device, the Intune Management Extension (IME) has not run it, the script failed, or it completed without making the change you expected. These are different problems. Use the checks below to find which one applies before reassigning or rewriting a script.

This is an evidence-based guide using Microsoft documentation. The images below are Microsoft documentation screenshots; they are not a reproduced tenant demonstration.

Am I affected?

What you see Likely area to check Next evidence
No device or user status yet Assignment, device eligibility, and delivery Target group, device check-in, IME service
IME service or logs are absent Extension installation or device prerequisites Enrollment and IME requirements
Script status shows failed Execution error, context, signature, or architecture AgentExecutor.log and script settings
Status shows succeeded but the change is missing Script logic or verification method Actual output and state on the device
Script worked once but does not run again Normal platform-script behavior Script revision and assignment history

1. Confirm assignment and status in Intune

In the Intune admin center, open Devices → Scripts and remediations → Platform scripts, select the script, and review Device status and User status. Confirm the intended group is assigned and that the affected device or user is actually in scope. A missing status is not proof that PowerShell failed; first verify delivery and eligibility. Microsoft also documents that Windows platform scripts generally run once and do not run again at each sign-in.

Microsoft Intune documentation screenshot showing the Windows platform script creation screen
Microsoft documentation screenshot: creating a Windows platform script. View the current Microsoft guide.
Microsoft Intune documentation screenshot showing platform script assignment settings
Microsoft documentation screenshot: script assignments. Confirm the target group before troubleshooting the device. Source: Microsoft Learn.

2. Check the Intune Management Extension on the device

On the affected Windows device, open PowerShell and run this read-only check:

Get-Service -Name IntuneManagementExtension -ErrorAction SilentlyContinue

Expected result: a service named IntuneManagementExtension with status Running. If nothing is returned, check whether the device meets Microsoft’s IME prerequisites and whether the extension is installed. If the service is present but stopped, record that state before changing it; a stopped service can explain why scripts are not processed.

IME is installed when a supported Intune workload requires it. Its presence alone does not prove that this particular script was assigned or executed. See Microsoft’s IME prerequisites and check-in guide for supported enrollment and join scenarios.

3. Read the logs that answer different questions

IME logs are normally under C:\ProgramData\Microsoft\IntuneManagementExtension\Logs. Check whether the main logs are present:

$logPath = Join-Path $env:ProgramData 'Microsoft\IntuneManagementExtension\Logs'
Get-Item (Join-Path $logPath 'IntuneManagementExtension.log'), (Join-Path $logPath 'AgentExecutor.log') -ErrorAction SilentlyContinue | Select-Object Name, LastWriteTime, Length

Expected result: file names, modification times, and sizes. IntuneManagementExtension.log helps trace check-ins and policy processing. AgentExecutor.log is the more useful starting point for a script that reached execution. A missing or stale log calls for checking IME installation and check-in; a recent execution error calls for inspecting the script and its settings.

For a small recent sample, run:

Get-Content (Join-Path $logPath 'AgentExecutor.log') -Tail 80

Look for the relevant execution time, result and error. Do not publish raw logs: they can contain device identifiers, paths and other organization details. Redact them before sharing with support.

4. Check the script settings against its code

Review whether the script is configured to run using the logged-on user’s credentials or the system context, whether signature enforcement is enabled, and whether it uses a 32-bit or 64-bit PowerShell host. A command that succeeds in an administrator session may fail under the assigned context. Check file and registry paths, permissions, and the script’s own error handling. Microsoft documents a 30-minute script execution limit and retry behavior after failures; a slow or repeatedly failing script needs its execution evidence, not just another sync.

5. Sync, then verify the intended result

Where available, Company Portal → Settings → Sync requests a device and IME check-in. Then compare the Intune status and log timestamp with the device’s actual state. Verify the outcome the script was meant to produce, such as the target registry value, file or configuration setting. A successful script exit is not by itself proof that the desired change occurred. If the script has already completed, a new check-in normally does not rerun the same platform script; use Microsoft’s documented script update behavior and reassess whether a remediation is more suitable for repeated checks.

Microsoft’s October 2026 Intune service update describes faster Windows script delivery through push notifications. That can reduce delivery delay, but it does not make every completed platform script rerun or fix a script error. Check the status and logs rather than assuming timing is the only cause.

If these checks do not explain it

Confirm the device’s Intune enrollment, supported Windows version, network access to required Intune endpoints, system time, and policy targeting. Compare one affected device with one working device using the same assignment. If the issue is specific to script logic, reproduce it safely in the same execution context and inspect its exit code and output. Avoid broad changes to production assignments until the failure point is clear.

Related guides

For general Windows troubleshooting, see the Windows guide library. The Microsoft 365 topic page groups related workplace tools and services. These checks can also help separate an Intune delivery issue from a Windows problem on the device.

Microsoft sources

Leave a Comment