Posts

Showing posts with the label windows diag

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 -----------------------------------------