Skip to content

Instantly share code, notes, and snippets.

View aromig's full-sized avatar
🐧
• • • • • •

Adam Romig aromig

🐧
• • • • • •
View GitHub Profile
# 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