How to Add a User to a Group Command Line
- 1). Log on to your computer with a user account that has administrative privileges.
- 2). Click the Windows "Start" button, and select "Run ..." from the menu. Type "cmd" and press the "Enter" key on your keyboard to launch a command-line prompt.
- 3). Type "net localgroup [group name] [user name] /add" at the command prompt, replacing "[group name]" with the name of the group you want to modify and replacing "[user name]" with the name of the user account you want to add to the group. For example: Net localgroup "Backup Operators" JaneS /add
- 4). Press the "Enter" key on your keyboard to execute the command. If you receive an error message, double-check that you have typed the command correctly and that you have spelled the user account and security group names correctly.
- 5). Type "Exit" at the command prompt to close the command prompt window.
Source...