Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
• • • • • •

Adam Romig aromig

🐧
• • • • • •
View GitHub Profile
View os-x_mobile-accounts.sh
# Create a mobile account for a user
sudo /System/Library/CoreServices/ManagedClient.app/Contents/Resources/createmobileaccount -n <username>
# Delete a user's mobile account
sudo dscl . delete /Users/<username>
# List all AD accounts on machine
dscl . list /Users UniqueID | awk '$2 > 1000 { print $1 }'
# Enable/Disable mobile account support on machine