The fastest way: Settings
Open Settings by pressing Windows key + I on your keyboard. Go to Accounts in the left menu, then click Your info. At the top of the page, you will see your account name displayed under a profile picture or icon. This is your Windows username.
This method works on Windows 10 and Windows 11. The name shown here is what you use to log in, and it is the same username your computer uses to identify you on the network. If you see an email address instead of a straightforward name, that email is your username for a Microsoft account.
Key Takeaways
- Your Windows username appears in Settings under Accounts > Your info, and this is the fastest way to find it on any recent Windows device.
- You can also find your username by opening Command Prompt and typing whoami, which displays your full account name including the computer name or domain.
- File Explorer shows your username in the address bar when you navigate to your user folder, which appears as C:\Users\[YourUsername].
- If you are logged into a work or school account, your username may include a domain prefix before the actual name, shown as DOMAIN\username.
- Your username is also visible on the login screen below your profile picture, even if you cannot remember your password.
Using Command Prompt
Right-click the Start menu and select Terminal (Windows 11) or Command Prompt (Windows 10). Type whoami and press Enter. The result will show your username, sometimes with your computer name in front of it, separated by a backslash.
This method is useful if you need to see your full account name including the computer or domain it belongs to. The output format is usually COMPUTERNAME\username or DOMAIN\username depending on how your account is set up. This is the most reliable way to see exactly what your system recognizes as your username for network and administrative purposes.
Checking File Explorer
Open File Explorer and look at the address bar at the top. Click on This PC in the left sidebar. Under the "Devices and drives" section, you will see a folder labeled with your username. The path shown in the address bar will read C:\Users\YourUsername. The part after \Users\ is your Windows username.
This method works because Windows creates a user folder for every account, and the folder name matches your username exactly. If you cannot see the full path in the address bar, click on it and it will expand to show the complete location. You can also double-click the Users folder to see all usernames on the computer listed as separate folders.
Finding your username on the login screen
If you have not logged in yet, look at the login screen. Your username appears below your profile picture. If multiple accounts exist on the computer, you may need to click on your account tile to see the full username displayed.
On some devices, especially work computers, the login screen may show only a partial name or email address. The full username you need for network purposes may be different from what appears here. Use one of the methods above after logging in to see your complete account name. The login screen username is always visible, making this a useful reference point if you are locked out of other methods.
Understanding local versus domain usernames
If you set up your computer with a Microsoft account, your username is typically your email address or the name you chose during setup. If your computer is connected to a workplace or school network, your username may be a domain account, which appears as DOMAIN\username when you use the Command Prompt method.
Local usernames belong only to your computer. Domain usernames belong to a network and work across multiple computers in an organization. Both are valid Windows usernames, but they function differently. If you are unsure which type you have, the Command Prompt method will show you clearly. Domain accounts usually have a prefix like CORP, SCHOOL, or the organization name before the backslash.
What to do if you see an unfamiliar username
If the username shown in Settings or Command Prompt does not match what you expected, you may be looking at a system account or a different profile than you thought. Check that you are logged into the correct account by looking at the profile picture in Settings.
If you have multiple user accounts on the computer, each one has its own username. Switch to a different account by clicking the Start menu, then your profile picture in the top right, and selecting the account you want to check. Then repeat the Settings or Command Prompt steps for that account. This is common on shared computers or devices used by multiple family members.
Frequently Asked Questions
Is my Windows username the same as my Microsoft account email?
Not always. If you created a local account, your username is whatever name you chose during setup. If you signed in with a Microsoft account, your username might be your email, but Windows may also display a shortened version. Use Settings or Command Prompt to see what your system actually uses.
Why does Command Prompt show DOMAIN\username instead of just my name?
The domain prefix means your account is connected to a network, usually at work or school. The part before the backslash is the network name, and the part after is your actual username. Both parts together make up your full account identifier on that network.
Can I change my Windows username?
You can change the display name shown in Settings under Accounts > Your info. However, changing the actual login username (the folder name in C:\Users\) is more complex and requires administrative steps. For most purposes, changing the display name is sufficient.
What if I forgot my password but need to know my username?
Your username is visible on the login screen below your profile picture, even if you do not remember your password. You can also see it on another device if you are logged into the same Microsoft account. If you are locked out completely, contact your system administrator or Microsoft support.
Does my username matter for anything besides logging in?
Yes. Your username identifies you on the network, appears in file permissions, and is used by programs that need to know who is using the computer. If you share files with others or work on a networked computer, your username is how the system tracks what you can access and what you have created.