Last active
February 11, 2023 08:35
-
-
Save rahulsom/876da5b1d70d870e7a35 to your computer and use it in GitHub Desktop.
UnJamf a machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
USERNAME=$(whoami) | |
sudo /usr/sbin/jamf removeFramework | |
sudo dscl . -mcxdelete /Computers/localhost || echo "No /Computers/localhost" | |
sudo dscl . -mcxdelete /Users/${USERNAME} | |
sudo rm -rf /Users/${USERNAME}/Library/Preferences/com.apple.finder.plist | |
echo "..Done" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment