Enabling Additional MDM Logging on macOS Clients

Technical Articles

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

Create and modify the following files:
sudo defaults write /Library/Preferences/com.apple.MCXDebug debugOutput -2
sudo defaults write /Library/Preferences/com.apple.MCXDebug collateLogs 1
sudo touch /var/db/MDM_EnableDebug
Note:

Computers must be restarted to enable the debugging.

The output for this log is in the following locations:
/Library/Logs/ManagedClient/ManagedClient.log
and
/var/log/system.log
To disable debug logging, remove the following files and reboot the machine:
/var/db/MDM_EnableDebug
and
/Library/Preferences/com.apple.MCXDebug.plist