The fastest way: Settings menu
Open the Settings app by pressing the Windows key and typing "settings", then press Enter. Click Accounts in the left sidebar, then click Your info at the top. Your username appears under your profile picture — it's the name Windows uses to identify your account on this computer.
This is the quickest route because Settings opens in seconds and shows your username without any navigation. If you're already logged in, you're already looking at the right account. The username displayed here is your local account name, which is what you need for most troubleshooting and file permission questions.
Key Takeaways
- Your Windows 10 username appears in Settings under Accounts > Your info, below your profile picture.
- The Command Prompt method shows your username when ready by typing whoami and pressing Enter.
- File Explorer displays your username in the address bar when you open "This PC" — look for the folder path that starts with your name.
- Your username is different from your Microsoft account email and may not match the display name you see on your lock screen.
Using Command Prompt for a one-line answer
Press the Windows key, type "cmd", and press Enter to open Command Prompt. Type whoami (all lowercase) and press Enter. Your username appears on the next line in the format COMPUTERNAME\username — the part after the backslash is your actual username.
This method works even if you can't access the graphical Settings menu. The username shown here is the local account name Windows uses internally, which may differ from what appears on your lock screen or in Settings if you're using a Microsoft account. Command Prompt is also useful if you're troubleshooting from a different user account and need to know another account's name.
Finding it in File Explorer
Open File Explorer by pressing Windows key + E. Click This PC in the left sidebar. Look at the address bar at the top — it shows a path that includes your username. The folder labeled with your name under "Users" is your user profile folder, and that folder name is your Windows username.
You can also right-click on your user folder, select Properties, and look at the "Location" field to confirm the exact username Windows recognizes. This method is useful if you want to see where your personal files are stored on the computer and verify the exact spelling of your username.
Checking System Information
Press the Windows key, type "system information", and press Enter. In the window that opens, look for the line labeled User Name — this shows your username in the same format as Command Prompt (COMPUTERNAME\username). The part after the backslash is what you're looking for.
System Information also displays other details about your computer, so this method works well if you need multiple pieces of information at once. The username here matches what Command Prompt shows, and it's the authoritative source for what Windows considers your account name on this machine.
Why your username might look different in different places
Windows 10 distinguishes between your local username (the account name the computer uses internally) and your display name (what appears on your lock screen and in some menus). If you signed in with a Microsoft account, your display name might be your email address or a nickname, but your actual Windows username is usually something like "User" or your first name.
The Settings menu, Command Prompt, and File Explorer all show your local username — the one that matters when you're troubleshooting, setting permissions, or connecting to a network. Your display name is just what Windows shows you visually, and it can be changed without affecting your actual account name or file locations.
What to do if you see a temporary or guest account
If Command Prompt shows a username like "nt authority\system" or "guest", you're not looking at your main user account — you're seeing a system account or a temporary session. Close Command Prompt and try the Settings method instead, which always shows the account you're currently logged into.
If Settings shows a username you don't recognize, you may have multiple user accounts on this computer. Check the left sidebar in Settings under Accounts to see all accounts, or ask the person who set up the computer which account is yours. Each person using the computer typically has their own username and profile folder.
Frequently Asked Questions
Is my username the same as my Microsoft account email?
Not necessarily. Your local Windows username is the name your computer uses internally, while your Microsoft account email is what you use to sign in online. They're often different — you might sign in with an email but have a local username like "Sarah" or "User".
Can I change my Windows 10 username?
Yes, but the process depends on whether you use 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 change your display name, not your local username. Changing your local username can affect file permissions and program settings, so proceed carefully.
What if I forgot my password but need to know my username?
Your username appears on the Windows 10 lock screen above the password field. If you can see the login screen, your username is already visible there. If you're locked out completely, you'll need to restart the computer and look at the login screen, or contact the person who manages this computer.
Does my username matter for anything besides logging in?
Yes. Your username determines where Windows stores your files, which programs can access your account, and how network permissions work if you're on a shared computer or network. Knowing your exact username helps when you're troubleshooting file access problems or setting up shared folders.