How to Reset Password from CMD in Windows 11/10

This article shows a step-by-step guide on how to reset password from CMD in Windows 11 or 10. An easier alternative for Windows password reset is also covered on this page.

By Hedy    Updated on June 2, 2026

Forgetting your Windows 10 password and getting locked out of your computer can be stressful, especially when you need immediate access to important files or applications. Fortunately, there are practical solutions available to help you regain access without requiring advanced technical experience.

This guide introduces two effective methods to reset a Windows 10 password when you cannot log in to your account. The first method uses Command Prompt and is ideal for users familiar with basic Windows commands and troubleshooting steps.

For beginners or users looking for a faster and easier solution, the second method involves using a professional password recovery tool that simplifies the entire password reset process with a user-friendly interface.

How to reset password from CMD in Windows 10

Resetting a Windows 10 password through Command Prompt can be an effective solution when you forget your login credentials. However, this method requires administrator access to make changes to user accounts. Before starting, make sure you can access an administrator account or the Windows recovery environment.

Follow the steps below to reset your password using CMD:

Step 1. Restart your computer and enter the Advanced Startup environment by pressing F8 or using the power button during startup, depending on your device model.

Step 2. Navigate to Troubleshoot > Advanced options > Command Prompt. This will open the Command Prompt window in recovery mode.

Step 3. Once Command Prompt launches, verify that you have administrative privileges. If needed, enable the hidden Administrator account by entering the following command:

net user Administrator /active:yes

This command activates the built-in administrator account and allows system-level account modifications.

Step 4. Next, reset the password by typing: net user [Username] [NewPassword]. Replace [Username] with the actual account name and [NewPassword] with the new password you want to use.

Step 6. After the password reset is completed successfully, restart your computer and sign in using the newly created password.

In some cases, you may encounter messages such as “System error 5 has occurred. Access is denied” while running the net user command. If that happens, don’t worry — there are alternative password reset methods available that are much easier and more beginner-friendly.

You can continue to the next section to explore a simpler solution for resetting a Windows 10 password.

Reset Windows 10 password using password removal tool

AOMEI Partition Software is a powerful and versatile utility designed to handle a wide range of disk management tasks. Beyond password recovery, the software includes advanced features for resizing partitions, cloning disks, merging partitions, recovering lost partitions, and optimizing overall storage management on Windows computers.

For users dealing with forgotten Windows passwords or PINs, the built-in Password Reset feature offers a simple and efficient solution. It is specifically developed to help users regain access to locked computers without requiring complicated command lines or advanced technical knowledge.

Thanks to its intuitive interface and straightforward workflow, even beginners can reset account passwords quickly and safely. With just a few guided steps, you can unlock your Windows system and recover access to your computer with minimal effort.

AOMEI Partition Software

A safe and reliable disk partition management tool that helps you migrate OS to SSD or HDD, reorganize disk space, and improve overall PC performance.

Step 1. Insert the USB drive you want to use into your working computer. Launch AOMEI Partition Software, navigate to the “Tools” menu, and select “Reset Windows Password”.

Step 2. A small pop-up window will appear. Click “Next” to continue.

Step 3. Choose “General USB Flash Disk” and click “Proceed”. Note that this will format the USB, erasing all data, so ensure any important files are backed up beforehand.

Step 4. Read the warning message carefully, then click “Yes” to confirm.

Step 5. Wait patiently while the password reset USB is being created. Once finished, click “Finish”.

Step 6. Remove the USB and insert it into the locked Surface Pro. Restart the device. When prompted to select a boot device, choose the USB drive. Then, select the Windows system you want to unlock and click “Next”.

Step 7. The interface will display all accounts on the PC. Select the account you wish to reset, then choose either “Remove Account Password” or “Reset Account Password”, and click “Next”.

Step 8. If you chose “Reset Account Password”, enter a new password and confirm by clicking “Yes”. If you selected “Remove Account Password”, follow the on-screen instructions to complete the process.

FAQs

🔔 How do I bypass the Windows password if I forget it?

If you forget your Windows password, use a password reset disk, Microsoft account recovery, Safe Mode, or trusted password recovery tools to regain access legally and safely.

🔔 Can you reset Windows 10 from Command Prompt?

Yes. You can reset Windows 10 through Command Prompt using the systemreset command or recovery environment commands to reinstall or refresh the operating system.

🔔 How can I stop Windows 10 from asking for my password?

Disable password prompts by changing Sign-in Options, removing the password requirement in Netplwiz, or enabling automatic login through Windows account settings.

Conclusion

In conclusion, forgetting your Windows 10 password does not mean losing access to your computer permanently. Whether you choose to reset the password through Command Prompt or use a professional tool like AOMEI Partition Software, both methods can help you regain access effectively. For beginners, dedicated password recovery software offers a faster, safer, and more convenient solution with minimal technical effort.

Hedy · Editor
Hedy always provides easy-to-follow guides to help users resize/move/delete/clone partitions with AOMEI products.