How to add a user with the command prompt

Table of contents:

How to add a user with the command prompt
How to add a user with the command prompt
Anonim

Learn how to add a new user to your Windows computer using the command prompt. You must have administrator rights to do this, because standard user accounts cannot create new accounts. You cannot use the command prompt to create a Microsoft account.

Steps

Add Users from CMD Step 1

Step 1. Open the Start menu

Windowsstart

Click on the logo Windows at the bottom left of your screen.

Add Users from CMD Step 2

Step 2. Find the Command Prompt

Type command prompt for this.

Add Users from CMD Step 3

Step 3. Right click on Command Prompt

Windowscmd1

This is at the top of the start window. When you right click on it, a drop down menu will appear.

Add Users from CMD Step 4

Step 4. Click Run as administrator

This can be found in the drop-down menu.

Add Users from CMD Step 5

Step 5. Choose Yes when it appears

The Command Prompt window will open.

Add Users from CMD Step 6

Step 6. Type the command add user

It uses the format net user username password / add, where username is the name you want to use for the new user and password is the password to assign to the account.

  • For example, to add a user named Maeva with bonjour123 as a password, you must enter net user maeva bonjour123 / add.
  • If you don't want to use a password for the account, don't enter a password, just net user username / add instead.
Add Users from CMD Step 7

Step 7. Press Enter

This executes the command and the user account will be created.

Once you see the phrase The command completed successfully, your user has been added

Add Users from CMD Step 8

Step 8. Grant the user administrator rights

If you want to change the user account to an administrator account, type net localgroup administrators username / add at the command prompt, making sure to replace username with the name of the account you want to change. Then press Enter.

For example, to transform the Maeva user account into an administrator account, you must type net localgroup administrators Maevea / add and press ↵ Enter

Popular by topic