How To Disable Remote Management and Device Enrollment Notifications on Mac Os.
Are you setting up your MacOs but stuck on a Remote Management screen or won't stop getting Device Enrolment notifications? This is for you!
With Re-Format And Re-Install Mac Os.
Boot into recovery mode using
command + R
. During reboot, erase the hard drive using Disk Utility, and select reinstall Mac OS.- Open Disk Utility.
- Locate computer hard drive and choose erase.
- Exit Disk Utility.
- Then, Install new Mac OS.
Disable internet connection on initial setup.
- As you are going through the setup, when prompted to establish an internet connection, do not allow the connection.
- Skip it and and click "Continue without an internet connection".
- Complete setting up the admin account and configure other features as preffered.
- When all is done and in the admin account, connect to the internet. You will start
getting the enrollment prompts again and again.
Without Re-Formating -> Start here!
Disable Device Enrolment Program (DEP) notifications on Mac OS.
- While logged in normally, edit the hosts file with nano editor.
- Open terminal and type:
sudo nano /private/etc/hosts
Enter admin password when prompted.
Use the arrow keys on your keyboard to navigate the cursor to the last line of the file and type the following lines:
0.0.0.0 iprofiles.apple.com 0.0.0.0 mdmenrollment.apple.com 0.0.0.0 deviceenrollment.apple.com
- Press
control + X
from keyboard to Exit. - Now you will be asked whether you want to save. Enter Y for
yes
and N forno
. Type Y [Ensure you do this!]. - Confirm the file changes by hitting the
enter
key. - Check to see whether the enrolment calls have been blocked by typing:
sudo profiles show -type enrollment
Enter admin password to confirm.
You should get an error message like this.
Error fetching Device Enrollment configuration: (34006) Error Domain=MCCloudConfigurationErrorDomain Code=34006 "The Device Enrollment server is unavailable. Please try again later." UserInfo={USEnglishDescription=CLOUD_CONFIG_MAX_RETRIES_EXCEEDED, NSLocalizedDescription=The Device Enrollment server is unavailable. Please try again later., MCErrorType=MCFatalError}
That's all!
Let me know in the comments below, if you found this article helpful. Thanks for reading.