What changing your Windows username folder actually does
When you change your Windows username, the folder at C:\Users\Username does not automatically rename itself. Windows keeps that folder name locked to your user account's internal ID, even after you change the display name that appears on your login screen. If you want the folder to match your new username, you have to move your files manually or create a new user account — there is no built-in rename button.
Most people do not need to change this folder at all. Your display name (what shows on the login screen and in Settings) can change independently, and programs find your files by the account ID underneath, not the folder name. But if the folder name bothers you or you are setting up a new computer, you have two real paths forward.
Key Takeaways
- Renaming the C:\Users folder directly will break Windows and your programs — do not attempt it by right-clicking and editing the name.
- The fastest safe method is to change your display name in Settings, which updates what appears on your login screen without touching the folder.
- If you need the folder name to match your new username, you must create a new user account and transfer your files, or use a command-line tool designed for this task.
- Changing your username folder affects file paths in some programs, so test your most-used applications after making the change.
Changing your display name without touching the folder
Open Settings, go to Accounts, then select Your info. Click the Rename your account button and type your new name. This changes what appears on your login screen and in the Start menu, but leaves C:\Users\Username untouched. Your files stay where they are, and Windows continues to find them using your account ID.
This is the safest and fastest option if you only care about what name shows up when you log in. Most people stop here. Programs do not care what the folder is called — they care about the account ID, which never changes.
Creating a new account and moving your files
If you need the actual folder name to change, the safest method is to create a new user account with the name you want, then move your files from the old account to the new one. Open Settings, go to Accounts, then Family & other users, and click Add account. Choose I don't have this person's sign-in information, then Add a user without a Microsoft account. Type your new username and a password.
Once the new account exists, log into it and make sure it works. Then log back into your old account. Open File Explorer and navigate to C:\Users. You will see both folders now. Open your old username folder and select all your files (Ctrl+A), then cut them (Ctrl+X). Navigate to the new username folder and paste them (Ctrl+V). This moves your Documents, Desktop, Downloads, and other personal folders to the new account.
After the move completes, check that your files are there and your programs still work. Then you can delete the old account: go to Settings, Accounts, Family & other users, select the old account, and click Delete. Windows will ask whether to keep or delete the old folder — choose delete to clean it up.
Using the command line for advanced users
Windows includes a command-line tool called netdom that can rename a user folder, but it requires administrator access and carries real risk if you make a mistake. Open Command Prompt as administrator (right-click Command Prompt in the Start menu and choose Run as administrator). Type the command exactly as shown, replacing "OldName" and "NewName" with your actual usernames:
netdom renamecomputer %computername% /NewName:NewName
This approach is faster than creating a new account, but if the command fails or you interrupt it, your account can become unusable. Use this only if you are comfortable troubleshooting from Safe Mode or a recovery drive. For most people, creating a new account is safer.
Why you should not rename the folder directly
The C:\Users folder is not like a normal folder you can right-click and rename. Windows ties it to your account's security ID (SID), a long number that identifies you to the operating system. If you rename the folder manually, Windows loses track of where your account's files are. You will see permission errors, programs will not find your files, and you may not be able to log in at all.
Even if you change the folder name and then change it back, Windows may not recognize it when ready. The only safe way to rename the folder is through the methods above, which update Windows's internal records at the same time.
What happens to your programs and shortcuts
Some programs store file paths that include your username, like C:\Users\OldName\Documents\MyFile.txt. If you change the folder name, those hardcoded paths break. Most modern programs handle this automatically — they use Windows's built-in folder locations (Documents, Desktop, Downloads) rather than hardcoded paths, so they keep working.
Older programs and custom shortcuts may not. After you change your username folder, open your most-used programs and check that they can find your files. If a program shows an error about a missing file path, you may need to point it to the new location manually, or uninstall and reinstall it so it learns the new path.
Frequently Asked Questions
Can I just rename the folder in File Explorer?
No. Windows will not recognize the new name and you will lose access to your files and programs. Always use Settings to change your display name, or create a new account if you need the folder name to change.
Will changing my username affect my Microsoft account?
No. Your local Windows username and your Microsoft account are separate. Changing one does not change the other. If you want to change your Microsoft account name, that is a different process done on Microsoft's website.
What if I only want to change the display name, not the folder?
Go to Settings, Accounts, Your info, and click Rename your account. This changes what shows on your login screen without touching the C:\Users folder.
Do I need to back up my files before moving them?
Yes. Before you move or delete anything, copy your important files to an external drive or cloud storage. If something goes wrong during the move, you will have a backup.
What if the new account creation fails?
Make sure you have administrator rights and that you are not using a name that is already taken. If Settings shows an error, restart your computer and try again. If it still fails, you may need to use the command-line method or contact Microsoft support.