A SafeDep subscription is required to sync PMG events with SafeDep Cloud.
Install
-
Clone pmg and generate the installer from
scripts/mdm/:You can optionally add- macOS
- Linux
--config /path/to/config.ymlto package a machine-wide config. Setcloud.enabled: truein that file.
-
Upload the generated installer through Intune, using the procedure for your platform:
- macOS
- Linux
Follow Microsoft’s procedure for macOS shell scripts. Uploadpmg_setup_install_macos_standalone.sh. Set Run script as signed-in user to No. -
Assign the policy to a device group. Use a recurring install frequency if new users can be added later. Each run configures the target users and runs
pmg cloud syncfor each one. A direct standalone upload in Intune cannot pass--cloud-sync-onlyto the script. Run the normal installer again when you need to sync or configure later users.
Uninstall
Upload the matching uninstaller from the same output directory (pmg_uninstall_macos_standalone.sh or pmg_uninstall_linux_standalone.sh), with the same platform settings as install. Do not assign the install and uninstall policies at the same time.
Other MDMs
Jamf, JumpCloud, and the script layout.
MDM scripts README
Source of truth in the PMG repo.

