The fastest way: Settings app on Windows 11
Open Settings by pressing the Windows key and typing "Settings", then click the app that appears. Go to Accounts on the left side, then click Your info at the top. You will see your current username displayed under your profile picture. Click the Rename your account button.
Type your new username in the box that appears. Windows 11 will accept letters, numbers, and some symbols, but spaces and special characters like @ or # will not work. Keep it under 20 characters for simplicity. Click Next, then Finish to confirm the change.
Your new username takes effect when ready, but you may need to sign out and back in to see it everywhere on your computer. This method works for local accounts — accounts that exist only on your device, not connected to Microsoft.
Key Takeaways
- The Settings app is the simplest path: go to Accounts, then Your info, then click Rename your account.
- Your new username appears right away in most places, but signing out and back in ensures it shows everywhere.
- If your account is linked to a Microsoft email address, you are changing only the display name on your device, not your Microsoft account itself.
- Changing your username does not affect your files, passwords, or installed programs — they stay exactly where they are.
What happens to your files and folders when you change your username
Your Documents, Downloads, Desktop, and Pictures folders stay in the same place and keep all their contents. Windows does not move or rename these folders when you change your username. The folder path on your hard drive remains the same, so shortcuts and saved locations continue to work.
Some older programs may have stored settings or shortcuts that reference your old username in the file path. These programs usually still work because Windows keeps the underlying folder structure intact. If a program stops finding a file after you change your username, you can manually point it to the correct folder, but this is rare.
Microsoft accounts versus local accounts: which one you have
If you signed into Windows with an email address and password, you have a Microsoft account. If you signed in with a straightforward username and password that you created on this computer only, you have a local account. You can check which one you have by opening Settings, going to Accounts, and looking at the top of the Your info page — it will say either your email address or "Local account".
For a Microsoft account, the Settings method above changes only the name that appears on your device. Your actual Microsoft account email stays the same, and you still sign in with that email. For a local account, you are changing the actual username you use to sign in. Both changes take effect when ready.
Changing your username if you forgot your password
If you cannot sign in to change your username, you will need to reset your password first. On the Windows 11 sign-in screen, click I forgot my password below the password box. Windows will walk you through resetting it using a recovery email or phone number linked to your account.
Once you have reset your password and signed back in, follow the Settings method described above. If you have a local account and cannot remember the password, the process is more complex — you may need to use another admin account on the computer or contact Microsoft support for further steps.
Using Command Prompt if Settings does not work
If the Settings app is not responding or you prefer the command line, you can change your username through Command Prompt. Right-click the Start menu, select Terminal (Admin) or Command Prompt (Admin), and type this command exactly: wmic useraccount where name="OldUsername" rename NewUsername. Replace "OldUsername" with your current username and "NewUsername" with what you want it to be.
Press Enter and wait for the command to finish. You will see a message saying the operation succeeded. Sign out and back in for the change to take full effect. This method works for local accounts only — Microsoft accounts must be changed through Settings.
What to do if you see an error message
The most common error is "The username is already in use" — this means another account on your computer already has that name. Choose a different username and try again. Another error, "The operation failed", usually means you do not have admin rights on your account. Ask whoever set up the computer to give you admin access, or use a different admin account to make the change.
If you see "The system cannot find the file specified", restart your computer and try again. Sometimes Windows locks the username temporarily while it is updating. If the error persists after a restart, use the Command Prompt method instead — it often works when Settings does not.
Frequently Asked Questions
Will changing my username log me out of everything?
No. Your passwords, email accounts, and cloud services stay signed in. You may need to sign out and back into Windows itself to see the new username everywhere, but your Microsoft account, email, and other logins remain active.
Can I change my username back to the old one later?
Yes. Follow the same steps in Settings or Command Prompt and enter your old username. There is no limit to how many times you can change it, and no waiting period between changes.
Does changing my username affect my Microsoft account or email?
Not if you have a Microsoft account. The email address you use to sign in stays the same — you are only changing the display name on your device. If you have a local account, you are changing only the username on that computer, not any online accounts.
What if I share this computer with other people?
Changing your username affects only your account. Other people's accounts and usernames stay exactly the same. Each person can have their own username, and changing yours does not touch theirs.
Can I use spaces or special characters in my new username?
Windows 11 does not allow spaces, @, #, or most special characters in usernames. Stick to letters, numbers, hyphens, and underscores. If you try to use a forbidden character, Windows will reject it and ask you to choose a different name.