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 sear...
UtahMountain
Feb 19, 2025Iron 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!