CMD password Change| How Can I Do It

How to achieve CMD password change? In this post, you will know how to change a password with CMD and other approaches to change the computer password.

Posted by @Irene July 15, 2026 Updated By @Irene May 12, 2023

Overview of CMD password change

No matter whether you are a computer geek or not, you must have heard about CMD, namely Command Prompt, a practical system built-in utility. For many computer problems, it can play a favorable role in solving those issues, of course, including password change when you forget or lose it.

To achieve a CMD password change successfully, we should get a rough idea of its requirements first.

β€’ You need administrative privileges to use the net user command, which allows you to change the passwords for both your account and other accounts.
β€’ CMD password change can work only for local accounts.
β€’ Ensure the inputted commands are completely correct. Otherwise, it will fail to perform.

Now, things come to how to change a password with CMD. Keep your curiosity. Let’s read this post together to find the answer and gain deeper knowledge about password change.

How to change a password with CMD

Here we are going to introduce how to change admin password with CMD using another admin account and in Safe Mode Command Prompt. You can pick up the one which complies with your requirements.

β–· Achieve CMD password change via another admin account

Foresighted enough if you create another admin account before, you make achieving CMD password change simple and easy. All you need is to log into your system with that and make corresponding changes by following this step-by-step guide.

Step 1. Log in the system with another admin account. Type β€œcmd” in the search box and choose β€œRun as administrator” to launch it.

Step 2. When the Command Prompt window shows up, input the command line of β€œnet user” and press β€œEnter” key. You can see all the user accounts here. Remember the target account that you need to change its password.

Step 3. Type β€œnet user username new_password” (Please replace the account and password in actual operation) and hit β€œEnter” key.

Notice: If your account name is ABC, and the new password you set is 112233, you should input "net user ABC 112233"

Step 4. After the command shows completed successfully, you can change the password and log in with the new one.

β–· Achieve CMD password change in Safe Mode Command Prompt

The second method to achieve CMD password change is using Safe Mode to open Command Prompt. Except for the opening path, the remaining part is very close to the method above. You can refer to the example we provide and try it on your own.

Step 1. In the log in screen, press β€œShift” key and click β€œRestart” option.

Step 2. Then choose β€œTroubleshoot” button in the window.

Step 3. Select β€œAdvance options” option to continue the process.

Step 4. Click β€œStartup Settings”.

Step 5. Click β€œRestart” to change Windows boot options.

Step 6. When entering boot option list, hit Number 6 or F6 button to choose β€œ6) Enable Safe Mode with Command Prompt”

Step 7. Next, it will require you to select an account for signing in. Then the administrative Command Prompt window will directly pop-up. Then type β€œnet user” and hit β€œEnter” key. Similar to the above method, continue to input β€œnet user username password” and press β€œEnter”. The password will be reset without data loss.

Bonus tips: How to change computer password without logging into Windows

Despite the traditional steps of Command Prompt, in fact, there are an increasing number of alternatives gradually replacing that to fix how to change admin password. Today, we pick up 2 effective and popular approaches to rapidly change your password.

β–· Change a password with a bootable USB

According to many help-seekers’ feedback, compared with CMD password change, using AOMEI Partition Assistant ProfessionalΒ to reset or remove passwords works like a charm. Why do they say that? Not just because it can get around the lengthy commands or a prepared Microsoft account, but most importantly, it can guide you to create a bootable USB even if you prepared nothing beforehand.

Moreover, its broad compatibility also offers robust support in creating reset USB among different Windows PC. It allows you to reset or remove the Windows 10 admin password along with your password on any Windows 11/8.1/8/7/Vista/XP (32 or 64-bit) computer for both administrator and local accounts.

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

Step 1. Insert a prepared USB into a running computer and launch the installed AOMEI Partition Assistant. On the top navigation bar, click the β€œTools” button and then choose β€œReset Windows Password”.

Step 2. The window will notice you create a WinPE bootable media. Read it and then click β€œNext” to move on.

Step 3. Choose β€œUSB Boot Device” to create bootable USB Device and select β€œProceed”.

Step 4. The USB flash drive requiresΒ to be formatted, and all the data in it will be erased. Please make a backup of your important data in advance.

Step 5. Boot the PC from this bootable USB. And choose the Windows system with clicking β€œNext”.

Notice: You need to enter BIOS to changeΒ boot orderΒ under the menu, and then you can boot from the Windows PE USB flash drive, CD, or DVD

Step 6. Choose the target account, and select the choice you hope to operate. You can see two choices here: Remove Account Password and Reset Account Password

Notice:
β€’ You can select β€œRemove Account Password” and click β€œNext” to have the operation to remove the password.
β€’ You can select β€œReset Account Password” if you would like to reset it. After clicking, you can input the new password and confirm it to reset. And then select β€œYes” to start the operation.

Finally, select β€œReboot Computer” when all the processes finish and log in.

β–· Change Windows password online

For Microsoft account users, Microsoft allows users to access the resources of any computer with a verified account or a specific Microsoft account. That means the users can reset the password by following the steps below.

Step 1. Visit theΒ Microsoft password reset pageΒ on any working computer.

Step 2. Input the setting Email address or phone number and select β€œNext”.

Step 3. You will be required to verify your identity via Email by default. Then select β€œNext”.

Note: You can use the phone number option for verification if email verification is not available. But it should be pre-configured. If you have not prepared any verification alternative or there is no place for typing the code, you cannot change the password in this way.

Step 4. Please notice the verification code sent from Microsoft, and input it into the blank after confirmation. Choose β€œNext” and move on.

Step 5. Once verified successfully, you can type the new password and then log in with the new one.

Verdict

Today, we briefly discuss CMD password change in two ways and share tips on how to change computer password without logging into Windows. But by comparison, we can find that using AOMEI Partition Assistant can be the most convenient way.

Apart from the Resetting Password feature, this tool can also fix disk via repair USB, recover deleted files, clone the hard drive for backup, convert disks to MBR/GPT without OS, etc. By the way, the Server EditionΒ can play it's part for Windows Server 2025/2022/2019/2016/2012(R2)/2008(R2)/2003 users.