Add group or user to local administrators group script

net localgroup Localgroup_name Domain_Name\group_or_UserName /add

Localgroup_name - computer local group
Domain_Name - Name of AD Domain
Group_or_UserName - group or user you want to add as a member of the Localgroup.


Example :

net localgroup Administrator MyDomain\MyUserName /add

No comments:

Recent Posts