Create new account with cmd

To create a new user account using the Command Prompt (Cmd) in Windows, you can follow these steps:

Method 1: Using the built-in net user command

  1. Open the Command Prompt (Cmd) by searching for "cmd" in the Start menu and clicking on the result.
  2. Type the following command and press Enter:
    net user <username> /add

    Replace <username> with the desired username for the new account.

For example:

net user john /add

This will create a new user account with the specified username.

Method 2: Using the useradd command (Windows 10 and later)

  1. Open the Command Prompt (Cmd) by searching for "cmd" in the Start menu and clicking on the result.
  2. Type the following command and press Enter:
    useradd /create /name:<username>

    Replace <username> with the desired username for the new account.

For example:

useradd /create /name:john

This will create a new user account with the specified username.

Method 3: Using the dsadd command (Windows Server and later)

  1. Open the Command Prompt (Cmd) by searching for "cmd" in the Start menu and clicking on the result.
  2. Type the following command and press Enter:
    dsadd user <username>

    Replace <username> with the desired username for the new account.

For example:

dsadd user john

This will create a new user account with the specified username.

Note: You may need to run the Command Prompt as an administrator to create a new user account. To do this, right-click on the Start button and select "Run as administrator" and then open the Command Prompt.