Add a user to the local administrators group

How cool is this ;-)

$srv=hostname;([ADSI]”WinNT://$srv/Administrators,group”).Add(“WinNT:///”) 

 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: