Find Your Windows 10 Username and Reset a Forgotten Password

Last updated on November 17th, 2026 at 02:58 pm

Your Windows 10 username is easy to find: press Windows key + I, select Accounts, and read the name on Your info. The password is another story. Windows never displays your sign-in password, so if you’ve forgotten it, the fix is a reset, and the route depends on whether you use a Microsoft account or a local account. Everything here assumes a PC you own or are allowed to use.

Find your username

If you can still get into Windows, any of these shows the name. Pick the one that fits where you are.

From Settings

  1. Press Windows key + I to open Settings, then select Accounts.
  2. On Your info, read the name under your picture. If you sign in with a Microsoft account, the email address shown there is your sign-in name.

From Command Prompt

  1. Press Windows key + R, type cmd and press Enter.
  2. Type whoami and press Enter.

The result looks like desktop-7k2q9\alex. The part before the backslash is the computer (or domain) name; the part after is the account name. Typing echo %username% shows just the account name, and net user lists every local account on the PC.

From the user accounts list

Press Windows key + R, type netplwiz and press Enter. The User Accounts window lists everyone who can sign in to the PC, with Microsoft accounts shown by email address. You can also see account names in Control Panel > User Accounts.

From the Users folder

Open File Explorer and go to C:\Users. Each folder belongs to one account. Treat this as a clue, not the answer: the folder name is set when the account is first created and can differ from the current account name, especially for Microsoft accounts, where it’s often a shortened version of the email.

At the sign-in screen

If you can’t get past the sign-in screen, the account names appear there, in the lower-left corner when the PC has more than one. A Microsoft account usually shows your name, and you sign in with its email address.

Microsoft account or local account?

This decides how a password reset works, so check before you go further.

  • Microsoft account: an email address appears under your name in Settings > Accounts > Your info. The password is the same one you use for Outlook.com, OneDrive or Xbox.
  • Local account: Your info shows Local Account and no email. The password exists only on this PC.
  • Work or school account: the name looks like [email protected] or COMPANY\jordan, and your organization controls the password.

Example: How a Local Account Shows Up

On a Windows 10 test PC (signed in with a local Administrator account), the top of the Settings window showed the username Administrator with Local Account under it and a Sign In link.

Windows 10 Settings header showing Administrator, Local Account and Sign In
The account header at the top of Settings.

A Microsoft account shows an email address in that spot instead. Local Account means the password lives only on this PC, so it is reset on the PC, not online.

Your password: reset it, don’t look it up

Windows stores a scrambled version of your sign-in password and has no screen or command that shows it. Credential Manager isn’t the place to look either: it holds saved sign-ins for websites, connected apps and networks. Programs that claim to reveal it are either cracking tools or scams, so skip them. Microsoft’s own support staff can’t retrieve a lost password. Here’s what works instead, per Microsoft’s change or reset your Windows password page.

Microsoft account

  1. On the sign-in screen, select I forgot my password below the password box. Or, from another device, go to Microsoft’s Reset password page at account.live.com/ResetPassword.aspx.
  2. Confirm your identity with the code Microsoft sends to your recovery email or phone.
  3. Choose a new password, then sign in to the PC with it. Make sure the PC is connected to the internet when you first sign in with the new password.

Local account

  1. On the sign-in screen, select the arrow next to the password box (with a wrong or empty password), then select OK.
  2. Select Reset password, answer the security questions you set up, and enter a new password.

If there are no security questions, a password reset disk works if you made one beforehand (local accounts only). An administrator account on the same PC can usually set a new password too. For the other options, see the steps for when you’ve forgotten the password on a Windows 10 laptop, or how to reset the administrator password in Windows 10 on your own PC.

Still signed in and want to change it?

Go to Settings > Accounts > Sign-in options > Password > Change. That’s useful if you sign in with a PIN or fingerprint and have lost track of the password behind it.

A note on PINs

A Windows Hello PIN is tied to this one PC and isn’t your account password. Knowing the PIN doesn’t tell you the password, and a PIN won’t work for network shares or account.live.com.

Saved passwords are a different thing

Windows does keep passwords for other things, and on your own PC you can view them:

If a saved entry is out of date and keeps failing, clearing cached credentials in Windows 10 makes Windows ask again.

What to type at a network prompt

When another PC’s shared folder asks for credentials, it wants an account on that other PC, not yours. Example: Priya opens a share on Alex’s desktop, named ALEX-PC. She types ALEX-PC\alex and Alex’s password. If Alex signs in with a Microsoft account, his email address and its password work instead. To use an account on the PC you’re sitting at, .\username means “this computer”.

Common questions about Windows 10 sign-in details

Can someone else see my Windows password?

Not through Windows. Anyone with an administrator account can reset it, though, so keep admin accounts to people you trust and lock the PC with Windows key + L when you step away.

Why does whoami show a name I don’t recognize?

When a Microsoft account is set up, Windows often creates a shorter local name from the email address. It’s still your account, and you sign in with your email.

Where’s the computer name?

Open Settings > System > About and look at Device name, or run hostname in Command Prompt.

Is it still safe to use Windows 10?

If you’re staying on it for now, enrolling in Windows 10 Extended Security Updates keeps security fixes coming.

Once you’re back in, add a recovery phone or email to your Microsoft account, or set up security questions for a local account, so the next reset takes a minute.