The fastest way: Settings menu
Open the Settings app by pressing the Windows key and typing "settings", then press Enter. Click Accounts on the left side. 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 your account is linked to a Microsoft account. Your actual Windows username may be different — scroll down on the same page and look for "Local account info" or check the next method below to see your full username as Windows recognizes it.
Key Takeaways
- Your Windows username appears in Settings under Accounts > Your info, next to your profile picture.
- The Command Prompt method (typing whoami) shows your username exactly as Windows stores it, including the computer name.
- File Explorer shows your username in the address bar when you open "This PC" — look for the folder labeled with your account name.
- If you see an email address in Settings, your account is a Microsoft account; your local username may be different and appears in Command Prompt output.
Using Command Prompt for the exact username
Press the Windows key, type "cmd", and press Enter to open Command Prompt. Type whoami and press Enter. The output will show your username in the format COMPUTERNAME\username. The part after the backslash is your actual Windows username; the part before it is your computer's name.
This method is useful because it shows exactly how Windows identifies your account internally. If you need to troubleshoot permissions, log into another computer, or provide your username to IT support, this is the most reliable format to use.
Checking File Explorer
Open File Explorer by pressing the Windows key and E together. Click This PC on the left side. Look at the address bar at the top — it will show a path that includes your username. You will also see a folder in the main window labeled with your username (usually under "Users" if you navigate there). This folder is your user profile directory.
This method works on all Windows versions and does not require opening any menus. Your username is the folder name that contains your Documents, Downloads, Desktop, and other personal folders.
What to do if you see a Microsoft account email instead
Windows 10 and 11 often display your Microsoft account email in Settings rather than a local username. This does not mean you do not have a username — you do. To find it, use the Command Prompt method above (type whoami). The output will show your actual local username, which Windows uses behind the scenes even if you sign in with an email address.
Your local username is what appears in file paths, in Command Prompt, and in system logs. Your Microsoft account email is what you use to sign in. They are two different things, and knowing both can be helpful for troubleshooting or when you need to provide your username to someone else.
Why you might need your Windows username
Your Windows username identifies your account to the operating system and to other computers on a network. You may need it to set up file sharing, to troubleshoot permission errors, to log in remotely, or to provide to IT support when something is not working. It is also the name that appears in system logs and in the file paths where your personal files are stored.
Knowing your username is different from knowing your password. Your username is not secret — it is displayed in Settings and in File Explorer. Your password is what you keep private.
Checking on a different user account
If you need to find the username of another account on the same computer, open Settings and go to Accounts > Other users. You will see a list of all accounts on the computer. The name displayed for each account is that user's Windows username. You cannot see their password, and you cannot change their username without their permission or administrator access.
If you need to know a username for a computer you do not have access to, ask the person who uses that account to tell you, or ask your IT department. There is no way to look up someone else's Windows username remotely without their cooperation.
Frequently Asked Questions
Is my Windows username the same as my password?
No. Your username is the name of your account and is not secret — it appears in Settings and File Explorer. Your password is what you type to sign in and should be kept private. You can change your password without changing your username, and vice versa.
Why does Command Prompt show COMPUTERNAME\username instead of just my username?
The full format tells you both your username and the name of the computer you are on. This is useful on networks where multiple computers exist. The part after the backslash is your actual username; you can use just that part in most situations.
Can I change my Windows username?
Yes, but the process is different depending 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 must change it through your Microsoft account settings online, not in Windows itself.
What if I forgot my username?
If you are signed in to Windows, you can see your username using any of the three methods above. If you are locked out and cannot sign in, restart the computer and look at the sign-in screen — it may show your username or email. If you still cannot find it, you will need to contact your IT department or the person who set up the computer.
Is my username visible to other people on my network?
Yes, if you share files or printers on a network, your username can be seen by others on that network. This is normal and expected. Your username is not sensitive information — your password is what you keep private. If you are concerned about privacy on a shared network, talk to your IT department about network security settings.