AgentExecutor.log
AgentExecutor.log records the PowerShell scripts that the Intune Management Extension launches, including platform scripts and remediation scripts.
- Location
C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\AgentExecutor.log- Used for
- PowerShell script execution from Intune
Open AgentExecutor.log in CMTrace.devDrop the file in. It is read in your browser and never uploaded.
What AgentExecutor.log records
- Start of each script and the PowerShell host used
- Script output and errors that the extension collects
- Exit code and timeout handling
What to search for
| Search for | What it tells you |
|---|---|
exit code | The result returned by the script. |
timeout | The script ran longer than allowed and was stopped. |
error | Standard error output from the script, often the real cause. |
Example lines
Executing PowerShell script Set-Defaults.ps1 in system context
Script wrote to error stream: Access to the path is denied
Script exit code 1Simplified for illustration. Real lines carry a time stamp, component and thread.
Common error codes in AgentExecutor.log
| Code | Meaning |
|---|---|
0x80070005 | Access denied. Check the execution context and permissions. |
0x80070002 | File not found. Check script paths and dependencies. |
The viewer's error lookup (Ctrl+E) explains these codes and links to Microsoft Learn.
Tips for reading it
- Read it together with IntuneManagementExtension.log. The main log says a script was requested, this one says what happened when it ran.
- Test the script locally in the same context (system or user) that the assignment uses.
Questions about AgentExecutor.log
What is AgentExecutor.log?
It is the log of the component that runs PowerShell scripts for the Intune Management Extension.
Why did my Intune script not run?
Check IntuneManagementExtension.log to confirm the script was assigned and requested, then AgentExecutor.log for the execution result.