The quickest way to change your username

Open Settings, go to Accounts, select Your info, and click the "Rename your PC" button. Type your new username and restart your computer. That is the fastest route if you want to change the name that appears on your login screen and in Windows menus.

This method changes what other people see when they look at your computer on a network, and what appears in File Explorer when you browse shared folders. It does not change your Microsoft account email or password — those stay the same. If you use a local account instead of a Microsoft account, this is still the method to use.

The rename takes effect after you restart. You do not lose any files, programs, or settings. Your user folder on the hard drive keeps its original name, so shortcuts and program settings continue to work without interruption.

Key Takeaways

  • The Settings > Accounts > Your info > Rename your PC button is the standard way to change what name appears on your login screen and in Windows.
  • Restarting your computer is required for the change to take effect, but you will not lose files or programs.
  • If you use a Microsoft account, changing your PC name does not change your email address or password.
  • Your user folder on the hard drive keeps its original name, so existing shortcuts and program settings continue to work.
  • If you cannot see the Rename button, you may need administrator rights or may be using a work computer with restrictions.

Step-by-step: using Settings to rename your PC

Start by opening Settings. Press the Windows key and type "Settings", then click the Settings app, or press Windows key + I on your keyboard.

Once Settings opens, click "Accounts" in the left menu. Then click "Your info" at the top of the right panel. You will see your current username displayed under "Who's using this PC right now?" Below that is a blue button labeled "Rename your PC".

Click "Rename your PC". A dialog box appears with your current name highlighted in a text field. Delete the old name and type your new username. Windows allows letters, numbers, and hyphens, but not spaces or special characters like @ or #. Keep it under 15 characters for best compatibility.

Click "Next", then "Finish". Windows will ask you to restart your computer. Click "Restart now" or save your work and restart manually. The new username appears after the restart is complete.

What happens to your files and programs after you rename

Your files stay exactly where they are. Documents, photos, downloads, and desktop items do not move or disappear. Programs continue to run normally. Your Microsoft account, email, and password do not change — only the display name on your computer changes.

The folder that holds your personal files (usually C:\Users\[YourName]) keeps its original name on the hard drive. This is intentional. If Windows renamed that folder to match your new username, it would break shortcuts and program settings that point to the old path. By leaving the folder name alone, Windows avoids those problems.

If you have shared folders or network drives set up, other computers on your network will see your new PC name when they browse. If you have mapped network drives or shared your folders with specific usernames, those permissions do not change automatically — you may need to update them manually if you want to use your new username instead of the old one.

When the Rename button is missing or grayed out

If you do not see the "Rename your PC" button, or if it is grayed out and you cannot click it, you may not have administrator rights on this computer. Ask the person who set up the computer to give you administrator status, or contact your IT department if this is a work computer.

Some work computers are managed by a domain or group policy that prevents users from renaming the PC. If that is the case, you will not be able to change the name yourself. Your IT administrator can change it for you, or you may need to use a different computer.

If you are the only person who uses this computer and you set it up yourself, you should have administrator rights. Try restarting your computer and opening Settings again. If the button is still missing, try right-clicking Settings and selecting "Run as administrator" before opening Accounts.

The difference between PC name and Microsoft account name

Your PC name (also called the computer name or hostname) is what appears on your login screen and in Windows menus. It is the name other computers see when you connect to a network. Changing your PC name does not touch your Microsoft account.

Your Microsoft account is your email address and password. It is what you use to sign in to Microsoft services like Outlook, OneDrive, and Xbox. If you want to change your Microsoft account email or password, you do that in a different place: go to account.microsoft.com in a web browser, sign in, and look for "Change your password" or "Manage your account". That is separate from renaming your PC.

If you use a local account (a username and password that only exists on this computer, not tied to Microsoft), then your local account name and your PC name are related but still separate. Changing the PC name does not change your local account name. To change a local account name, go to Settings > Accounts > Other people, right-click the account, and select "Rename".

Renaming a local account instead of the PC

If you want to change the name of a local account (not a Microsoft account), the process is slightly different. Open Settings, go to Accounts, then click "Other people" in the left menu. Find the account you want to rename, right-click it, and select "Rename". Type the new name and press Enter.

This changes the name that appears when you select that account at the login screen. It also changes the display name in Windows menus. Like renaming your PC, this does not affect your files or programs — they stay in place and continue to work.

If you are trying to rename your own local account and you do not see a "Rename" option when you right-click, you may not have administrator rights. You will need to ask someone with administrator access to rename it for you.

Troubleshooting: what to do if the rename does not work

If you clicked "Finish" but the new name does not appear after you restart, try restarting again. Sometimes Windows needs a second restart to fully explore the change. Shut down completely (not sleep mode) and turn the computer back on.

If the old name still appears after a second restart, open Settings again and check what name is actually stored. Go to Settings > Accounts > Your info and look at the "Who's using this PC right now?" section. If it shows the old name, try the rename process again. If it shows the new name but the login screen still shows the old one, wait a few more minutes — Windows sometimes takes time to update all the places where the name appears.

If you see an error message during the rename, the most common cause is that the name you chose is already in use on your network, or contains characters Windows does not allow. Try a different name with only letters, numbers, and hyphens. If you still get an error, restart your computer and try again.

Frequently Asked Questions

Will changing my username affect my passwords or sign-in?

No. If you use a Microsoft account, your password stays the same and you sign in with your email address, not your PC name. If you use a local account, your password does not change. The PC name is only what appears on your screen and network — it has nothing to do with how you sign in.

Can I change my username back to the old name later?

Yes. Follow the same steps: Settings > Accounts > Your info > Rename your PC, type the old name, and restart. There is no limit to how many times you can rename your PC.

Does renaming my PC affect my Microsoft OneDrive or cloud files?

No. OneDrive and other cloud services are tied to your Microsoft account email, not your PC name. Your files sync normally after you rename. You may see the new PC name in your OneDrive settings under "Devices", but your files are not affected.

What if my computer is part of a workplace domain?

Work computers managed by a domain usually cannot be renamed by the user. You will see a message saying the PC is managed by your organization. Contact your IT department to request a name change — they can do it remotely or guide you through the process.

Is there a way to change the username without restarting?

No. Windows requires a restart to explore the name change everywhere it appears. You cannot avoid the restart, but you can save your work first and restart at a time that is convenient for you.