Find Your Windows 11 Username – Quick Steps
In this article
Your Windows 11 username is the name you use to sign in, and you can view it in Settings, the Start menu, or via the command line.
What You\'ll Need
- A Windows 11 PC that you are currently logged into.
- Basic familiarity with using the mouse or keyboard.
Step-by-Step
- Open Settings. Press Windows + I or click the Start button and select the gear icon. In the Settings window choose Accounts. The first page, Your info, displays the name and email address associated with the account you are using. The large text under the profile picture is the display name; the email address often contains the actual user name for Microsoft accounts.
- Check the Start menu. Click the Start button (or press the Windows key). At the top of the menu you will see your profile picture and name. Hover over the picture; a small tooltip shows the full account name. This method works for both local and Microsoft accounts.
-
Use Command Prompt. Right‑click the Start button and select Windows Terminal (or search for "Command Prompt" and open it). Type the command
whoamiand press Enter. The output appears asCOMPUTERNAME\Username. The portion after the backslash is the exact login name Windows uses for file paths and permissions. -
Use PowerShell. Open Windows Terminal and ensure the tab is set to PowerShell (default). Enter
Get-LocalUser | Where-Object {$_.Enabled -eq $true}and press Enter. The list shows all enabled local accounts; the one with "Enabled" set to True and a "SID" matching your current session is your active username. You can also run$env:USERNAMEfor a quick single‑line result. -
Browse the Users folder. Open File Explorer (Windows + E) and navigate to
C:\Users. Each subfolder is named after a user account that has a profile on the machine. The folder that contains your personal documents, Desktop, and Downloads is the one that matches your username. If you see a folder namedJohnDoe, then "JohnDoe" is your Windows username. - Verify with the Task Manager. Press Ctrl + Shift + Esc to open Task Manager. Go to the Users tab; the list shows the logged‑in account name exactly as Windows records it. This is useful when multiple users are signed in simultaneously.
Common Mistakes
Many users confuse the display name shown on the lock screen with the actual login name. The display name can contain spaces, special characters, or be completely different from the system‑level username. Another frequent error is looking at the folder name under C:\Users and assuming it is always the current username; if a profile was renamed or a temporary profile was created, the folder name may not match the active login. Finally, some people type whoami in PowerShell without opening a command‑line window first, which can lead to a "command not found" error if the environment is misconfigured.
Tips
- For Microsoft accounts, the username is often the part before the "@" in the email address, but the system may store a different local name. Use
whoamito see the exact value. - If you need the username for scripting, the environment variable
%USERNAME%(or$env:USERNAMEin PowerShell) expands automatically. - When troubleshooting permissions, always compare the name shown by
whoamiwith the folder name underC:\Usersto ensure they match. - On shared devices, the Users tab in Task Manager provides a quick overview of every active session without opening additional tools.
Troubleshooting
If the steps above do not reveal a clear username, follow this checklist:
- Restart the computer. A simple reboot can resolve temporary profile loading issues that hide the correct folder name.
- Confirm you are signed in with an administrator account. Some accounts (like child or guest accounts) may have limited visibility in Settings > Accounts.
- Check for profile corruption. Open
regedit(run →regedit) and navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Look for the SID that ends with your expected username; if theProfileImagePathpoints to a non‑existent folder, the profile may be broken. - Use the System Information tool. Press Windows + R, type
msinfo32, and press Enter. Under System Summary, the field "OS Name" does not show the username, but the "User Name" entry (if present) does. - Verify that the account is not hidden. Open Command Prompt as administrator and run
net user. This lists all local accounts. If your expected name does not appear, the account may be a Microsoft account only, in which case thewhoamioutput remains the reliable source. - Last resort – create a new local account. If you cannot locate the original name and need a working profile, go to Settings > Accounts > Family & other users > Add someone else to this PC, choose "I don\'t have this person\'s sign‑in information", then select "Add a user without a Microsoft account". This creates a fresh local username you can use for troubleshooting.
Frequently Asked Questions
Can I see my Windows 11 username without opening Settings?
Yes. Open a command prompt or PowerShell window and type whoami or $env:USERNAME. The result is the exact login name.
Is the name shown on the lock screen always the same as the username?
No. The lock screen displays the account's display name, which can differ from the system‑level username used for file paths and permissions.
Why does the folder under C:\Users have a different name than my account?
This can happen if the profile was renamed after creation, if a temporary profile was loaded, or if the account is a Microsoft account whose local folder name was assigned during the first sign‑in.
Do Microsoft accounts have a separate local username?
When you sign in with a Microsoft account, Windows creates a local profile folder using the first part of the email address, but the actual login name reported by whoami may be a truncated or modified version.
Can I change my Windows 11 username?
Yes. For local accounts, go to Settings > Accounts > Your info > Manage my Microsoft account (or "Local account") and follow the rename instructions. Changing the folder name under C:\Users requires creating a new profile or using advanced migration steps, which are beyond the scope of this simple guide.
What if I see "SYSTEM" or "LOCAL SERVICE" as the username?
Those are built‑in service accounts, not human users. If they appear in whoami, you are likely running the command from an elevated or system‑level context. Open a regular command prompt instead.