Created
September 11, 2015 13:46
-
-
Save aromig/7b0b494d4fcbc94e749b to your computer and use it in GitHub Desktop.
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 | |
sudo dsconfigad -mobile <enable | disable> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment