Add a user to the local administrators group

How cool is this ;-)

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

 

Leave a Reply

%d bloggers like this: