Skip to content

Instantly share code, notes, and snippets.

@mikemoate
Last active August 21, 2018 09:56
Show Gist options
  • Save mikemoate/12c93ef0c250bdd29c2f1e12dd15f56f to your computer and use it in GitHub Desktop.
Save mikemoate/12c93ef0c250bdd29c2f1e12dd15f56f to your computer and use it in GitHub Desktop.
Hide Countingup administrator account on Mac
#!/bin/sh
set -x
sudo dscl . create /Users/administrator IsHidden 1
sudo mv /Users/administrator /var/administrator
sudo dscl . -create /Users/administrator NFSHomeDirectory /var/administrator
sudo dscl . -delete "/SharePoints/Administrator's Public Folder"
sudo defaults write /Library/Preferences/com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment