Would you like to learn how to create a local user account using the command-line? In this tutorial, we are going to show you how to use the command-line to create a local user account on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10

Windows – Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial – Creating a user account using the Command-line

As an Administrator, start a new command-line prompt.

Windows DOS Prompt

Create a local user account.

Copy to Clipboard

In our example, we created a local user account named: Gohan

The following password was set to this user account: Kamisama123@@

Keep in mind that you need to change the username and password.

Here is the command output:

Copy to Clipboard

Verify the existence of the new user account.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Configure the new user account as a member of a local group.

Copy to Clipboard

In our example, the user was configured as a member of the local administrator group.

Verify if the user account is a member of the local group named Administrators.

Copy to Clipboard

Here is the command output:

Copy to Clipboard

Congratulations! You are able to create a user account using a DOS command-line.