Skip to content

Instantly share code, notes, and snippets.

  • Save linyongfu2013/f0265a27648eea9545607e32906cf8d0 to your computer and use it in GitHub Desktop.
Save linyongfu2013/f0265a27648eea9545607e32906cf8d0 to your computer and use it in GitHub Desktop.

Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

  1. Restart to Recovery Mode by holding Command-R during restart

  2. Open Tools → Terminal and type

$ csrutil disable
  1. Restart computer and hold Command-R to enter Recovery Mode again

  2. Enter Disk Utility, and activate the Macintosh HD volume

  3. Exit Disk Utility, open the Terminal, and type

$ mount -uw /
$ cd /Volumes/Macintosh\ HD/System/Library
$ mkdir LaunchDaemons.disabled LaunchAgents.disabled
$ mv LaunchDaemons/com.apple.ManagedClient* LaunchDaemons.disabled/
$ mv LaunchAgents/com.apple.ManagedClient* LaunchAgents.disabled/
$ echo "0.0.0.0		albert.apple.com
0.0.0.0		iprofiles.apple.com
0.0.0.0		mdmenrollment.apple.com
0.0.0.0		deviceenrollment.apple.com
0.0.0.0		gdmf.apple.com
" >> /Volumes/Macintosh\ HD/etc/hosts
$ csrutil enable
  1. Restart computer again
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment