Skip to content

Instantly share code, notes, and snippets.

@MScottBlake
MScottBlake / 1-Reboot to Recovery.command
Last active October 26, 2023 15:20
Removing a Non-Removable MDM Profile
#!/bin/zsh
# Elevate permissions, if needed
if [ $USER != 'root' ]; then
sudo $0
exit 0
fi
# Reboot to Recovery
/usr/sbin/nvram "recovery-boot-mode=unused"