Create new account windows 10 command prompt
To create a new user account in Windows 10 using the Command Prompt, you can use the following steps:
Method 1: Using the built-in net user
command
- Open the Command Prompt as an administrator. To do this, right-click on the Start button and select "Command Prompt (Admin)".
- 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 wmic
command
-
Open the Command Prompt as an administrator.
-
Type the following command and press Enter:
wmic useraccount create
This will create a new user account with a randomly generated username.
-
To specify a custom username, use the following command:
wmic useraccount create name=<username>
Replace
<username>
with the desired username for the new account.
For example:
wmic useraccount create name=john
This will create a new user account with the specified username.
Method 3: Using the dsadd
command
- Open the Command Prompt as an administrator.
- 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: The dsadd
command is only available in Windows 10 Pro, Enterprise, and Education editions.
After creating the new user account, you can set a password for the account using the net user
command:
net user <username> *
Replace <username>
with the username of the new account. This will prompt you to set a password for the account.
That's it! You have successfully created a new user account in Windows 10 using the Command Prompt.