Skip to content

Instantly share code, notes, and snippets.

@sghiassy
Last active February 25, 2025 02:35
Show Gist options
  • Save sghiassy/a3927405cf4ffe81242f4ecb01c382ac to your computer and use it in GitHub Desktop.
Save sghiassy/a3927405cf4ffe81242f4ecb01c382ac to your computer and use it in GitHub Desktop.

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable

Restart computer

Edit com.apple.ManagedClient.enroll.plist

In the terminal, type

sudo open /Applications/TextEdit.app /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist

change

<key>com.apple.ManagedClient.enroll</key>
        <true/>

to

<key>com.apple.ManagedClient.enroll</key>
        <false/>

Restart Computer again

So that the changes take effect

@moo84
Copy link

moo84 commented Dec 4, 2024

At what point do you use the SkipMDM steps if you are turning on a MacBook for the first time which is marked for JAMF activation/enrolment during initial setup?

Is disabling WIFI router still a workaround to get you into the OS / restore from a backup and then run the SkipMDM script?

@rubberkenducky
Copy link

When I blocked the list below of apple URLs in the hosts file, my machine was unable to connect to iMessage or FaceTime. I would receive an error message of "unexpected error" when trying to log in with my apple account to iMessage, and "cannot send message iMessage needs to be enabled to send this message" when trying send a message. When I removed albert.apple.com from the hosts file, but kept the other sites, both iMessage and FaceTime activated and functioned properly.

0.0.0.0 iprofiles.apple.com
0.0.0.0 mdmenrollment.apple.com
0.0.0.0 deviceenrollment.apple.com
0.0.0.0 gdmf.apple.com
0.0.0.0 acmdm.apple.com
0.0.0.0 albert.apple.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment