Forum Discussion
Garciab
Feb 19, 2025Iron Contributor
How can I reset windows 11 password using command prompt
Yesterday I suddenly found that I forgot the login password of my Windows 11 computer. The key is that there are many important files stored on this computer, and I can't reinstall the system. I searched online and someone said that I could use the command prompt (CMD) to reset the password, but I tried several methods and none of them worked. I don't know if there is a problem with the operation or the Windows version is different?
My situation:
- Windows 11 Professional Edition, Administrator account
- The computer can enter safe mode, tried "Shift + Restart" to enter the advanced options
- Used the net user command, and it prompted "Access Denied"
- Tried to run cmd as an administrator, but it still didn't work
Is there any friend who successfully reset the Windows 11 password with command prompt? Please provide detailed operation steps, preferably those that you have tried and found effective! Or other methods are also OK, it's really urgent! Thank you everyone!
6 Replies
Sort By
- PatrickHarrisIron Contributor
I had the same issue with forgetting my Windows 11 password, and honestly, using Command Prompt was too tricky for me. I ended up using iSePasword Windows Password Reset tool, and it worked perfectly to reset my password without any hassle.
I followed this guide (worked great)
https://www.netgeair.com/reset-windows-forgotten-password
Definitely worth a try!
- ChristianZhaoIron Contributor
If you use a Microsoft account to sign in to Windows 11, you can reset Windows 11 password online. Here's how:
Method 1: Reset Your Microsoft Account Password Online
- On another device, go to the Microsoft Password Reset page.
- Select "I forgot my password" and click Next.
- Enter your Microsoft account email and click Next.Choose a verification method to receive a security code.
- Enter the verification code you received and click Next.
- Set a new password and confirm it.
- Click Next to finish.
Method 2: Use Another Trusted Device
If you have another device logged into the same Microsoft account:
- Open Settings > Accounts > Sign-in options.
- Click Password and select Change to set a new one.
Once you've reset your password, you can log into Windows 11 using the new credentials. As you can see this is a much easier way to reset Windows 11 password without using CMD. However, this trick does not work for Windows 11 local account.
- NguyenaisIron Contributor
Resetting Windows 11 password using command prompt is too tricky for average users. If you have created a Windows 11 password reset USB, you can use it to reset your password. A Windows password reset disk allows you to reset your Windows 11 password if you have forgotten it. However, you must have created this disk before forgetting Windows 11 login password.
Reset Windows 11 Password with Reset Disk (No Command Prompt)
Step 1: Plug in the USB drive or floppy disk (if you created one) into your Windows 11 PC.
Step 2: On the Windows 11 login screen, type any incorrect password and press Enter. Windows will display a message: "The password is incorrect. Try again." Below the password box, click on "Reset password".
Step 3: A Password Reset Wizard will appear. Click Next to continue. Select your password reset disk (the USB or floppy drive).
Step 4: Click Next and enter a new password. Re-enter the new password and set a password hint. Click Finish.
Step 5: Return to the Windows 11 login screen. Enter the new password and sign in.
Important Notes:
- The password reset disk only works for the local account (not for Microsoft accounts).
- If you haven't created a password reset disk, you'll need to use alternative methods, such as a password reset USB, another administrator account, or a third-party tool.
- UtahMountainIron Contributor
If you can't enter Windows 11 and don't have administrator privileges, you can use Windows Recovery Environment (WinRE) to reset Windows 11 password using command prompt. This method does not require additional tools and relies entirely on the system's built-in functions!
If your computer can still enter advanced startup options, try this:
- Shift + Restart, enter Troubleshooting → Advanced Options → Command Prompt
- Enter the following command to replace utilman.exe with CMD:
move c:\windows\system32\utilman.exe c:\windows\system32\utilman.exe.bak copy c:\windows\system32\cmd.exe c:\windows\system32\utilman.exe
4. Restart the computer, click Accessibility (the little man icon) on the login screen, and CMD will pop up!
5. Run this command to change the password:
net user your username new password
After success, restore the original utilman.exe (return to CMD and enter again):copy c:\windows\system32\utilman.exe.bak c:\windows\system32\utilman.exe
Now you can log in with the new password!
- Jesse_PooleLIron Contributor
If you can still enter Windows 11 and have administrator privileges, you can use the net user command to directly reset Windows 11 password using command prompt. The method is super simple.
Steps:
- Open CMD with administrator privileges
- Right-click the "Start Menu" → Select Command Prompt (Admin) or Windows Terminal (Admin)
- View the current account list
In CMD, enter:
net user
This command will list all local accounts and find the username you want to reset the password for.4. Reset Windows 11 password
5. Directly enter:net user your username new password
Example: If your account name is Admin and the new password is set to 123456, then the command is:
net user Admin 123456
Done!
If the command is executed successfully, it will display "Command completed successfully", and you can log in with the new password.
- If it prompts "Access denied" or "Insufficient permissions", it means that the current account is not an administrator and you need to enter safe mode or advanced startup to run CMD.
- If the net user command doesn't work, you may need to enable the built-in administrator account to execute the command.
Reset Windows 11 password using command prompt is one of the quickest methods and is suitable for most situations. Try it now!
- soumdg663Iron Contributor
I can provide you with some detailed methods to reset Windows 11 password using the command prompt. Please try these steps:
Method 1: Net User Command
1. Open the Command Prompt as an administrator. To do this, right-click on the Start button and select "Command Prompt (Admin)" or search for "cmd" in the Start menu and right-click on the result to select "Run as administrator."
2. Type the following command and press Enter: net user \[username] \[new password]
Replace [username] with the username of the account you want to reset, and [new password] with the new password you want to use.- If you get an "Access Denied" error, it may be because the Command Prompt is not running as an administrator. Try running it as an administrator again.
- If you get a "The specified local group does not exist" error, it may be because the account is not a local user account. Try using the built-in Administrator account instead.
Method 2: Built-in Administrator Account
- If you're unable to reset Windows 11 password using the net user command, try using the built-in Administrator account.Restart your computer and press the F8 key while booting to enter Safe Mode.
- In Safe Mode, click on the Administrator icon on the login screen to log in with the built-in Administrator account.
- Once logged in, open the Command Prompt as an administrator and type the following command: net user \[username] \[new password]
- Replace [username] with the username of the account you want to reset, and [new password] with the new password you want to use.