Uchenna Egbo
Uche's Musings

Uche's Musings

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!

Uchenna Egbo
·Jan 17, 2022·

2 min read

How To Disable Remote Management and Device Enrollment Notifications on Mac Os.

Table of contents

  • With Re-Format And Re-Install Mac Os.
  • Without Re-Formating -> Start here!

With Re-Format And Re-Install Mac Os.

  1. 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.
  2. 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. dep_notification.jpeg

Without Re-Formating -> Start here!

Disable Device Enrolment Program (DEP) notifications on Mac OS.

  1. While logged in normally, edit the hosts file with nano editor.
  2. Open terminal and type:
    sudo nano /private/etc/hosts
    
  3. Enter admin password when prompted.

  4. 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
    
  5. Press control + X from keyboard to Exit.
  6. Now you will be asked whether you want to save. Enter Y for yes and N for no. Type Y [Ensure you do this!].
  7. Confirm the file changes by hitting the enter key.
  8. Check to see whether the enrolment calls have been blocked by typing:
    sudo profiles show -type enrollment
    
  9. Enter admin password to confirm.

  10. 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.

 
Share this