HomeTechnologyNewsHow to change the password of a Windows user account from the...

How to change the password of a Windows user account from the command prompt

- Advertisement -
- Advertisement -
- Advertisement -
- Advertisement -


Thanks to Windows’ net user command, you can change your PC user account passwords directly from the command prompt window. This allows you to set a new password for your chosen account without navigating through any settings menus. We’ll show you how.

RELATED: How to reset your forgotten password in Windows 10

What to know when changing passwords from the command prompt

the net user The command requires administrator access, which means you must use an administrator account to use the command. You can then use it to change the passwords for your own account and the accounts of others.

Also note that this command only allows you to change the password of your local account. If you use a Microsoft account with your PC, you’ll need to use another method to change your password.

RELATED: How to change your Windows password

Use the net user command to change the password of a Windows account

If you are ready to change the password, first open the “Start” menu. In this menu, look for “Command Prompt”. Then on the right select “Run as administrator”.

Select "Execute as an administrator" on the right.

In the command prompt window, type the following command and press Enter. In this command, replace USERNAME with the username whose password you want to change and PASSWORD with the new password you want to use.


Change the password with the net user command.

Not sure who’s who on your system? You can get a list of all user accounts by using the following command at a command prompt:

net user

If your username has spaces, be sure to enclose it in double quotes. Like:

net user "Mahesh Makvana" MYPASSWORD

Are you doing these password changes in a public place? People around you (or watching through security cameras) could see your password as you type it. In this case, use the following command.

be sure to replace USERNAME in the command with the username whose password you want to update.

net user USERNAME *

You will be prompted to enter the new password twice, but you will not see any text on the screen. The command prompt will then display a success message indicating that your password has been changed successfully.

The password was changed successfully with the network user command.

And that’s it.

When you now log in to your account on your Windows PC, it will use the newly created password. Enjoy!

Want to learn some other useful Windows commands? Take a look at our dedicated guide.

RELATED: 10 Useful Windows Commands You Should Know


- Advertisement -
- Advertisement -
Stay Connected
[td_block_social_counter facebook="#" manual_count_facebook="16985" manual_count_twitter="2458" twitter="#" youtube="#" manual_count_youtube="61453" style="style3 td-social-colored" f_counters_font_family="450" f_network_font_family="450" f_network_font_weight="700" f_btn_font_family="450" f_btn_font_weight="700" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjMwIiwiZGlzcGxheSI6IiJ9fQ=="]
Must Read
- Advertisement -
Related News
- Advertisement -