This file contains 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
# 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 |
NewerOlder