The Microsoft Intune Agent.app is responsible for deploying and managing scripts. It runs in the background to ensure policies are executed as defined in the Intune portal.
You can view logs for the Intune Agent using the Console app:
- Open Console:
- Press
CMD+Space
, typeConsole
, and press Enter.
- Navigate to:
- Log Reports > IntuneMDMDaemon*.
- Press
- Use the search bar at the top to filter logs:
- Enter the PolicyID obtained from the Intune portal (steps below).
- This filters log entries relevant to the script or policy.
Or view the logs directly from the file system without using:
- /Library/Logs/Microsoft/Intune - if Run script as signed-in user - YES
- ~/Library/Logs/Microsoft/Intune - if Run script as signed-in user - NO
Finding PolicyID in Intune
To locate the PolicyID for filtering logs:
- Open the Microsoft Intune portal.
- Go to Devices > Scripts.
- Find the specific script or policy.
Note the PolicyID (unique identifier) for that script.
Use filter the logs to show only the lines relevant to the specified policy or script.
But I am not sure where they are stored during deployment.
Best regards,
Aleksandr