Windows 10 offers a program – lusrmgr.msc or Management of users and local groups – which allows an administrator to manage local users and groups on the computer. However, the snap-in service is not available for Windows 10 Home users. So if you want to access local user and group management in Windows 10 Home, you’ll have to try a few alternatives. These alternatives may not be user friendly, but they work.
Open and manage local user and group management
Windows 10 Pro, Enterprise, etc. versions offer programs like lusrmgr.msc, Netplwiz, and even userpasswords2 programs that manage users and groups.
Windows 10 Home users with administrator privileges can use command line interfaces such as NET LOCALGROUP and Microsoft.
How to use Net LocalGroup
Here is the complete syntax of this command that you can execute on an elevated command prompt
NET LOCALGROUP [groupname [/COMMENT:"text"]] [/DOMAIN] groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN] groupname name [...] {/ADD | /DELETE} [/DOMAIN]
When you run only “Net Localgroup”, it lists all the groups of Windows 10 PC.
1]Add a user with and without domain
net localgroupUserLoginName /add
net localgroup users domainname/add
2]Create a new group
net localgroup/add
3]List all users in a group
net localgroup
4]Remove user from group
net localgroup/delete
5]Remove user from group
net localgroup/delete
PowerShell LocalAccounts module
PowerShell offers a LocalAccount module that provides 15 cmdlets to manage Windows users and groups. Here is the list:
- Add-LocalGroupMember – Add a user to the local group
- Disable-LocalUser : Deactivate a local user account
- Enable-LocalUser – Activate a local user account
- Get-LocalGroup – Display local group preferences
- Get-LocalGroupMember – Display the list of all members of the local group
- Get-LocalUser – Display the preferences of a local user account
- New-LocalGroup – Create a new local group
- New-LocalUser – Create a new local user account
- Remove-LocalGroup – Delete a local group
- Remove-LocalGroupMember – Remove a member from a local group
- Remove-LocalUser – Delete a local user account
- Rename-LocalGroup – Rename a local group
- Rename local user – Rename a local user account
- Set-LocalGroup – Modify the parameters of a local group
- Set-LocalUser – Change the account settings of a local user
So if you want to create a new local group, run the following command
New-LocalGroup -Name "TWC"
To remove a member from a group, run this command:
Add-LocalGroupMember -Group 'TWC' –Member 'ashis'
Use both NET LOCALGROUP and Microsoft.