How to add user into localgroup using Command Prompt

Type net localgroup groupname username /add, where username is the name of the existing user you want to add and groupname is the name of the group you want to add them to. For example, if the group name is Accounting and the username is Bill, you would type net localgroup Accounting Bill /add. Then press Enter




 C:\windows\system32>net localgroup "Remote desktop users" username@domain.com /add


System error 1378 has occurred.




The specified account name is already a member of the group.






C:\windows\system32>net localgroup "Remote desktop users" username@domain.com /del


The command completed successfully.






C:\windows\system32>net localgroup "Remote desktop users" username@domain.com /add


The command completed successfully.




C:\windows\system32>net localgroup "remote desktop users"


Alias name     remote desktop users


Comment        Members in this group are granted the right to logon remotely




Members




-------------------------------------------------------------------------------


domain\RemoteUsers


domain\username


The command completed successfully.






C:\windows\system32>










-------------------------------------------------------------------------------------------------


ed searches


add user to administrators group cmd


add user to local administrator group command line remotely


add user to local administrator group cmd windows 10


net user /add administrator


net localgroup administrators /add domain user


net localgroup add user


add user cmd


net user /add administrator password

Comments

Popular

icegate registration with dsc | Unable to execute PKI Component

MFS100 mantra driver installation and RD service

Repair Hikvision IP Camera | Cable color codding