Disable Device Enrollment Program (DEP) notification on macOS Monterey.md
NB! command-R
is replaced with holding the power button on M1 macs.
With full reinstall (recommended)
a. Boot into recovery using command-R
during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS
b. Initial installation will run for approximately 1 hour, and reboot once
c. It will then show a remaining time of about 10-15 minutes
d. When it reboots again, be sure to press command-R
to boot into recovery and continue with Main procedure
Without full reinstall
Boot to Recovery Mode by holding command-R
during restart and continue with Main procedure
Main procedure
- Open Utilities → Terminal and type
$ csrutil disable
$ reboot
-
Hold
command-R
during the reboot to enter Recovery Mode again -
Enter Disk Utility, and mount the
Macintosh HD
volume (or whatever your main volume is named). (It might already be mounted.) -
Exit Disk Utility, open Utilities → Terminal, and type
$ cd "/Volumes/Macintosh HD/System/Library"
$ 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
-
If you come to the “Choose your country/location” dialogue, make sure to not select a wireless network, but “continue without an internet connection”
-
After a normal boot, you can verify the DEP status in Terminal:
$ profiles status -type enrollment
Enrolled via DEP: No
MDM enrollment: No
I also got scammed on a new m1 macbook 14" I paid £1500 for.
It was working completely fine, I tested just about everything. My final step was to wipe the SSD clean so i could do a fresh install and migration from my old mac.
Right after the OS install it tells me the device is managed by some company and I needed their login and password to continue installation.
I contacted the seller, who had actually legitimately purchased the laptop from the very same company in the installation (and had emails to prove it!). I tried contacting that company and I cannot get a response. I was devastated. Nearly a month's income gone for a useless brick. My wife would kill me.
Thankfully I found this page on github. I managed to get past the initial installation screen.
I was unable to install macos by loading from external USB because halfway through the installation, the installer would stop and tell me that internet is required for installation.
I was able to do it in the end. Here are the combination of steps from different posts I took. I hope it is helpful to future readers:
During the macos monterey setup I did not activate the wifi (this step probably not necessary!)
restored from my time machine backup, signed into icloud, activated firevault, etc
Blocked the following in my hosts file:
Did the "sudo profiles remove -all"
Rebooted
The above should work for 2021 Macs with Monterey, but you will still apparently get some notifications saying that the computer is remotely managed by [company].
Does anyone have any advice for keeping my mac from getting locked out again? What are things to avoid? I would appreciate the advice. (I will continue trying to contact that company)
Thank you,
Tim