Skip to content

Instantly share code, notes, and snippets.

@macjustice
Last active April 30, 2021 22:44
Show Gist options
  • Save macjustice/aa1fa3690003cbfec8d5b4c644ccbf58 to your computer and use it in GitHub Desktop.
Save macjustice/aa1fa3690003cbfec8d5b4c644ccbf58 to your computer and use it in GitHub Desktop.
DEP Debugging from JAMF

Collecting logs for DEP enrollment processes

  1. Hold CMD + R at boot to boot the machine into Recovery Mode.
  2. Navigate to Utilities > Terminal to launch a Terminal shell
  3. Run the following com mands against the internal volume (normally just "Macintosh HD"):
    • defaults write /Volumes/Macintosh\ HD/Library/Preferences/com.apple.apsd EnableDetailedLogging -bool TRUE
    • defaults write /Volumes/Macintosh\ HD/Library/Preferences/com.apple.MCXDebug debugOutput -2
    • defaults write /Volumes/Macintosh\ HD/Library/Preferences/com.apple.MCXDebug collateLogs 1
    • touch /Volumes/Macintosh\ HD/var/db/MDM_EnableDebug
  4. Reboot the machine
  5. Continue through the Setup Assistant as normal and enroll via DEP. Once at the desktop, we should find the log written to: /Library/Logs/ManagedClient/ManagedClient.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment