Skip to content

Instantly share code, notes, and snippets.

@rahulsom
Last active February 11, 2023 08:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsom/876da5b1d70d870e7a35 to your computer and use it in GitHub Desktop.
Save rahulsom/876da5b1d70d870e7a35 to your computer and use it in GitHub Desktop.
UnJamf a machine
#!/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