Skip to main content

macOS Remote Worker Agent Installation with Microsoft Intune

Deploy NetBeez macOS Remote Worker agents across managed Mac endpoints using a shell script policy in Microsoft Intune and your NextGen Secret Key.

Written by Panickos Neophytou

Administrators can deploy the NetBeez macOS Remote Worker agent silently across managed Apple laptops and desktops using a shell script policy in Microsoft Intune.

In this article:

Prerequisites

Step 1 — Download and Configure the Installation Script

  1. Download the official NetBeez macOS shell installation script from GitHub: NetBeez_Agent_Install.sh.

  2. Open NetBeez_Agent_Install.sh in a text editor and configure your --secretkey value along with any desired optional flags—such as --disablecontrol=1 to prevent end users from stopping the agent or --requestlocationservices=1 to prompt once for enhanced Wi-Fi diagnostics. For the complete list of flags, see macOS Remote Worker Agents - Command Line Parameters.

Step 2 — Deploy the Shell Script in Microsoft Intune

  1. Sign in to the Microsoft Intune admin center and navigate to Devices → Scripts → Add → macOS (or Devices → macOS → Shell scripts → Add).

  2. In Basics, enter a Name (for example, NetBeez macOS Remote Worker) and an optional Description, then select Next.

  3. In Script settings, configure the following properties and select Next:

    • Upload script: Browse to and select your edited NetBeez_Agent_Install.sh file.

    • Run script as signed-in user: Select No (default) so Intune executes the installer as the root user.

    • Hide script notifications on devices: Keep default to display standard Intune configuration notifications, or hide notifications according to your IT policy.

    • Script frequency: Select Not configured (default) so the installation script runs once per device.

    • Max number of times to retry if script fails: Choose Not configured (default) or select a retry count if endpoints experience intermittent connectivity.

  4. In Assignments, click Select groups to include (or Add groups), choose one or more Microsoft Entra ID user or device groups to receive the Remote Worker agent, click Select, and select Next.

  5. In Review + add, review your settings summary and click Add to save and deploy the script policy.

Step 3 — Verify Agent Registration

As managed macOS devices check in with Microsoft Intune and execute the script, each endpoint registers automatically and appears online in Agents → Remote Workers. From there, you can assign Targets and Agent Groups via Manage Assignments. For Windows Intune deployments, see Windows Remote Worker Agent Installation with Intune.

Did this answer your question?