How to Use CMD to Change Password in Windows 11/10/8/7?

In this article, we’ll be discussing how to use CMD to change password step by step. Moreover, a professional tool will be introduced to help reset or remove password easily in Windows 11/10/8/7 when change password net user not working.

Posted by @Hedy December 17, 2024 Updated By @Hedy May 12, 2023

Things to know about CMD change password

Thanks to the net user command in Windows, you are able to change the password for your user account from the Command Prompt. If you think your PC has been compromised or your password is too complicated to remember, then you can set a new password using CMD in Windows 10.

But before proceeding, you should know something about CMD change password:

You must have administrative access to use the net user command so that you can change the password not only for your own account but also for others' accounts.

 Change password net user command in Windows only work on local account password. If you are using a Microsoft account, you have to seek other ways to complete the changing operation.

[Stepwise] How to change password with Command Prompt in Windows 11/10/8/7?

If you are ready, you can begin the process of CMD change password. Here is how to perform CMD change user password in Windows 11/10/8/7 Command Prompt.

Step 1. Type cmd into the Start menu, right-click the Command Prompt from the list, and choose Run as administrator.

Step 2. Type the command: net user and press Enter to list all the user account on your Windows system. Please note the account name you plan to change the password for.

Step 3. Type the "net user username new_password" and press the Enter key to continue. Remember to replace username and new_password with the actual username and new password for the account like net user admin 123456.

After that, you'll see a line saying the command was completed successfully. It means you have changed the password using CMD successfully. And then you can use the new password to log in to your account.

Error: Change password net user access denied

Although it seems easy to CMD change user password, a number of Windows users reported that they couldn't reset password using CMD. It’s always annoying and irritating especially for a PC green hand. Here is a live example from Microsoft Community:

"I was trying to change my password but I don't remember it. So I typed in cmd net user username new_password. But it said System error 5 has occurred. Access is denied. I don't know what to do next or how to fix this."

Actually, CMD change password failed issue in Windows can be caused by many factors. For example, you don't have the administrative privilege; you have typed the wrong command lines, etc.

If you are unable to change password with Command Prompt, you can refer to the content below to get an easier workaround.

Alternative way to CMD change password in Windows 11/10/8/7 (Recommended)

A powerful password reset tool called AOMEI Partition Assistant Professional should be the best alternative to Command Prompt to change a password in Windows 11/10/8/7. With this software, you can easily remove or reset the password without any technical knowledge. It is very helpful especially when you forgot your password and be locked out of the PC. It can assist you to unlock your PC by removing or changing the password quickly.

Here is the stepwise guide on how to use this Windows unlock tool to replace CMD change user password:

Free DownloadWin 11/10/8.1/8/7/XP
Secure Download

Step 1. Download AOMEI Partition Assistant on a Windows computer that can work normally and connect a prepared USB drive to it. On the top navigation bar, click the “Tools” button and then choose “Reset Windows Password”.

Step 2. Click "Next" to agree to create a WinPE bootable media.

Step 3. Then, choose the target USB drive and click "Proceed".

Step 4. Make sure you know your USB drive will be formatted during the process of creating the password reset USB. If you have backed up the important data or there are no necessary data on it, click "Yes" to go on.

Step 5. When the bootable media is created successfully, insert the USB drive into the Windows computer that you want to change password for and change the boot order to make your PC boot from the USB.

Step 6. When booting into your PC, AOMEI Partition Assistant will open automatically. Click "Reset Password" again and select the target operating system. Then click "Next".

Step 7. Select the account for which you want to reset the password, and decide which one you want to perform: Remove Account Password or Reset Account Password. Here we choose "Reset Account Password" and click "Next".

Step 8. In "Reset Password" window, type the new password in the new window and click "Yes" to confirm.

Step 9. Restart your computer and you can use the new password now.

Conclusion

CMD change password allows you to set a new password for a Windows account with ease. In this guide, we've introduced how to change password with Command Prompt in Windows 11/10/8/7 step by step. If this command is not working or you can't access your locked Windows PC, then you can go for AOMEI Partition Assistant Professional which is able to unlock your computer within a few easy steps.

In addition, this application also plays an important role in data security. It can clone the hard drive for backup, restore lost partitions, recover deleted files, and more.