Add a Windows domain user to local admin group

To add a specific domain user to local administrators group, so he can install software on this particular machine, here’s a quick cmd command:

net localgroup administrators your-domain\user /add

 

To remove the user from admin group, simply run it again with /delete switch at the end:

net localgroup administrators your-domain\user /delete

Leave a Reply

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