The supported recovery method depends on whether Windows uses a Microsoft account, a local account, or a Windows Hello PIN; use the matching option below rather than password-bypass tools.
Microsoft account password
If the sign-in screen displays an email address:
- Connect the PC to the internet.
- Select I forgot my password.
- Alternatively, select Sign-in options → Web sign-in → Forgot my password.
- Choose where Microsoft should send a verification code.
- Enter the requested portion of the recovery email address or phone number, select Get code, and enter the received code.
- Create a new password, return to the Windows sign-in screen, and sign in with it. ^1^
You can also reset it from another phone or computer at Reset password. If you cannot access any verification method, use the sign-in helper offered during account recovery. ^2^
Local account password
A local account normally displays a username rather than a Microsoft email address.
- On the Windows sign-in screen, enter any password and select the arrow beside the password box.
- After Windows rejects it, select OK → Reset password.
- Answer the security questions configured when the account was created.
- Set a new password and sign in.
If you previously created a password-reset USB, select Use a password reset disk instead. ^3^
If another administrator account already exists on the PC:
- Sign in to that administrator account.
- Open Computer Management.
- Expand Local Users and Groups → Users.
- Right-click the locked local account and select Set Password.
- Enter and confirm a new password. ^3^
If you actually forgot the PIN
A Windows Hello PIN is different from the Microsoft account password.
- For a Microsoft account, select I forgot my PIN beneath the PIN box and complete identity verification.
- That option is unavailable for local accounts. Select Sign-in options → Enter your password, then use the local-password recovery procedure above. ^4^
Last resort: reset Windows
If it is a local account and you have no security-question answers, password-reset disk, or second administrator account, Microsoft’s supported fallback is to reset Windows. Microsoft Support cannot retrieve or circumvent a forgotten password. ^3^
This can affect data:
- Keep my files reinstalls Windows and preserves personal files, but removes installed applications and settings.
- Remove everything deletes personal files, applications, and settings.
- An encrypted device may require its BitLocker recovery key.
From the Windows Recovery Environment, select Troubleshoot → Reset this PC, then choose Keep my files to preserve personal files where possible. Do not choose Remove everything if those files are needed. ^5^
Avoid third-party password-removal utilities or unsupported Command Prompt workarounds; they can damage the account or leave encrypted files inaccessible.
References
- Reset a forgotten Microsoft account password | Microsoft Support
- Change or reset your Microsoft account password in Windows | Microsoft Support
- Change or reset your local account password in Windows | Microsoft Support
- Change or reset your PIN in Windows | Microsoft Support
- [Windows 11](https://support.microsoft.com/windows/experience/backup-recovery/reset-your-pc#reset-steps)