The fastest way to find your username

Your PC username appears in the bottom left corner of your Windows lock screen, right above the password field. If your computer is already unlocked, open the Start menu, click your profile picture in the top left, and your username displays there. On Windows 11, you can also press the Windows key and type "Settings," then go to Accounts — your username shows at the top of that page.

If you need to see it without logging in, restart your computer and look at the lock screen before you enter your password. The name displayed above the password box is your username. This is the quickest method when you have forgotten what you named your account.

For a command-line view that some people find clearer, press Windows key + R, type cmd, and press Enter. In the black command window that opens, type whoami and press Enter. Your username appears on the next line in the format COMPUTERNAME\username. The part after the backslash is what you need.

Key Takeaways

  • Your username shows on the Windows lock screen above the password field, or in the Start menu under your profile picture.
  • In Settings, go to Accounts to see your username displayed at the top of the page.
  • The command whoami in Command Prompt displays your username in the format COMPUTERNAME\username.
  • Your username is different from your Microsoft account email and is used to log into your local computer.

Where Windows stores your username

Windows keeps your username in the local user account database on your computer. This is separate from your Microsoft account email, even if you use a Microsoft account to sign in. Your local username is what appears in file paths, folder ownership, and when you run programs that need to know who is using the computer.

If you set up Windows with a Microsoft account (an email address), that email is not the same as your username. Your username is the short name Windows created during setup, often based on the first part of your email or a name you typed. You can have a Microsoft account email and a completely different local username on the same computer.

Finding your username if you use a Microsoft account

When you sign in with a Microsoft account, Windows still has a local username behind the scenes. To see it, go to Settings, click Accounts, then click Your Info. At the top, you see your Microsoft account email. Below that, under "Account settings," there is a line that says something like "Local account" or shows your local username.

If you want to see the local username more clearly, use the command prompt method: press Windows key + R, type cmd, press Enter, type whoami, and press Enter. The text after the backslash is your local username. This works the same way whether you sign in with a Microsoft account or a local password.

Why you might need to know your username

Your username is required when you share files or folders with other people on your network, because Windows identifies file ownership by username. If someone asks for your username to give you access to a shared drive or folder, they need the exact name you see in the lock screen or Settings.

Some programs also display your username in their settings or logs. If you are troubleshooting a problem and a support person asks for your username, they usually want the local username, not your email address. Knowing where to find it quickly saves time during setup or when you are configuring new software.

The difference between username and email

Your Windows username is a local identifier on your computer. Your Microsoft account email is what you use to sign in from any device and to access cloud services like OneDrive and Outlook. They are two separate things, and Windows keeps track of both.

If you sign in with a Microsoft account, Windows creates a local username automatically, often based on the first part of your email. For example, if your email is james.rodriguez@outlook.com, your local username might be "james" or "james.rodriguez." You can change your local username, but that does not change your Microsoft account email.

Changing your username if you need to

If you want to change your local username, go to Settings, click Accounts, then click Other People (or Family & Other Users on older Windows versions). Find your account in the list, click it, then click Rename. Type the new username and click Next. Windows will ask you to restart your computer for the change to take effect.

Changing your username does not affect your Microsoft account email or your sign-in password. Your files and folders keep their current permissions, though Windows may take a moment to update the ownership display. If you use a local account instead of a Microsoft account, the process is the same.

Frequently Asked Questions

Is my username the same as my Microsoft account email?

No. Your username is a local name on your computer, and your Microsoft account email is separate. You can have an email like james@outlook.com but a username like "james.rodriguez" or anything else you chose during setup.

What if I cannot see my username on the lock screen?

Press Windows key + R, type cmd, press Enter, type whoami, and press Enter. Your username appears after the backslash. This works even if your lock screen is not displaying it clearly.

Can I change my username without losing my files?

Yes. Go to Settings, Accounts, Other People, select your account, click Rename, type the new name, and restart. Your files stay where they are. Windows updates the ownership information automatically.

Do I need my username to sign in to Windows?

If you use a Microsoft account, you sign in with your email and password, not your username. If you use a local account, you sign in with your username and password. Either way, your local username exists and can be found in Settings or Command Prompt.