This guide shows you how to locate your Windows 10 username and safely reset or recover your password without breaking system security. You’ll learn where usernames are stored, how to check them via Command Prompt or Settings, and the proper ways to reset a forgotten password—including using your Microsoft account or a password reset disk.
What You’ll Need
- Access to a Windows 10 PC (even if you’re locked out, you can use the sign-in screen options)
- Your Microsoft account email and phone (if you use a Microsoft account to sign in)
- A password reset disk (only if you created one before forgetting your password)
- Another admin account (if you need to reset a local account password)
Step-by-Step
Part 1: Find Your Username
- Check the Start Menu: Click the Start button (Windows logo) and look at the top-left corner. Your username appears above the power icon. This is the fastest method if you’re already logged in.
- Use Command Prompt: Press Win + R, type
cmd, and press Enter. In the black window, typewhoamiand press Enter. It shows your username in the formatcomputername\username. - Check User Accounts Panel: Press Win + R, type
netplwiz, and press Enter. The “Users” tab lists all local accounts. Your current account is highlighted. - Look at the Sign-in Screen: If you’re locked out, the sign-in screen shows the last used username (or an email if you use a Microsoft account). If it’s hidden, press Ctrl + Alt + Delete and then select “Other user” to see the username field.
Part 2: Reset or Recover Your Password
- If you use a Microsoft account (email): Go to
account.live.com/password/reseton any device. Choose “I forgot my password,” enter your email, and follow the prompts to verify via phone or alternate email. Once reset, use the new password to sign in to Windows. - If you use a local account and have a password reset disk: On the sign-in screen, click “Reset password…” after entering a wrong password. Insert the USB drive or floppy disk, then follow the wizard to create a new password.
- If you have another admin account: Sign in with that admin account. Press Win + R, type
netplwiz, select the locked account, and click “Reset Password…” to set a new one. Note: this only works for local accounts, not Microsoft accounts. - Use Safe Mode (last resort): Restart your PC and press F8 (or Shift + Restart) to enter Advanced Startup. Choose Troubleshoot > Advanced Options > Startup Settings > Restart, then press 4 for Safe Mode. If the built-in Administrator account is enabled, log in with it and reset your password via netplwiz. This usually only works if you previously enabled the hidden Administrator.
Common Mistakes
- Confusing Microsoft account password with local password: If you sign in with an email, resetting the local password won’t help—you must reset the Microsoft account password online.
- Using the wrong username format: In Command Prompt,
whoamishowscomputer\user. When logging in, you only need the part after the backslash. - Attempting to guess passwords repeatedly: Too many wrong attempts can trigger a temporary lockout, making it harder to recover.
- Forgetting to create a password reset disk before you need it: This is a one-time setup that saves you from a full reset later.
Tips
- Write down your username and password and store them in a secure place (like a password manager or a locked drawer).
- Use a PIN instead of a password for faster, safer sign-in: Go to Settings > Accounts > Sign-in options and set up a PIN. It’s tied to your device and doesn’t replace your password.
- Create a password reset disk now: Insert a USB drive, search “Create a password reset disk” in the Start menu, and follow the wizard. Store it safely.
- Link your local account to a Microsoft account to make password recovery easier—you can reset it from any browser.
Troubleshooting
- “whoami” doesn’t work or shows an error: Make sure you’re in the standard Command Prompt, not PowerShell with restricted permissions. Right-click Command Prompt and select “Run as administrator” if needed.
- You can’t see the username on the sign-in screen: Press Ctrl + Alt + Delete and choose “Other user.” The username field will appear; type your username or email.
- Password reset disk not working: Ensure the USB drive is the exact one you created the disk on. The reset disk is tied to that specific user account and can’t be used for another.
- Microsoft account reset page doesn’t send a code: Check your spam folder, wait a few minutes, or try a different verification method (phone vs. email).
- Safe Mode doesn’t show Administrator: The built-in Administrator is disabled by default. If you never enabled it, this approach won’t work. Use another admin account or a reset disk instead.
Frequently Asked Questions
Can I find my password in Windows 10?
No, Windows does not store passwords in plain text. You can only reset the password, not view the existing one. If you’re logged in, you can change your password but not see the old one.
What’s the difference between a local account and a Microsoft account?
A local account is only on your PC and uses a username and password you set. A Microsoft account uses your email address and password, and syncs settings across devices. Resetting a Microsoft account password must be done online.
How do I find my username if I’m locked out?
On the sign-in screen, press Ctrl + Alt + Delete and select “Other user.” The username field will show a hint like “User name” and you can type your username. If you don’t remember it, try common variations or check the “Users” folder in C:\Users (if you can boot from a recovery drive).
Will resetting my password delete my files?
No, resetting your password does not delete your files. However, if you use a Microsoft account and reset online, it may temporarily lock your device until you sign in with the new password. Your documents, photos, and apps remain intact.
Can I use another admin account to reset any user’s password?
Yes, but only for local accounts. For Microsoft accounts, you must reset the password online. Also, the other admin account must have administrator privileges to change passwords.
What if I don’t have a password reset disk and no other admin account?
Your only option is to reset your Microsoft account password online (if you use one). For a local account, you may need to reinstall Windows, which will remove your apps and settings (though your files can often be recovered from the Windows.old folder). Consider creating a reset disk now to avoid this in the future.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Google Chrome Helper: What It Is & How to Disable
- Fix 0x80070422 on Windows Server (Step-by-Step)
- How to Troubleshoot a Malfunctioning Driver on Windows
- How to Create Folders in Microsoft Outlook
- Fix Status Range List Conflict 0xc0000282 in Windows
- Fix Software Not Uninstalling on Windows 10