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

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

To enable this Powershell command, some versions of Windows require the installation of the software named: Windows Management Framework.

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Related tutorial - PowerShell

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

Tutorial Powershell - Creating a local user account

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

Powershell on Start menu

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 Powershell.