top of page
Writer's pictureAvijit Dutta

Add/Remove User from Local Administrators Group

Updated: Sep 21, 2022

Article No :: KB00009



"Net" is a Windows built-in command and it is used to view or modify the windows multiple settings. Today, we will show how to add or remove local/domain user ID from local "Administrators" group.


 

Permission/Access required - You must have the local administrator access to add or remove user from Local Administrators group.


Applies to - Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 R2, Windows Server 2008, Windows 10, Windows 8.1, Windows 8


 

Prerequisite

Login into Windows with local administrator ID

Open an elevated/administrator command Prompt or PowerShell Window.


Step 1 - View Local Groups

Command to view local groups on your computer.

Type net localgroup and press Enter.

Observe the list of local groups on your computer.


Step 2 - Add a Local User or Domain User to a Local Group

Command to add a local user or domain user to a local group.


For Local User - Type net localgroup groupname Username /add where username is the name of the existing local user account/ID you want to add and groupname is the name of the local group where you want to add user. For example, if you want to add local ID Avijit into Local Administrators group, then command will be


net localgroup Administrators Avijit /add

For Domain User - Type net localgroup groupname DomainName/Username /add where username is the name of the existing domain user account/id you want to add and groupname is the name of the local group where you want to add user. For example, if you want to add domain ID Virtualgyanis/Avijit into Local Administrators group, then command will be


net localgroup Administrators virtualgyanis/Avijit /add

Step 3 - Remove a User from a Local Group

Command to remove a user from a local group:


Type net localgroup groupname username /delete, where username is the name of the user you want to remove and groupname is the name of the group from where you want to remove user. For example, if you want to remove Avijit from the local group Administrators, then the command will be


net localgroup Administrators Avijit /delete

If you liked this article, do share the same. You can also Buy me a Coffee using Paypal at "paypal.me/duttaavijit", This is purely a volunteer effort. THANK YOU !!!


References

Microsoft TechNet: Net localgroup



20,588 views0 comments

Recent Posts

See All

Comments


bottom of page