Deploy the MacOS Agent with Third Party MDM

Deploying the MacOS Agent with a Mobile Device Management (MDM) system is possible with the following commands in a logon script:

  • cd ~/Desktop || exit 1
  • curl -sSO [Enter the link to your organization’s MacOS Smart Agent Installer]
  • hdiutil attach -nobrowse SmartAgent.dmg
  • cd /Volumes/SmartAgent/ || exit 1
  • sudo installer -pkg SmartAgent.pkg -target /
  • cd ~/Desktop || exit 1
  • hdiutil detach /Volumes/Smartagent/ -force
  • rm -rf SmartAgent.dmg

Note: The link your organization’s MacOS Agent installer is located in the Relay (or Classroom) interface:

Note: Consult your MDM product documentation, as the logon script deployment may vary depending on the MDM product. For JAMF customer, refer to the following documentation for Installing a PKG Wrapped Inside a DMG.