-
Restart to Recovery Mode by holding
Command-R
during restart -
Open Tools → Terminal and type
$ csrutil disable
-
Restart computer and hold
Command-R
to enter Recovery Mode again -
Enter Disk Utility, and mount the
Macintosh HD
volume (or whatever your main volume is named) -
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/
$ cd ../../etc
$ echo "0.0.0.0 albert.apple.com" >> hosts
$ 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
- Restart computer again