Skip to content

Instantly share code, notes, and snippets.

@hungdh0x5e
Created January 7, 2021 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hungdh0x5e/a6a2cc4f269c00ac6f8b5bcabcd3b920 to your computer and use it in GitHub Desktop.
Save hungdh0x5e/a6a2cc4f269c00ac6f8b5bcabcd3b920 to your computer and use it in GitHub Desktop.
csrutil authenticated-root disable;
diskutil mount /Volumes/Macintosh\ -\ Data;
Mount -uv /Volumes/Macintosh\ -\ Data;
cd /Volumes/Macintosh\ -\ Data/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/Macintosh\ -\ Data/System/Library/CoreServices --bootefi --create-snapshot;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment