Your username appears in three places you can check right now

Your Windows username is the account name you use to log in to your computer. You can find it by looking at the bottom left of your lock screen, checking your user folder in File Explorer, or opening a command window and typing a single line. The fastest method depends on whether your computer is currently locked or unlocked.

If you are already logged in, the simplest route is File Explorer. If your computer is locked or you want to verify the exact name Windows uses internally, the command line method is more reliable. Both take less than a minute.

Key Takeaways

  • Your username appears on the Windows lock screen in the bottom left corner, visible before you type your password.
  • Open File Explorer, click "This PC," and look in the address bar — your username is the folder name after "Users\".
  • Type whoami in Command Prompt or PowerShell to see your exact username as Windows records it.
  • If you see a display name and a username that differ, the display name is what appears on your lock screen and the username is what Windows uses internally.

Check your lock screen before you log in

The lock screen shows your account name in the bottom left corner. This is the fastest check if your computer is currently locked or if someone else is logged in.

Look at the bottom left of the screen where it says "Sign in to [your name]" or just displays your name. This is your display name — the human-readable version. If you need the technical username Windows uses internally, you will need one of the other methods below, because the display name and the actual username can be different.

Find it in File Explorer under your user folder

Open File Explorer (press Windows key + E, or click the folder icon on your taskbar). Click "This PC" in the left sidebar. In the address bar at the top, you will see a path that looks like C:\Users\[your username]. The folder name after "Users\" is your actual Windows username.

This method works whether you are logged in or not, and it shows you the exact name Windows uses for your account. If you see a folder name that looks different from the display name on your lock screen, the folder name is the one you need for technical purposes — like when you are troubleshooting, setting up file permissions, or following instructions that ask for your username.

Use Command Prompt or PowerShell to see your username

Press Windows key + R to open the Run dialog. Type cmd and press Enter. A black window will open. Type whoami and press Enter. The result shows your username exactly as Windows records it.

This method is the most reliable because it pulls the information directly from your system settings. If you are troubleshooting a problem or following technical instructions that require your exact username, this is the method to use. The output will be in the format COMPUTERNAME\username or DOMAIN\username depending on whether your computer is part of a workplace network. The part after the backslash is your username.

Understand the difference between display name and username

Windows lets you set a display name (what appears on your lock screen and in menus) separately from your actual username (what the system uses internally). For example, your display name might be "Sarah Johnson" but your username might be "sjohnson" or "sarah.johnson".

For everyday use, the display name is fine. For technical tasks — resetting permissions, following IT instructions, or troubleshooting — you need the actual username. The File Explorer method and the Command Prompt method both show you the actual username. The lock screen shows you the display name.

What to do if you see an email address instead of a username

If your lock screen shows an email address or if the File Explorer path shows something like "Users\user@domain.com", you are logged into a Microsoft account or a domain account rather than a local account. Your username is still there — it is just formatted as an email address.

The Command Prompt method will show you the clearest version. When you type whoami, a domain account will show something like DOMAIN\username, and a Microsoft account will show your email. Either way, that is your username as Windows recognizes it. Write it down exactly as it appears if you need it for technical support or system configuration.

Frequently Asked Questions

Why do I need to know my Windows username?

You need it for technical support, resetting file permissions, connecting to networks, or following system administration instructions. Most everyday tasks use your display name instead, so you only need the actual username when someone specifically asks for it or when you are troubleshooting.

Is my username the same as my password?

No. Your username is the account name you log in with. Your password is what you type after you enter your username. They are separate, and you should never share either one.

Can I change my Windows username?

You can change your display name easily through Settings. Changing your actual username is more complex and can affect file permissions and program settings, so it is usually not recommended unless you have a specific technical reason.

What if I forgot my username and cannot see the lock screen?

If you can log in with your password, use the File Explorer or Command Prompt methods above. If you cannot log in at all, you will need to contact your system administrator (at work) or Microsoft support (for a personal account).

Does my username have to match my email address?

No. If you use a local account, your username can be anything you set it to. If you use a Microsoft account, your username is tied to your email address. Either way, they are separate from your display name.