Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Bios597407/ead3afda17782c65c297f194db9a2b65 to your computer and use it in GitHub Desktop.
Save Bios597407/ead3afda17782c65c297f194db9a2b65 to your computer and use it in GitHub Desktop.
Disable MacBook Device Enrollment Notification nag popup
Restart into recovery mode
Terminal: csrutil disable
Restart into normal user mode
Terminal: sudo mount -uw /
Terminal: 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 into recovery mode
Terminal: csrutil enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment