Add a networkuser to local admin group via command line

By | February 18, 2017
This is just a short line of code but it helps a lot.
All it does is adding a network user (or group) to the local admin group.
This works for Active Directory as well as OpenDirectory.

dseditgroup -o edit -n /Local/Default -u localadmin -p -a networkuser -t user admin

 

Here is the Apple documentation to it.

https://support.apple.com/en-us/HT202112

Leave a Reply

Your email address will not be published. Required fields are marked *

*