Intune macOS devices Scripts

Artem Shaturskyi 110 Reputation points
2025-01-23T09:10:05.51+00:00

Hello!
Is there any information on how Intune macOS devices Scripts are stored on end clients? Is script code encripted or not?
From what I know, if a script is configured to execute at a specific frequency, it continues running even if the client loses internet connectivity after the first run. This seems to indicate that the script code is saved on the client rather than being pulled from Intune before each execution. My concern is whether a user with full admin access on the client device could access the script's code. Could you clarify this?

Microsoft Intune MacOs
Microsoft Intune MacOs
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.MacOs: A family of Apple operating systems for the Apple Mac line of computers.
96 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,510 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Aleksandr Kolesnikov 641 Reputation points
    2025-01-23T14:00:37.4233333+00:00

    Hi @Artem Shaturskyi

    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:

    1. Open Console:
      • Press CMD+Space, type Console, and press Enter.
      1. Navigate to:
        • Log Reports > IntuneMDMDaemon*.
    2. 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.

    User's image

    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

    User's image

    Finding PolicyID in Intune

    To locate the PolicyID for filtering logs:

    1. Open the Microsoft Intune portal.
    2. Go to Devices > Scripts.
    3. Find the specific script or policy.

    Note the PolicyID (unique identifier) for that script.User's image

    Use filter the logs to show only the lines relevant to the specified policy or script.

    User uploaded image

    But I am not sure where they are stored during deployment.

    Best regards,

    Aleksandr


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.