Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save csrutil/ca334f9d2bfd8c5a40ab3b54691fbdb2 to your computer and use it in GitHub Desktop.
Save csrutil/ca334f9d2bfd8c5a40ab3b54691fbdb2 to your computer and use it in GitHub Desktop.

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

You'll get the best results with a full reinstall. Skip to step 5 if you don't want this

  1. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

  2. It will perform installation for approximately 1 hour, and reboot once

  3. It will then show a remaining time of appr. 10-15 minutes

  4. When it reboots, be sure to press command-R to boot into recovery and proceed to step 6

  5. Boot to Recovery Mode by holding command-R during restart

  6. Open Utilities → Terminal and type

$ csrutil disable
$ reboot
  1. Hold command-R during the reboot to enter Recovery Mode again

  2. Enter Disk Utility, and mount the Macintosh HD volume (or whatever your main volume is named). (It might already be mounted.)

  3. Exit Disk Utility, open Utilities → Terminal, and type

$ 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/
$ cd ../../etc
$ echo "0.0.0.0 iprofiles.apple.com" >> hosts
$ echo "0.0.0.0 mdmenrollment.apple.com" >> hosts
$ echo "0.0.0.0 deviceenrollment.apple.com" >> hosts
$ echo "0.0.0.0 gdmf.apple.com" >> hosts
$ csrutil enable
$ reboot
  1. When it comes to “Choose your country/location”, make sure to not select a wireless network, but “continue without an internet connection”

  2. After a normal boot, you can verify the DEP status in Terminal:

$ profiles status -type enrollment
Enrolled via DEP: No
MDM enrollment: No
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment