Skip to main content

macOS Remote Worker Agents - Command Line Parameters

Reference all command-line parameters for silent mass deployment of NetBeez macOS Remote Worker agents, including Secret Key and Location Services flags.

Written by Panickos Neophytou

The NetBeez macOS Remote Worker installer supports silent, automated mass deployments through enterprise MDM suites such as Microsoft Intune or Jamf using the NetBeez_Agent_Install.sh deployment script. This reference documents every command-line flag available to customize registration, naming, startup behavior, tray controls, and macOS Location Services prompts.

Unless you lock end-user controls with --disablecontrol=1, users can also adjust runtime preferences after installation from the NetBeez icon in the macOS menu bar.

In this article:

Available Command-Line Parameters

Flag

Description

Default & Possible Values

--autosetup (optional)

Selects automatic cloud-brokered registration using the Server Secret Key or manual setup using explicit host, ports, and certificate.

Default: 1

  • 1 — Automatic setup with secret key

  • 2 — Manual setup with ports and certificate

--secretkey (required when --autosetup=1)

Your NetBeez Server Secret Key, located by Administrators in Settings → Information & Health under Server Information.

Example: --secretkey=caafc19ae7214fb5nb18111a21031cf0f423c599

--certsource (required when --autosetup=2)

Path to the server TLS certificate file for manual setup.

Example: --certsource="/Users/user_name/Documents/cert.pem"

--dashboardurl (required when --autosetup=2)

Hostname or FQDN of your NetBeez server.

Example: --dashboardurl="acme.netbeezcloud.net"

--port (required when --autosetup=2)

Unencrypted agent communication port.

Example: --port=20019

--secureport (required when --autosetup=2)

TLS-secured agent communication port.

Example: --secureport=20018

--websocketport (required when --autosetup=2)

WebSocket communication port (see WebSocket Connection Support).

Example: --websocketport=443

--agentname (optional)

Custom display name for the endpoint in Agents → Remote Workers.

Default: Local macOS hostname. Example: --agentname="John-Laptop"

--uuid (optional)

Explicit UUID to assign to the agent (for example, when re-imaging a laptop and preserving its historical record).

Default: Random UUID generated on install. Example: --uuid="A2A4E8E8-AB20-461B-A771-7372744F46DB"

--autoupdate (optional)

Controls whether the Remote Worker agent updates automatically when a newer compatible version is released.

Default: 1

  • --autoupdate=1 — Update automatically

  • --autoupdate=0 (or --autoupdate=) — Do not auto-update

--startonboot (optional)

Controls whether the NetBeez agent service starts automatically when macOS boots.

Default: 1

  • --startonboot=1 — Start automatically on boot

  • --startonboot=0 — Do not start on boot

--installgroup (optional)

Installs the desktop application for all local macOS user accounts or only the current user.

Default: 1

  • --installgroup=1 — Install for all users

  • --installgroup=2 — Install only for current user

--launchapp (optional)

Controls whether the NetBeez menu bar desktop app launches immediately after installation completes.

Default: 1

  • --launchapp=1 — Launch app after installation

  • --launchapp=0 — Do not launch app after installation

--versionvalidation (optional)

Validates that your NetBeez server supports the agent release being installed or updated before proceeding.

Default: 1

  • --versionvalidation=1 — Validate server compatibility

  • --versionvalidation=0 — Skip version validation

--disablecontrol (optional)

Hides the Start, Stop, Restart, and Exit controls in the macOS menu bar app so end users cannot stop monitoring.

Default: 0

  • --disablecontrol=0 — Service controls are available

  • --disablecontrol=1 — Service controls are hidden

--requestlocationservices (optional)

Controls whether the NetBeez desktop app shows a one-time prompt explaining how to allow macOS Location Services for unredacted Wi-Fi SSID/BSSID telemetry.

  • --requestlocationservices=1 — Prompt the user once after installation

  • --requestlocationservices=0 — Do not prompt the user

macOS Location Services and Wi-Fi Diagnostics Behavior

Passing --requestlocationservices=1 does not silently grant macOS Location Services permission—Apple requires the signed-in macOS user to approve the system Location Services prompt interactively, and MDM tools cannot bypass this consent dialog.

When --requestlocationservices=1 is set:

  1. The installer records a one-time permission-request policy.

  2. At its next interactive launch, the NetBeez desktop app displays an explanation dialog for enhanced Wi-Fi diagnostics.

  3. Clicking Enable Wi-Fi Diagnostics opens the native macOS Location Services consent prompt.

  4. Clicking Not Now dismisses the prompt cleanly without repeatedly nagging the user on future launches.

  5. If Location Services permission was previously denied in macOS, the app presents an Open System Settings button because macOS only displays the native consent prompt once.

Fallback & Scan Routing Behavior:

  • If Location Services permission is not granted, the Remote Worker agent continues running all network and endpoint tests normally; wireless scans still execute, though modern macOS releases redact SSID, BSSID, and wireless security metadata without Location Services access.

  • Whenever the desktop app holds Location Services permission, the agent automatically routes Wi-Fi queries through the app to collect complete SSID/BSSID details; otherwise, the background daemon performs a fallback scan automatically. Server-initiated SSIDs in Range scans never trigger unexpected permission popups on the user's screen.

  • Passing --requestlocationservices=0 on a subsequent upgrade does not revoke Location Services permission if the user already granted it.

Did this answer your question?