The fastest way: Settings

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

If you see an email address instead of a username, that means you signed in with a Microsoft account rather than a local account. Your username is still there — it is just hidden behind the email. Scroll down on the same page to find "Local account" or "Microsoft account" to see which type you have.

Key Takeaways

  • Your Windows 10 username appears in Settings under Accounts > Your info, next to your profile picture.
  • If you signed in with an email address, you have a Microsoft account, and your username may be different from what you use to log in.
  • The Command Prompt method (typing whoami) works even if Settings is not responding or you cannot access your account.
  • Your username is not the same as your password and is visible to other people on the same computer.

Using Command Prompt if Settings does not work

Press the Windows key and type "cmd", then right-click on Command Prompt and select "Run as administrator". A black window will open. Type whoami and press Enter. Windows will display your username in the format COMPUTERNAME\username. The part after the backslash is your actual username.

This method works even if you cannot open Settings or if your account is having problems. Command Prompt is a built-in Windows tool and does not require any downloads or special permissions beyond opening it as administrator.

Checking the file system for your username

Open File Explorer by pressing the Windows key and E together. Click This PC in the left menu, then double-click the C: drive. Look for a folder called Users. Inside that folder, you will see a subfolder with your username as its name. This is your user profile folder.

If you see multiple folders inside Users, each one belongs to a different account on this computer. Your username is whichever folder contains your files and documents. You can also look at the address bar at the top of File Explorer — it often shows your current path, which includes your username.

Finding your username in System Information

Press the Windows key and type "system information", then press Enter. A window will open showing details about your computer. Look for the line labeled System Name or Computer Name. Below that, find the line labeled User Name. This displays your Windows username exactly as the system recognizes it.

System Information also shows you other details like your Windows version and processor type, which can be useful if you need to troubleshoot other problems later. This method is reliable because it pulls information directly from Windows system files.

Understanding local accounts versus Microsoft accounts

Windows 10 supports two types of accounts. A local account is stored only on your computer and has a username you create yourself. A Microsoft account is linked to a Microsoft email address and syncs your settings across devices.

If you use a Microsoft account, your login email might not match your username. For example, you might log in with "yourname@outlook.com" but your actual Windows username could be "yourname" or something else entirely. The Settings window will tell you which type you have, and Command Prompt will show you the actual username regardless of which type it is.

Why you might need your username

Your Windows username is required when you share files with other people on the same computer, set up network access, or troubleshoot permission problems. It is also the name that appears on the login screen if you have multiple accounts. Your username is not secret — other people on your computer can see it — but it is different from your password, which only you should know.

Some software and online services ask for your Windows username to verify your identity or set up permissions. Knowing where to find it quickly saves time when you are setting up a new program or fixing a problem.

Frequently Asked Questions

Is my Windows username the same as my password?

No. Your username is the name of your account and is visible to others on your computer. Your password is secret and only you should know it. You need both to log in, but they are separate pieces of information.

What if I see an email address instead of a username?

You are using a Microsoft account, which is tied to an email address. Your actual Windows username may be different. Use Command Prompt and type whoami to see your real username, or check Settings under Accounts to see both your email and your account type.

Can I change my Windows username?

Yes, but the process is different depending on whether you have a local account or a Microsoft account. For a local account, right-click the Start menu, select System, go to Accounts, and look for the rename option. For a Microsoft account, you must change your Microsoft email address through the Microsoft website instead.

Why does Command Prompt show my username with a backslash and computer name?

The format COMPUTERNAME\username tells you both your computer's name and your account name. The part before the backslash is your computer name, and the part after is your username. You only need the part after the backslash in most situations.