On Windows 10, you can add a password to a local account in at least five different ways using the Settings app, PowerShell, Command Prompt, Computer Management, and even from the Control Panel.

The ability to add a password always comes in handy to secure a local account in case you never configured one. Or you can also use the Windows 10 options to change the account password in case it’s been compromised, or it’s easy to guess and you want to set a more complex password.

In this guide, you’ll learn the different ways to create a password for a local account on Windows 10.

  • Add password to local account using Settings
  • Add password to local account using Computer Management
  • Add password to local account using Command Prompt
  • Add password to local account using PowerShell
  • Add password to local account using Control Panel

Add password to local account using Settings

To add a password to a local account, use these steps:

  • Open Settings on Windows 10.
  • Click on Accounts.
  • Click on Sign-in options.
  • Under the “Manage how you sign in to your device” section, select the Password option.
  • Click the Add button.
  • Settings add password option
  • Create a new password for the local account.
  • Create local account password
  • Confirm a password hint.
  • Click the Next button.
  • Click the Finish button.
  • (Optional) Click the Update your security questions option to set up a way to reset the password in case you forget it.

Once you complete the steps, sign out and while signing back in, you’ll need to use the new password.

Open Settings on Windows 10.

Click on Accounts.

Click on Sign-in options.

Under the “Manage how you sign in to your device” section, select the Password option.

Click the Add button.

Settings add password option

Create a new password for the local account.

Create local account password

Confirm a password hint.

Click the Next button.

Click the Finish button.

(Optional) Click the Update your security questions option to set up a way to reset the password in case you forget it.

Add password to local account using Computer Management

To create a new password for a local account with Computer Management, use these steps:

  • Open Start.
  • Search for Computer Management and click the top result to open the console.
  • Expand the Local Users and Groups branch.
  • Select the Users folder.
  • Right-click the user and select the Set Password option.
  • Computer Management set password option
  • Click the Proceed button.
  • Create the new password for the local account on Windows 10.
  • Set password for local account
  • Click the OK button.

After you complete the steps, the new password will be set in the account.

Open Start.

Search for Computer Management and click the top result to open the console.

Expand the Local Users and Groups branch.

Select the Users folder.

Right-click the user and select the Set Password option.

Computer Management set password option

Click the Proceed button.

Create the new password for the local account on Windows 10.

Set password for local account

Click the OK button.

Add password to local account using Command Prompt

To add a password to a local account with Command Prompt, use these steps:

  • Open Start.
  • Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  • Type the following command to list all the available users and press Enter: net users
  • net users
  • Type the following command to add a password for the local account and press Enter:
  • net user “LocalAccount” “Password”
  • Command Prompt add password to local account

In the command, make sure to change LocalAccount for the actual name of the user and Password for the password that you want to use.

Search for Command Prompt, right-click the top result, and select the Run as administrator option.

Type the following command to list all the available users and press Enter: net users

net users

Type the following command to add a password for the local account and press Enter:

net user “LocalAccount” “Password”

Command Prompt add password to local account

Once you complete the steps, the password will be added to the local account.

Add password to local account using PowerShell

To create a password for an account with PowerShell, use these steps:

  • Open Start.
  • Search for PowerShell, right-click the top result, and select Run as administrator.
  • Type the following command to list all the available accounts and press Enter:
  • Get-LocalUser
  • PowerShell Get-LocalUser command
  • Type the following command to create and store the new password inside of a variable and press Enter:
  • $Password = Read-Host “Enter the new password” -AsSecureString
  • Type the new password for the account and press Enter.
  • Type the following command and press Enter on each line to apply the new password to the local account:
  • $UserAccount = Get-LocalUser -Name “admin”
  • $UserAccount | Set-LocalUser -Password $Password
  • In the second command, make sure to replace “admin” with the name of the account that you want to reset its password.
  • PowerShell commands to change an account password

In the second command, make sure to replace “admin” with the name of the account that you want to reset its password.

Search for PowerShell, right-click the top result, and select Run as administrator.

Type the following command to list all the available accounts and press Enter:

Get-LocalUser

PowerShell Get-LocalUser command

Type the following command to create and store the new password inside of a variable and press Enter:

$Password = Read-Host “Enter the new password” -AsSecureString

Type the new password for the account and press Enter.

Type the following command and press Enter on each line to apply the new password to the local account:

$UserAccount = Get-LocalUser -Name “admin” $UserAccount | Set-LocalUser -Password $Password

PowerShell commands to change an account password

After you complete the steps, you can start using the local account with the new password.

Add password to local account using Control Panel

It’s also possible to add a password to a local account using Control Panel, but the option is only available when configuring the account from another account.

To add a new account password using Control Panel, use these steps:

  • Open Control Panel.
  • Click on User Accounts.
  • Click on User Accounts again.
  • Click the Manage another account option.
  • Manage another account option
  • Select the local account.
  • Click the Create a password option.
  • Create password option
  • Confirm the new password.
  • Control Panel local account password
  • Confirm the hint password.
  • Click the Create password button.

Once you complete the steps, you can login to the local account using the new password.

Open Control Panel.

Click on User Accounts.

Click on User Accounts again.

Click the Manage another account option.

Manage another account option

Select the local account.

Click the Create a password option.

Create password option

Confirm the new password.

Control Panel local account password

Confirm the hint password.

Click the Create password button.