The fastest way: Settings
Open the Settings app by pressing the Windows key and typing "Settings", then press Enter. Click Accounts in the left sidebar. Your username appears at the top of the screen under "Your info" — it's the name next to your profile picture.
This is the quickest route because Settings opens in seconds and shows your username without any navigation. If you're already logged in, this is where Windows displays the account name you use to sign in. The name shown here is what most people think of as their username, though it may differ from the technical username your computer uses internally.
If you see only a first name or a display name in Settings, that's your profile display name rather than your full account username. The methods below will show you the complete technical username if you need it.
Key Takeaways
- Your Windows 10 username appears when ready in Settings under Accounts > Your info, next to your profile picture.
- The Command Prompt method shows your username by typing "whoami" and pressing Enter — useful if Settings won't open or you need your technical username.
- File Explorer displays your username in the address bar when you click "This PC" — look for the folder labeled with your account name under the Users folder.
- System Information (accessible by pressing Windows key + Pause) lists your username under "User Name" in the General tab, showing the full technical format.
- Windows display names and technical usernames can differ, so Command Prompt or System Information show the version programs actually need.
Using Command Prompt if Settings is frozen
Press Windows key + R to open the Run dialog. Type "cmd" and press Enter. In the black Command Prompt window, type whoami and press Enter. Your username appears on the next line in the format "COMPUTERNAME\username" — the part after the backslash is your username.
This method works even when the Settings app is slow or unresponsive. Command Prompt is a built-in Windows tool that runs independently of the graphical interface, so it often responds when other programs lag. The "whoami" command is one of the most reliable ways to see exactly what Windows considers your account name.
Write down the part after the backslash if you need to use your username in a program or form. That's the technical name your computer recognizes, even if Settings shows you something shorter or friendlier.
Finding it in File Explorer
Open File Explorer by pressing Windows key + E. Click This PC in the left sidebar. Look at the folders under "Users" — you'll see a folder with your username. That folder name is your Windows username.
You can also look at the address bar at the top of File Explorer. When you navigate into your user folder, the path shows "C:\Users\YourUsername" — the last part is your account name. This method is useful if you want to verify your username while browsing your files.
The folder name in File Explorer matches what Command Prompt shows after the backslash. If you see a mismatch between what Settings displays and what appears in File Explorer, the File Explorer version is your actual technical username.
Checking System Information
Press Windows key + Pause (or Windows key + Break on some keyboards). The System window opens. Look for the line labeled User Name — this shows your full username in the same "COMPUTERNAME\username" format as Command Prompt.
System Information also displays other details about your computer, so this window is useful if you need to check your username alongside your Windows version or computer name. If you don't see the User Name field when ready, scroll down slightly.
The System window is particularly helpful because it shows your username in context with your computer name, which some programs ask for separately. Having both pieces of information in one place can save time if you're troubleshooting a connection or setup issue.
What to do if you see a different name than expected
Windows sometimes displays a different name in Settings than the actual username used for sign-in. If Settings shows "John" but Command Prompt shows "john.smith", the Command Prompt version is your actual username — use that one when programs ask for your Windows username.
This happens because Windows allows you to set a display name (the friendly name shown on the sign-in screen) separately from your account username (the technical name the system uses). Programs that need your username almost always want the technical version, not the display name.
When you're filling out a form or installing software that requests your Windows username, default to the version from Command Prompt or System Information. That's the name Windows itself recognizes and the one most likely to work correctly.
Usernames on a work or school computer
If your computer is connected to a workplace or school network, your username may include a domain prefix. Command Prompt or System Information will show something like "DOMAIN\username" or "SCHOOL\studentid". The part after the backslash is your username; the part before is your domain.
When a program asks for your username, try entering just the part after the backslash first. If that doesn't work, enter the full "DOMAIN\username" format. Your IT department or help desk can clarify which format your organization uses for different systems.
Domain-connected computers are common in offices and schools because they allow IT staff to manage accounts centrally. If you're unsure whether your computer is domain-connected, the presence of a prefix before the backslash in Command Prompt output tells you it is.
Frequently Asked Questions
Is my Windows username the same as my Microsoft account email?
Not always. Your Windows username is the local account name on your computer, while your Microsoft account email is what you use to sign in online. If you signed in with a Microsoft account, Windows may have created a local username based on your email (like "john.smith" from "john.smith@outlook.com"), but they're separate things.
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, go to Settings > Accounts > Your info and click "Rename your account". For a Microsoft account, you'll need to change your display name through your Microsoft account settings online, then sync it to your computer.
What if Command Prompt shows a username I don't recognize?
This usually means Windows created a default username when you first set up the computer. You can change it through Settings > Accounts > Your info > Rename your account. If you're on a work computer and don't recognize the username, contact your IT department — they may have assigned it during setup.
Do I need my username to install programs?
Most programs don't ask for your Windows username during installation. However, some software (especially older programs or enterprise tools) may request it. When they do, use the version from Command Prompt or System Information, not the display name from Settings.
Why does my username have a number at the end?
Windows adds numbers to usernames when multiple accounts share the same base name. If two people named John Smith both have accounts on the same computer, Windows might create "john.smith" and "john.smith1". This prevents conflicts and ensures each account remains unique on that machine.