The fastest way: Settings app

Open the Settings app by pressing the Windows key and typing "settings", then hit Enter. Go to System in the left sidebar, then scroll down and click About. Look for the line that says "Device name" — that is your Windows username. Write it down or take a screenshot if you need it later.

This method works on Windows 10 and Windows 11. The Settings app is the most straightforward route because it shows your username without any extra steps or technical jargon. You will have your answer in under a minute.

Key Takeaways

  • Your Windows username appears in Settings under System > About, listed as "Device name".
  • You can also find it by right-clicking "This PC" on your desktop and selecting Properties to see the same information.
  • The Command Prompt method requires typing whoami and pressing Enter, which displays your username when ready.
  • Your username is different from your Microsoft account email — it is the local name Windows uses to identify your computer and user profile.

Using This PC or File Explorer

Right-click on This PC (or My Computer on older systems) on your desktop or in File Explorer. Select Properties from the menu. A window will open showing your computer information. Look for "Device name" — this is your Windows username.

This method is reliable because it accesses the same system information as the Settings app, just through a different route. If you prefer not to use Settings, this gives you the same result in about the same number of clicks. The Properties window also shows other useful details like your Windows version and processor type.

Command Prompt for when ready results

Press the Windows key and type "cmd" to open Command Prompt. Type whoami and press Enter. Your Windows username will appear on the next line. This is the fastest method if you are comfortable using the command line.

The output shows your username in the format "COMPUTERNAME\username". The part after the backslash is your actual username. If you only see a single name without a backslash, you are using a Microsoft account, and that name is your local username. This method bypasses the graphical interface entirely and goes straight to the source.

What your username actually is

Your Windows username is the name your computer uses to identify you locally on that machine. It is not the same as your Microsoft account email, even if you signed in with one. When you first set up Windows, you chose a username — that is what you are looking for. This local username is baked into your system and used by Windows for file permissions, folder ownership, and network identification.

You might see different names in different places: your Microsoft account email in Settings, your device name in System Properties, and your local username in Command Prompt. The local username is what most programs and files refer to when they mention "your account" on that specific computer. Understanding this distinction prevents confusion when you are troubleshooting or setting up shared resources.

Why you might need your username

You need your Windows username when you are troubleshooting file permissions, setting up shared folders on a network, or installing software that asks which user account to install for. Some programs also display your username in their settings or user profile sections, and knowing it helps you verify you are logged into the right account. Network administrators often need your username to grant you access to shared drives or printers.

If you are setting up a new computer or helping someone else with theirs, knowing the exact username prevents confusion between the Microsoft account name and the local computer name. It is also useful when you are checking file ownership or debugging why a particular program is not working correctly for your account.

If you see a Microsoft account instead

If the Settings app shows your email address instead of a straightforward username, you signed in with a Microsoft account. Your local username still exists — it is usually something like "User" or a shortened version of your email. Use Command Prompt and type whoami to see the actual local username your computer uses internally. This is the most reliable way to find your true local username when Microsoft account sign-in is obscuring it.

You can also check by opening File Explorer, clicking on your user folder (usually in C:\Users\), and looking at the folder name. That folder name is your local Windows username, regardless of which account type you use to sign in. The folder structure never lies — Windows always stores your local username there, even if the Settings interface displays your email address.

Frequently Asked Questions

Is my Windows username the same as my Microsoft account email?

No. Your Windows username is the local name your computer uses. Your Microsoft account email is what you use to sign in online. They can be different. Use Command Prompt and type whoami to see your actual local username.

Can I change my Windows username?

Yes, but it is more complicated than changing your Microsoft account name. You can change your local username through Settings > Accounts > Your Info, but this only changes how it displays in some places. The folder in C:\Users\ keeps its original name. For a full change, you may need to create a new account.

What if Command Prompt shows a username I do not recognize?

That is your actual local username — Windows may display it differently in other places depending on your account type. Check your user folder in C:\Users\ to confirm. The folder name there is always your true local username.

Do I need my username to sign in to Windows?

Not necessarily. If you use a Microsoft account, you sign in with your email and password. If you use a local account, you sign in with your username and password. Your username is mainly useful for file permissions, network sharing, and troubleshooting.