Forgot the password for your Windows 11 PC and can’t log in? If you use a local (offline) account, you can reset the password yourself from the recovery environment, without any extra software. The video at the top of this page shows every step.
Note: This method works for local accounts. If you sign in with a Microsoft account, click I forgot my password on the sign-in screen and reset it through Microsoft instead.
Warning: Only use this on a computer you own. The trick temporarily replaces an accessibility tool with Command Prompt, so follow Part 2 afterwards to put everything back the way it was.
Part 1: Reset the Password
- On the sign-in screen, hold the Left Shift key and, while holding it, select Power > Restart. This opens the advanced recovery menu.
- Go to Troubleshoot > Advanced options > Command Prompt.
- The recovery environment usually opens on the X: drive, not your Windows drive. Switch to your Windows drive (it is normally C:, sometimes D:). Type
C:and press Enter. You can typedirto list the folders and check you are on the right drive. - Go to the Windows System32 folder:
cd windows cd system32 - Rename utilman.exe (the accessibility tool) so you can restore it later:
ren utilman.exe utilman1.exe - Make Command Prompt open when you click the accessibility button:
ren cmd.exe utilman.exe - Restart the computer. You can type
exitand choose Continue, or runwpeutil reboot. - On the sign-in screen, click the Accessibility icon in the bottom-right corner. Thanks to the trick, this opens a Command Prompt window.
- Open the user accounts window:
control userpasswords2 - Select your user, click Reset Password, type a new password twice and click OK. Close the windows.
- Click your user, enter the new password and press Enter. You are back in Windows. You have just reset your forgotten Windows 11 login password.
Part 2: Put Command Prompt Back (Important)
You replaced the accessibility tool with Command Prompt, so now you need to undo that change for security.
- Hold the Left Shift key and restart the PC again to reach the recovery menu.
- Go to Troubleshoot > Advanced options > Command Prompt.
- Go back to the System32 folder:
C: cd windows cd system32 - Put Command Prompt back:
ren utilman.exe cmd.exe - Restore the real accessibility tool:
ren utilman1.exe utilman.exe - Restart the computer.
You’re done. Both the Command Prompt and the accessibility button now work normally again.
Prefer not to use commands? See my other guide, How to Reset a Forgotten Windows Password (Proven Method). If you simply want to stop entering a password at every login, read How to Remove a Windows Password and PIN.
If you have any questions, leave a comment below. Don’t forget to subscribe to Tips2Fix on YouTube.






