How to Find or Change Your Windows Username and Reset Passwords

To find your username in Windows 11, open Settings > Accounts > Your info. Your account name is at the top of the page, with your email address if you sign in with a Microsoft account. Windows will not show you your sign-in password anywhere. If you forgot it, the only supported fix is to reset it, and the steps depend on which type of account you have.

This guide covers Windows 11 Home and Pro. It explains four ways to see your username, how to tell which kind of account you use, and how to reset a forgotten password or PIN the way Microsoft documents it. These steps are for your own account on your own PC. If the computer belongs to an employer or a school, your IT administrator handles password resets.

Comparison card showing that a Windows 11 username can be looked up in Settings or with whoami, while a sign-in password can only be reset
Illustration: Windows 11 shows your username in several places, but a forgotten sign-in password can only be reset.

What You Need to Know First

Windows 11 uses two main kinds of personal accounts, and knowing which one you have decides everything else in this guide.

  • Microsoft account: tied to an email address and password that also work with services such as Outlook.com, OneDrive, and Xbox. You sign in with that email address, and the password is stored by Microsoft online, not only on your PC.
  • Local account: created on one device and used only there. It does not need an internet connection to sign in, and its password exists only on that PC.

A third kind, a work or school account, is managed by an organization. Its name and password come from that organization.

The word “username” can also mean two different things. Your display name is the friendly name on the sign-in screen and in Settings. Your user name is the short name Windows uses behind the scenes, such as the one in your profile folder path. They are often different, so use the method below that matches what you need.

Find Your Username in Settings

This is the easiest route, and it also tells you your account type.

  1. Press Windows key + I to open Settings.
  2. Select Accounts in the left pane.
  3. Select Your info.
  4. Read the top of the page. You will see your display name and, for a Microsoft account, the email address you sign in with. The same area says whether the account is a local account and whether it is an administrator.

To confirm the account type, scroll to Account settings on the same page. Microsoft notes that the link Sign in with a local account instead appears only when you are using a Microsoft account, and Sign in with a Microsoft account instead appears only when you are using a local account. You do not need to select either link. Just read which one is there.

Find Your Username With the whoami Command

Use this method when an app, a network share, or a remote connection asks for the exact user name instead of the display name.

  1. Right-click the Start button and select Terminal.
  2. Type whoami and press Enter.

Microsoft describes whoami as a command that returns the current domain and user name. On a home PC the result looks like computername\username. The part before the backslash is the name of your PC, and the part after it is your user name. On a work PC joined to a domain, the first part is the domain name.

If you only want the user name without the computer name, type echo %USERNAME% in a Command Prompt window and press Enter. In PowerShell, which is what Terminal opens by default, whoami is the simpler choice.

Other Places Your Username Appears

  • Start menu: select Start, then select your user picture. The account menu shows the name you are signed in with.
  • Sign-in screen: press Windows key + L to lock the PC. The name above the password or PIN box is your display name. If more than one person uses the PC, the other accounts are listed in a corner of the screen.
  • File Explorer: open File Explorer and go to C:\Users. Each account that has signed in has a folder there. The folder name is the profile name Windows created when the account was first set up, so it may be a shortened version of your name or email address.

Locking the PC does not close your apps, so you can sign straight back in. Do not lock it if you are not sure of your password or PIN.

Change Your Account Display Name in Windows 11 or Windows 10

To change the display name on Windows 11 or Windows 10, first identify whether you use a local, personal Microsoft, or work/school account. For your own local account, search Start for Control Panel, open User Accounts (choose User Accounts again if the category view requires it), then choose Change your account name. Enter the new name and select Change Name when offered. Save open work before signing out and back in, then check the name in Start and on the sign-in screen. If that option is unavailable, check the account type rather than assuming every account can be renamed here.

For a personal Microsoft account, open its online Your info page, choose Edit name, enter the intended name, complete any verification shown and select Save. You can reach the account from Settings > Accounts > Your info and its Microsoft-account management link. Microsoft’s account-name instructions say changes can take up to 24 hours to appear everywhere. For work or school accounts, use your organization’s profile controls or contact IT if changes are restricted. This changes a displayed name; it does not rename the existing C:\Users profile folder, change your password, or change an Xbox gamertag. Reopen the same name controls to correct a mistake.

Use a New Profile Instead of Renaming C:\Users

Changing a display name does not rename its existing C:\Users folder. Microsoft explicitly says not to apply its old folder/registry renaming workaround to Windows 10 or later. If only the name shown on screen bothers you, use the display-name section above. If you need a different profile path, plan a separate new account and a checked data migration instead. Back up your personal files and app-specific data first, keep access to the old account, and arrange recovery of any EFS-encrypted files using their required certificate/private key. A new profile is not a renamed copy of the old identity.

On your own authorized Windows 11 PC, open Settings > Accounts > Other users > Add account. For a local account, choose I don’t have this person’s sign-in information, then Add a user without a Microsoft account; enter the intended new account name and complete its credential/recovery prompts. Windows 10’s older layout uses Family & other users > Add someone else to this PC. Microsoft documents these account-management controls. Use a standard account for ordinary work; give it administrator access only when required for an authorized migration task. Save work, sign out and sign into the new account so Windows creates its profile. Inspect its actual folder under C:\Users: an existing name or naming rules can change the generated path, so do not promise a particular folder solely from the display name.

Keep both profiles and your backup. Copy the personal files you need from the old profile’s visible Documents, Desktop, Pictures and other data folders into the corresponding new locations, then open important files under the new account. Microsoft’s new-profile recovery guide describes copying visible data and warns against exposing hidden or protected system files for this operation. Do not copy NTUSER.DAT or the whole hidden AppData tree as a shortcut. Import mail and app data through the relevant app’s supported process, sign into needed apps and cloud services, and check sync, settings and encrypted-file access separately. Some apps need reconfiguration or reinstallation. Do not remove the old account or its data until all required files and applications work and an independent backup is verified; returning to that retained account is your fallback. A managed PC needs IT’s migration process.

Can You See Your Windows 11 Password?

No. Windows never displays your sign-in password, and there is no setting, command, or built-in tool that reveals it. Microsoft also states that its support agents cannot retrieve or bypass a lost password. Some guides point to Credential Manager, but Microsoft describes that tool as a place to view and delete saved credentials for websites, connected apps, and networks. It is not a way to read the password you use to sign in to the PC.

That leaves two honest options: remember it or reset it. If you still know the password and only want a different one, see how to change your password on Windows 11 instead.

Checklist card showing how to choose the right Windows 11 password reset path for a Microsoft account, local account, or work account
Illustration: the reset path depends on whether you sign in with a Microsoft account, a local account, or a work account.

Reset a Forgotten Microsoft Account Password

Before you start: this changes the password for your whole Microsoft account, so the new password also applies to Outlook.com, OneDrive, Xbox, and any other device that uses the same account. You need access to the recovery email address or phone number on the account to receive a verification code.

  1. On the Windows 11 sign-in screen, select I forgot my password under the password box.
  2. Choose where Microsoft should send a verification code, then confirm the email address or phone number when asked.
  3. Enter the code you receive.
  4. Type a new password and select Next.
  5. Sign in to Windows with the new password. The PC needs an internet connection to pick up the change.

You can also do this from a browser on any phone or computer. Microsoft’s guide to resetting a forgotten Microsoft account password has the Reset password button and the same four steps. If you no longer have any of the listed verification options, that page links to Microsoft’s sign-in helper tool.

If you are already signed in with a PIN and only the password is forgotten, open Settings > Accounts > Sign-in options, select Password > Change, and then select Forgot my current password. Microsoft lists every route in Change or reset your Microsoft account password in Windows.

Reset a Forgotten Local Account Password

A local account has no online recovery. The reset depends on the security questions you answered when the account was created.

  1. On the sign-in screen, enter a password and select the arrow button next to the password box.
  2. When Windows says the password is incorrect, select OK.
  3. Select Reset password.
  4. Answer the security questions.
  5. Enter a new password.

If you made a password reset disk in the past, which is a USB drive prepared for this purpose, select Use a password reset disk instead and follow the instructions.

If you cannot answer the questions, an authorized administrator on this PC may be able to reset your local-account password. On editions that include Local Users and Groups, Microsoft documents Computer Management > Local Users and Groups > Users, right-clicking the intended account and choosing Set Password. Windows Home does not include that console. This sets a new password; it does not reveal the old one. An administrator reset can affect access to encrypted files and saved credentials, so review the warning and preserve accessible data first. See Microsoft’s local-account recovery instructions for the available method; a managed account needs IT.

Warning: if there is no other administrator account and no reset disk, Microsoft says you will need to reset the Windows device. A reset reinstalls Windows and removes your apps and settings, and the Remove everything option also deletes your personal files. Read Microsoft’s Reset your PC page before you go that far, and treat it as a last resort.

Forgot Your PIN Instead?

A PIN is a Windows Hello sign-in method that works only on the device where you created it. It is not your password. On the sign-in screen, look under the PIN box for I forgot my PIN and follow the instructions. Microsoft notes that this link is available only for Microsoft accounts, not local accounts.

If the link is not there, select Sign-in options, choose the password option, and sign in with your password. Then go to Settings > Accounts > Sign-in options > PIN (Windows Hello) and select I forgot my PIN. See Microsoft’s page on how to change or reset your PIN in Windows for the details.

How to Confirm It Worked

  • Username: check Settings > Accounts > Your info for the display name. Use whoami when you need the exact signed-in account name; it can differ from the display name and the existing profile-folder name.
  • Password: press Windows key + L and sign back in with the new password. If you normally use a PIN, select Sign-in options first so that Windows asks for the password.

A password reset cannot be undone, and the old password is not restored. You can change the password again at any time from Settings > Accounts > Sign-in options > Password.

Troubleshooting

  • There is no “I forgot my password” link. The account is probably a local account or a work account. For a local account, the Reset password link appears only after you enter a wrong password and select OK.
  • “Reset password” never appears. The local account may have been created without security questions. Use another administrator account on the PC.
  • The new Microsoft account password is rejected. Check that the PC is online. Select the network icon on the sign-in screen to connect to Wi-Fi, then try again.
  • The whoami name is not the name you see on screen. That is normal. The command returns the user name, and the sign-in screen shows the display name.
  • The PC belongs to your job or school. Password resets are controlled by the organization. Contact your IT administrator instead of trying the steps above.
  • A website or tool promises to reveal your Windows password. Do not use it. Windows does not store the password in a readable form, and such tools are a common way to pick up malware.

Check Which User Accounts Are on a Windows 11 PC

Open Settings > Accounts > Other users to inspect accounts configured for other people on this PC. Check Accounts > Family separately if it is in a family group; older layouts combine these as Family & other users. These lists describe configured accounts, not everyone currently signed in. You can read the list without choosing Add account, Remove or Change account type. Microsoft’s account-management guide distinguishes these areas.

For a local-account list, search Start for Command Prompt, open it and enter only net user, with no username or other arguments. Microsoft’s command reference shows that this form lists local user accounts; other arguments can change accounts. This is not a list of every Microsoft or organizational account or currently active session. For signed-in sessions, use Task Manager > Users instead. To identify the account you are currently using, use the username checks above.

Sign In to a Locked Windows 11 PC

Dismiss the lock screen with a key or click, select your own account if more than one is shown, and choose Sign-in options if you need to switch between its configured password, PIN, fingerprint or face recognition. Enter the credential for that account or complete its Windows Hello prompt. A Windows Hello PIN is different from your Microsoft-account password. Check that your normal desktop appears. Microsoft’s account-access guide explains these methods. If you forgot your credential, use the appropriate Microsoft-account, PIN or local-account recovery section above. Safe Mode and F8 are not password-bypass methods; managed work or school accounts need your administrator’s recovery process.

Frequently Asked Questions

Is my PIN the same as my password?

No. Microsoft states that the PIN you use to access your device is different from your Microsoft account password. The PIN works only on the PC where you set it up, while the password belongs to the account. You can switch between them on the sign-in screen by selecting Sign-in options.

Why is my user folder name different from my account name?

Windows creates the folder in C:\Users when the account first signs in, and for a Microsoft account it is often based on the first part of the email address. Changing your display name later does not rename the folder.

How do I find my computer’s name?

Open Settings > System > About. The device name is at the top of the page. It is also the part before the backslash in the whoami result on a home PC.

Where can I see other saved passwords?

Passwords for websites and Wi-Fi networks are stored separately from your Windows password, and some of them can be viewed. See how to find saved passwords on Windows 11. If Windows is asking for a user name and password to reach another computer, see how to find network credentials.

Can I sign in to Windows 11 without a password?

You can sign in with a PIN, a fingerprint, or facial recognition if Windows Hello is set up on the PC. The account still has a password behind it, so keep your recovery email address and phone number up to date on a Microsoft account.

How do I change the name that Windows shows?

The display name can be changed without creating a new account. See how to change your user name in Windows 11, or how to change the name on the Windows 11 lock screen if that is the only place you want it to look different.

Next Step

Once you are back in, write down which type of account you use and make sure the recovery details are current. For a local account, confirm that your security questions are ones you can still answer. On a work PC, your sign-in comes from your organization, and this guide on how to join a domain in Windows 11 explains how that connection is set up.

Join Our Free Newsletter

Featured guides and deals

You may opt out at any time.
Read our Privacy Policy