The fastest way: Settings

Open the Settings app by pressing the Windows key and typing "settings", then press Enter. Click Accounts on the left side, then click Your info. At the top of the window, you will see your username displayed under your profile picture. This is the name Windows uses to identify your account.

If you see an email address instead of a username, that means your account is linked to a Microsoft account. Your actual Windows username may be different from the email. Scroll down on this same page to find Local user info — if it appears, click it to see your local username as well. This section shows the name that Windows stores on your computer, separate from your sign-in method.

Key Takeaways

  • Your Windows username appears in Settings under Accounts > Your info, displayed above your profile picture.
  • If you see an email address, your account is a Microsoft account, and your local username may be listed separately below under Local user info.
  • The Command Prompt method (typing "whoami") works on any Windows computer and shows your username when ready in the format COMPUTERNAME\username.
  • File Explorer shows your username in the address bar when you navigate to your user folder — it appears after "C:\Users\" in the file path.
  • Your Windows username and your sign-in password are completely separate, and you can change one without affecting the other.

Using Command Prompt

Press the Windows key and type "cmd", then press Enter to open Command Prompt. Type whoami and press Enter. The command will display your username in the format "COMPUTERNAME\username". The part after the backslash is your Windows username.

This method works the same way on every Windows computer and is often the fastest if you are already comfortable with Command Prompt. The output shows exactly how Windows recognizes your account internally. If you need to copy your username for use in another program or document, you can right-click the Command Prompt window, select Select All, then copy the text.

Checking File Explorer

Open File Explorer and click This PC in the left sidebar. Look at the address bar at the top — it will show a path that includes your username. The path typically reads "This PC" but if you navigate to your user folder, the address bar displays something like "C:\Users\YourUsername". The folder name after "Users\" is your Windows username.

You can also right-click on any file you created, select Properties, and click the Details tab. Under "Owner", you will see your username listed. This method is useful if you want to verify your username without opening Settings or Command Prompt.

Microsoft account versus local account

Windows allows two types of accounts: Microsoft accounts (which use an email address to sign in) and local accounts (which use a username you create). Your sign-in name and your Windows username may be different depending on which type you have.

If you sign in with an email address, that email is your sign-in name, but your Windows username is a separate name stored locally on your computer. The Settings app shows both — your sign-in method at the top, and your local username in the "Local user info" section if you scroll down. Programs and file permissions use your Windows username, not your email address. Understanding this distinction matters when you are troubleshooting software or working with IT support.

Why you need your Windows username

Your Windows username appears in file paths, user folders, and network connections. If you are troubleshooting a program, setting up file sharing, or working with system administrators, you will need to provide your exact Windows username. It is also required if you are changing user account settings or resetting permissions on files and folders.

The username is case-sensitive in some contexts, so write it exactly as it appears in Settings or Command Prompt output. If your username contains spaces or special characters, include those as well. This precision matters when you are entering your username into system configuration tools or network settings.

What to do if you cannot see your username

If Settings shows only an email address and no local username appears, your account is a Microsoft account with no separate local username set up. You can still use your computer normally — Windows assigns a default local name behind the scenes. Open Command Prompt and type whoami to see the actual local username Windows is using.

If you are locked out of your account or cannot access Settings, restart your computer and try the Command Prompt method instead. You may need to restart in Safe Mode if your account is severely restricted. Press F8 or Shift+F8 during startup to access boot options, then select Safe Mode with Command Prompt to open a command window directly at startup.

Frequently Asked Questions

Is my Windows username the same as my password?

No. Your username is the name Windows uses to identify your account, and your password is what you type to prove you own that account. They are completely separate. You can change your password without changing your username, and vice versa.

Can I change my Windows username?

Yes, but the process depends on your account type. For a local account, go to Settings > Accounts > Your info and click Rename your account. For a Microsoft account, you must change your email address in your Microsoft account settings online, which then updates on your computer. Changing your username does not affect your files or programs.

Why does my username have a backslash and a computer name in front of it?

That format (COMPUTERNAME\username) shows both your computer's name and your account name. Windows uses this format to identify you on a network or when multiple accounts exist on the same computer. The part after the backslash is your actual username.

What if I see "Administrator" as my username?

Administrator is a built-in account that comes with Windows. If this is what you see, your account has administrator privileges, which means you can install programs and change system settings. Most personal computers use an Administrator account by default.

Do I need my Windows username to share files with other people?

Not always. When you share a folder or file over a network, other people connect using your computer's name or network address, not your username. However, if you are setting up permissions or troubleshooting why someone cannot access a shared file, you may need to reference your username in the file properties or sharing settings.