Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save xybydy/6110685e5b0b51c5c4d696ade275094d to your computer and use it in GitHub Desktop.
Save xybydy/6110685e5b0b51c5c4d696ade275094d to your computer and use it in GitHub Desktop.

Disable Device Enrollment Notification on MacOS Catalina

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

Open Terminal in the recovery screen and type:

csrutil disable

Restart Computer Normally

In the terminal, and run the following two commands:

sudo mount -uw /
sudo mkdir /System/Library/LaunchAgentsDisabled; sudo mkdir /System/Library/LaunchDaemonsDisabled;
sudo mv /System/Library/LaunchAgents/com.apple.ManagedClientAgent.agent.plist /System/Library/LaunchAgentsDisabled;
sudo mv /System/Library/LaunchAgents/com.apple.ManagedClientAgent.enrollagent.plist /System/Library/LaunchAgentsDisabled;
sudo mv /System/Library/LaunchDaemons/com.apple.ManagedClient.cloudconfigurationd.plist /System/Library/LaunchDaemonsDisabled;
sudo mv /System/Library/LaunchDaemons/com.apple.ManagedClient.enroll.plist /System/Library/LaunchDaemonsDisabled;
sudo mv /System/Library/LaunchDaemons/com.apple.ManagedClient.plist /System/Library/LaunchDaemonsDisabled;
sudo mv /System/Library/LaunchDaemons/com.apple.ManagedClient.startup.plist /System/Library/LaunchDaemonsDisabled

Restart the Mac in Recovery Mode Again

Open Terminal in the recovery screen and type:

csrutil enable

Restart Normally and Enjoy

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