Skip to content

Instantly share code, notes, and snippets.

@letranloc
Created November 15, 2020 02:25
Show Gist options
  • Save letranloc/675ef60cac18dc20ef4030e1b53c2f8b to your computer and use it in GitHub Desktop.
Save letranloc/675ef60cac18dc20ef4030e1b53c2f8b to your computer and use it in GitHub Desktop.
Disable Device Enrollment Notification on Mac - Big Sur
csrutil authenticated-root disable;
diskutil mount /Volumes/Mac;
mount -uv /Volumes/Mac;
cd /Volumes/Mac/System/Library/LaunchAgents;
mkdir tmp;
mv com.apple.ManagedClientAgent.* tmp/;
mv com.apple.mdmclient.* tmp/;
cd ../LaunchDaemons
mkdir tmp;
mv com.apple.ManagedClient.* tmp/;
mv com.apple.mdmclient.* tmp/;
bless --folder /Volumes/Mac/System/Library/CoreServices --bootefi --create-snapshot;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment