The username folder is separate from your display name

When you change your Windows 11 username through Settings, the folder that holds your files stays the same. Windows keeps your documents, downloads, desktop, and other personal files in a folder named after your original username — usually something like C:\Users\OldName. If you want that folder to match your new username, you have to rename it manually, and it requires a few specific steps in the right order.

This is different from changing the name that appears on your sign-in screen or at the top of the Start menu. Those changes happen in Settings and take effect when ready. The folder rename is a separate task that involves logging in as an administrator and using File Explorer or the command line.

Key Takeaways

  • Your user folder name and your display name are separate — changing one does not automatically change the other.
  • You must be signed in as an administrator account to rename your user folder.
  • The safest method is to create a new administrator account, log into it, then rename the old folder through File Explorer.
  • After renaming the folder, you may need to sign out and sign back in for Windows to recognize the change fully.
  • If you use OneDrive, cloud sync, or work accounts, renaming the folder can cause those services to lose track of your files until you reconfigure them.

Create a temporary administrator account first

Before you rename your user folder, you need to be logged in as a different administrator so Windows does not lock the folder you are trying to change. The easiest way is to create a second administrator account, use it to do the rename, then delete it afterward.

Open Settings and go to Accounts > Other users. Click Add account. Choose I don't have this person's sign-in information, then Add a user without a Microsoft account. Give it a straightforward name like "Temp Admin" and a password you will remember. After you create it, go back to Other users, select the new account, and click Change account type. Set it to Administrator.

Sign out of your current account and sign into the temporary administrator account with the password you just set.

Rename the folder through File Explorer

Open File Explorer and navigate to This PC > C: (or whichever drive Windows is installed on) > Users. You will see a list of user folders. Right-click the folder with your old username and select Rename. Type the new name you want — this should match the new username you set in Settings, or whatever name you prefer for the folder.

Windows may ask for administrator permission. Click Continue. The folder will rename when ready. Do not move or delete anything inside it — just rename the folder itself.

If File Explorer will not let you rename the folder and keeps asking for permission even though you are logged in as an administrator, the folder may still be in use by a background process. Restart the computer while logged into the temporary administrator account, then try again.

Update your user profile path if needed

In most cases, renaming the folder is enough and Windows will find your files without any extra steps. However, if you use OneDrive, Microsoft 365, or a work account synced through Azure, those services may have stored the old folder path and will not automatically update.

Sign back into your original account (the one you renamed the folder for). If OneDrive or other cloud services show an error or stop syncing, open their settings and point them to the new folder location. For OneDrive, right-click the OneDrive icon in the system tray, select Settings > Account, and check that the folder path shows your new username folder.

If you use a work account through your employer, you may need to contact your IT department or check your company's documentation for how to update the profile path.

Delete the temporary administrator account

Once you have confirmed that your files are accessible and your main account is working normally, you can remove the temporary administrator account. Sign back into your main account first.

Open Settings and go to Accounts > Other users. Select the temporary account and click Delete. Windows will ask whether you want to keep or delete the files associated with that account. Since it is empty, click Delete account and data.

Using the command line as an alternative

If you prefer not to create a temporary account, you can rename the folder using the command line, but it requires more steps and leaves less room for error. Open Command Prompt as administrator (right-click Command Prompt in the Start menu and select Run as administrator).

Type the command: ren C:\Users\OldName C:\Users\NewName, replacing OldName with your current folder name and NewName with what you want it to be. Press Enter. If the command succeeds, you will see no error message. If it fails, you will see a message like "Access is denied" — this usually means the folder is still in use, and you should restart and try again.

The command line method is faster if you are comfortable with it, but the File Explorer method is safer because you can see exactly what you are renaming and undo it more easily if something goes wrong.

What to do if the rename fails

If Windows will not let you rename the folder even after restarting, a program or service is still using it. Check the Task Manager for any programs running under your old username, close them, and try again. Windows Search, Cortana, and antivirus software sometimes hold onto user folders.

If you have recently set up Windows or migrated from another computer, Windows may still be indexing your files. Wait a few hours and try again. You can also disable Windows Search temporarily: open Services (press Windows key + R, type services.msc, and press Enter), find Windows Search, right-click it, and select Stop. Rename the folder, then right-click Windows Search again and select Start.

Frequently Asked Questions

Will renaming the folder affect my programs or installed software?

Most programs will continue to work normally because they store their settings in the registry or in AppData, not in the username folder path itself. However, some older programs or portable applications may break if they have hardcoded the old path. Test your most important programs after the rename to make sure they still launch and save files correctly.

Can I rename the folder to something completely different from my username?

Yes, the folder name does not have to match your username. However, keeping them the same makes it easier to remember which folder belongs to which account, especially if you have multiple user accounts on the same computer. If you choose a different name, make sure it does not contain spaces or special characters that Windows does not allow in folder names.

What happens to my desktop and documents if I rename the folder?

They stay exactly where they are. Your Desktop, Documents, Downloads, and other special folders are stored inside the user folder, so renaming the parent folder does not move or delete anything. All your files remain accessible in the same places they were before.

Do I need to rename the folder if I only changed my display name?

No. If you only changed the name that appears on your sign-in screen and in the Start menu, the folder rename is optional. Many people leave the folder name as it was and only change the display name. The folder rename is only necessary if you want the folder name to match your new display name for consistency.

Can I undo the rename if something breaks?

Yes. If you renamed the folder and something stops working, you can rename it back to the original name using the same method. Sign in as an administrator, open File Explorer, navigate to the Users folder, and rename it back. Most services will recognize the original folder name and resume working normally.