The fastest way: Settings

Open Settings by pressing the Windows key and typing "settings", then press Enter. In the left sidebar, click System. At the top of the main panel, you will see your username displayed next to your profile picture. This is the name Windows 11 uses to identify your account on this computer.

This method works whether you signed in with a Microsoft account (which uses an email address) or a local account (which uses a name you created). The username shown here is what you need if you are troubleshooting permissions, setting up file sharing, or configuring another device on your network.

Key Takeaways

  • Your Windows 11 username appears in Settings under System, next to your profile picture at the top of the screen.
  • The Command Prompt method (typing whoami) shows your username when ready and works even if Settings is not responding.
  • A Microsoft account username is usually an email address, while a local account username is whatever name you chose during setup.
  • Your username is different from your display name — the display name is what appears on the lock screen, while the username is what Windows uses internally.

Using Command Prompt if Settings does not open

If Settings is frozen or not responding, Command Prompt will show your username in seconds. Press the Windows key and type "cmd", then press Enter to open Command Prompt. Type whoami and press Enter. Windows will display your username in the format computername\username or as your full email address if you use a Microsoft account.

The text before the backslash is your computer's name, and the text after is your actual username. If you see an email address instead, that is your Microsoft account username. Write down exactly what appears after the backslash or the full email address — that is what you need.

Checking File Properties to confirm your username

Open File Explorer and navigate to any folder. Right-click on a file or folder you created, then select Properties. Click the Security tab, then click Edit. In the window that opens, look for an entry that shows your username — it will usually appear as computername\username. This confirms the exact username Windows is using for your account.

This method is useful if you want to verify your username matches what you saw in Settings or Command Prompt. The username shown here is the one Windows uses when you set file permissions or share folders with other people on your network.

Understanding Microsoft accounts versus local accounts

If your username is an email address (like yourname@outlook.com or yourname@gmail.com), you are using a Microsoft account. Windows stores this account in the cloud, which means your settings and files can follow you to other computers. When you sign in, you use your email and password.

If your username is a single word or short phrase without an @ symbol (like "Sarah" or "John_Smith"), you are using a local account. This account exists only on this computer. Local accounts do not sync to other devices, but they do not require an internet connection to sign in. Both types of usernames work the same way for file sharing and permissions — the difference is only in how Windows stores and syncs your account information.

Why you need your username and what to do with it

Your Windows username is required when you set up file sharing with other people on your network, troubleshoot permission errors, or configure software that needs to know which account is running it. If someone else is helping you with a technical problem, they may ask for your username to understand which account is experiencing the issue.

You should never share your username with strangers online or in unsolicited emails. However, sharing it with someone you trust who is helping you with a computer problem is safe — your username alone does not give anyone access to your files or accounts. Your password is what you must keep private.

What to do if you see multiple usernames on your computer

If your computer has more than one account, each account has its own username. When you sign in, you are using one specific username. The username shown in Settings is always the one for the account you are currently signed into. If you need to find the username for a different account, you must sign out, sign into that account, and check Settings again.

If you are an administrator trying to manage other accounts on the computer, you can see all usernames by opening Settings, going to Accounts, and clicking Other users. This shows every account on the computer, but you can only view the details of the account you are currently signed into.

Frequently Asked Questions

Is my username the same as my display name?

No. Your display name is what appears on the lock screen and in the Start menu. Your username is what Windows uses internally and what appears in Command Prompt or file permissions. You can change your display name without changing your username. To see your display name, go to Settings, click Accounts, then Your info.

Can I change my username?

Changing a local account username is complicated because Windows ties it to file permissions and folder names. For a Microsoft account, you cannot change the username itself, but you can change your display name. If you need a different username, the simplest approach is to create a new account. Contact Microsoft Support if you need to rename a local account.

What if Command Prompt shows a username I do not recognize?

This usually means your computer name and username are different from what you expected. The format computername\username is normal. If the username looks wrong, check Settings to confirm. If you see something like "SYSTEM" or "LOCAL SERVICE", you are running Command Prompt as administrator — your actual username will still appear in Settings.

Do I need my username to sign in to Windows?

If you use a Microsoft account, you sign in with your email address and password, not your username. If you use a local account, you sign in with your username and password. Either way, Windows remembers your account, so you usually do not have to type anything — you just click your name on the lock screen.

Will finding my username affect my computer or files?

No. Looking at your username in Settings, Command Prompt, or file properties does not change anything on your computer. It is only reading information that already exists.