Getting locked out of Windows 11 is stressful, but in most cases you can recover the account name or regain access without resorting to risky tricks. In this guide we’ll cover how to identify the username, official ways to reset a forgotten password, what to try when you’re already signed in, and safe last-resort options.
You’ll need admin access on another account on the same PC (if available), or access to the email/phone linked to the Microsoft account tied to the Windows user. For password reset via Microsoft, you’ll need internet access. If this is a work or school PC, you’ll need to contact your IT administrator to avoid breaking company policies.
How to find the username (when you can still sign in)
If you can sign in to any account on the computer, finding the username is quick.
Open Settings and read it:
- Press Windows + I to open Settings, go to Accounts → Your info and read the displayed account name or email.
- Open Control Panel → User Accounts → User Accounts to view the account display name.
- Open a command prompt or PowerShell and run
whoamito show the current account in the formCOMPUTERNAME\username.
If the machine is joined to Azure AD or an organization, the shown name may be your work/school email.
How to find the username (when you are locked out but can see the sign-in screen)
If you are at the lock screen or sign-in screen, the account name or email is typically visible above the password/PIN box. If multiple accounts appear, pick the one you normally use. If the name is unclear, note the email hint and check your email inboxes for Microsoft account verification emails to identify which account is associated with the PC.
Recovering a Microsoft account password (most common for Windows 11 users)
If your Windows account is a Microsoft account (email address used to sign into Windows), use Microsoft’s official recovery flow.
- On another device, open a browser and go to the Microsoft account recovery page at account.microsoft.com (choose “Sign in” → “Forgot my password”).
- Enter the Microsoft account email shown on the sign-in screen.
- Follow the prompts to receive a security code by the recovery email or phone you set up. Use that code to reset the password.
- After resetting, return to the locked PC and sign in with the new password.
If you do not have access to the recovery email or phone, follow the account recovery form; you’ll be asked for as much information as possible to verify identity. If this is a work/school account, contact your IT admin to reset the password.
Resetting a local account password (Windows local accounts)
If the account is a local account (not tied to a Microsoft email), recovery options are different:
If you previously created a password reset disk (USB) for that local account, plug it in at the sign-in screen and follow the “Reset password” link.
If you do not have a reset disk and there is another administrator account on the PC, sign in with that admin account and reset the local user’s password from Settings → Accounts → Family & other users or Control Panel → Administrative Tools → Computer Management → Local Users and Groups (if available in your edition).
If no other admin account exists and the account is local, the supported safe options are limited: back up your personal data (if you can access it from another environment) and perform a password reset by reinstalling or using “Reset this PC” (see last-resort below). Avoid publicly documented “hack” methods that alter system files — those can permanently damage the system, violate policies, or be illegal if you’re not the owner.
If you are already signed in and want to change your password or view account info
If you can sign in and want to change the password or confirm the username:
To change password:
- Press Ctrl + Alt + Delete and choose Change a password, or open Settings → Accounts → Sign-in options → Password and choose Change.
To view username:
- Open Settings → Accounts → Your info or run
whoamiin Command Prompt.
To create a local password reset disk (recommended while you still have access):
- Insert a USB drive, open Control Panel → User Accounts → Create a password reset disk, and follow the wizard.
For organizational (work/school) accounts
If the PC is managed by an organization, you generally cannot reset account passwords yourself. Contact your IT helpdesk or admin — they can reset passwords centrally (Azure AD, Active Directory) and help re-provision access. Do not attempt administrative bypasses on corporate devices.
Safe last-resort options
If all legitimate recovery options fail and you own the PC, these are the supported last resorts:
Reset this PC (keeps files or removes everything):
- Go to Settings → System → Recovery → Reset this PC and choose either Keep my files (removes apps and settings) or Remove everything (full reset). You will lose installed apps and some settings, so back up any recoverable data first.
Reinstall Windows:
- Use Microsoft’s official installation media (Media Creation Tool) to perform a clean install. Back up data first. This removes user account passwords and requires you to set up accounts again.
Both options are destructive to installed programs and some settings; use them only when you cannot recover the original account and you own the machine.
What we will not do here
We will not provide instructions for bypassing or cracking Windows credentials (for example, replacing system binaries, enabling utilman hacks, or other offline password-reset exploits). Those techniques can be used to break into systems and are not appropriate to share. If you need authorized forensic or recovery assistance for a machine you own, consider a local certified technician or Microsoft Support.
Quick troubleshooting checklist
If you are locked out, try these in order:
- Look at the sign-in screen — the displayed name or email often reveals the username.
- If it’s a Microsoft account, use Microsoft’s password reset at account.microsoft.com.
- If you have another admin account, sign in there and reset the password.
- If you are part of an organization, contact IT support.
- If none of the above work and you own the PC, back up data and use “Reset this PC” or reinstall Windows.
Wrapping up
Recovering a username is usually straightforward because the sign-in screen or email history reveals it. Recovering a password is easiest and safest via Microsoft’s official recovery flow for Microsoft accounts or by using another local admin account. If those options are not available, your next steps are contacting your IT admin or using Windows’ built-in reset/reinstall tools after backing up data.
If you tell me whether your account is a Microsoft account or a local account, and whether you have access to any other admin account or recovery email/phone, I can give the exact step-by-step recovery path that applies to your situation.