command line add user account

4 Jun

http://www.trickyways.com/2009/10/add-or-delete-users-account-with-command-line-in-windows/

Add a new user account

Step-1

Right-click on Command Prompt and select Run as administrator option.

Here how you can find Command Prompt in different Windows versions:

Windows 8 : Hit Windows key from keyboard and type Command Prompt.
Windows 7 / Vista: Hit Windows key and type Command Prompt in start menu box.
XP : Click on Start button > All Programs > Accessories > Command Prompt.

Step-2

On command line type this command net user UserName Password /add

Where:
UserName = Name of the user account
Password = Password of the user account

add-new-widnows-account-using-cmd

See the new user account has been added.

Make an administrator user account

Default privileges are limited for all user accounts that created from Command Prompt, to give administrator privileges to a user you need to run the following command.

net localgroup Administrators UserName /add

Where: UserName is the name of the user account

Delete user account

Step-1

Run Command Prompt as administrator, as we did in Step-1 above.

Step-2

In command line type this command net user UserName /del
Where:
UserName = Name of the user account that you want to delete

remove-widnows-account-using-cmd-1