Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save timdang/c796f7b97182f395d6df2d19ab0fd8ae to your computer and use it in GitHub Desktop.
Save timdang/c796f7b97182f395d6df2d19ab0fd8ae 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

@MAECTPOUA
Copy link

How to take it back. Without reinstall the macos

@muzammil22
Copy link

Does this work for Big Sur ?

@timdang
Copy link
Author

timdang commented Jan 2, 2021

@emamm1 @MAECTPOUA You can sudo mv to move the files back from the disabled back to the LaunchDaemons folder.
@muzammil22 Big Sur is different. There’s other solutions out there, but the process is even more complicated.

@MAECTPOUA
Copy link

@emamm1 @MAECTPOUA You can sudo mv to move the files back from the disabled back to the LaunchDaemons folder.
@muzammil22 Big Sur is different. There’s other solutions out there, but the process is even more complicated.

I can't find the bckp folders that I create. I think they were remove after installing update. So I decide to make a clear install, and everything is ok

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