Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save timdang/c796f7b97182f395d6df2d19ab0fd8ae to your computer and use it in GitHub Desktop.

Select an option

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

@timdang

timdang commented Sep 13, 2019

Copy link
Copy Markdown
Author

Thanks to @sghiassy and @etpap

@fnvi1

fnvi1 commented Apr 13, 2020

Copy link
Copy Markdown

Thanks

@GiuseppeColosi

Copy link
Copy Markdown

Thanks, it works perfectly

@naeminhye

Copy link
Copy Markdown

Thanks

@hopefermi

Copy link
Copy Markdown

Tim, this fix solved the problem with Device Enrollment Notification on MacOS Catalina for me. Thanks! But it also removed "profiles" tab in System Preferences, and my sysadmin tells me that it may cause issues down the road. Is any way to resolve that issue, or add the profiles tab by myself? Thanks! Michael

@timdang

timdang commented Jun 9, 2020

Copy link
Copy Markdown
Author

@hopefermi This moves some launch processes to the disabled folder. If you ever need to properly enroll, you would need to move those files back. I did this for a personal computer that was being prompted to enroll when I joined the network at work. If your machine is company owned, you’d probably want to defer to the sysadmin.

@richievos

Copy link
Copy Markdown

Just wanted to quickly say thanks! Very helpful!

@emamm1

emamm1 commented Sep 24, 2020

Copy link
Copy Markdown

This moves some launch processes to the disabled folder. If you ever need to properly enroll, you would need to move those files back.

@timdang How can one do that to move back the file back?

@MAECTPOUA

Copy link
Copy Markdown

How to take it back. Without reinstall the macos

@muzammil22

Copy link
Copy Markdown

Does this work for Big Sur ?

@timdang

timdang commented Jan 2, 2021

Copy link
Copy Markdown
Author

@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
Copy Markdown

@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