The user folder name does not change automatically when you rename your account

When you change your Windows 11 username through Settings, the folder that holds your files stays named after your old username. If your account was "JohnSmith" and you change it to "John", your user folder remains "C:\Users\JohnSmith" instead of becoming "C:\Users\John". This mismatch can confuse you when you open File Explorer, and some programs may look for files in the old folder path and fail to find them.

Renaming the user folder itself requires a different process than renaming your account. You cannot straightforward right-click the folder and rename it while Windows is running — the folder is locked because Windows is actively using it. You have three working routes: rename it through a separate administrator account, rename it using Safe Mode, or use the command line while logged into a different account.

The safest and most straightforward method is to create or use a second administrator account, then rename the folder from there. This avoids the complications of Safe Mode and keeps you away from command-line syntax errors.

Key Takeaways

  • Your user folder name (in C:\Users\) does not change when you rename your account in Settings — you must rename the folder separately.
  • You cannot rename the folder while logged into that account because Windows locks it; you need a second administrator account or Safe Mode.
  • The safest method is to log into a different administrator account, then right-click the folder and rename it directly.
  • After renaming, log back into your account and check that your files and programs still work; if a program breaks, you may need to reinstall it.
  • Do not rename the folder if you are the only administrator account on the machine — you could lock yourself out of your own files.

Rename the folder using a second administrator account

If you have a second administrator account on your machine, this is the simplest route. Log into that account, open File Explorer, and navigate to C:\Users\. You will see your original user folder listed by its old name. Right-click it, select Rename, type the new name, and press Enter. Windows will not block you because you are not logged into that account.

The new name must follow Windows naming rules: no characters like / \ : * ? " < > |, and no trailing periods or spaces. Keep it under 20 characters to avoid problems with some older programs. After you rename it, log back into your own account. Windows will recognize the new folder name automatically, and your files will be in the same place.

If you do not have a second administrator account, you can create one temporarily. Go to Settings > Accounts > Other users > Add account. Choose "I don't have this person's sign-in information" and then "Add a user without a Microsoft account". Give it a name and a password, then go back to Settings > Accounts > Other users, select the new account, and click "Change account type" to make it an Administrator. Log into it, rename your folder, then delete the temporary account afterward.

Use Safe Mode if you have only one administrator account

Safe Mode starts Windows with only essential services running, which means your user folder is not locked. Restart your machine and hold Shift while clicking the power button to shut down (do not just restart). Once it is fully off, turn it back on. Windows will show a menu with boot options — select "Troubleshoot" > "Advanced options" > "Startup Settings" > "Restart". When the machine reboots, press 4 or F4 to enter Safe Mode.

In Safe Mode, open File Explorer and navigate to C:\Users\. Right-click your user folder and rename it. Use the same naming rules as above — no special characters, under 20 characters. After you rename it, restart normally. Windows will boot into your account with the new folder name.

Safe Mode can feel unfamiliar because many programs do not load. If something goes wrong during the rename, restart again and try once more. If the rename fails completely, restart normally and your folder will still have its original name — no permanent damage occurs.

Rename the folder from command line (for experienced users)

If you are comfortable with the command prompt, you can rename the folder using the ren command from a second administrator account. Open Command Prompt as Administrator (search for "cmd", right-click it, and select "Run as administrator"). Type the command exactly as shown, replacing "OldFolderName" with your current folder name and "NewFolderName" with what you want it to be:

ren C:\Users\OldFolderName C:\Users\NewFolderName

Press Enter. If the command succeeds, you will see no message — that is normal. If you see an error, the most common cause is a typo in the folder name. Check the exact spelling by opening File Explorer and looking at C:\Users\ to confirm the current name. Do not attempt this method if you are unsure of the syntax; a mistake here can make the folder inaccessible, and you would need to undo it from Safe Mode or a recovery environment.

What to do if programs stop working after renaming

Some programs store the full path to your user folder in their settings or configuration files. After you rename the folder, those programs may look for files in the old path and fail. The most common symptom is a program that worked before now says it cannot find a file or crashes on startup.

The fastest fix is to reinstall the broken program. Uninstall it through Settings > Apps > Apps & features, then read and install it fresh. It will detect your new folder path and set itself up correctly. If you have many programs that break, you can also create a symbolic link (a Windows shortcut that acts like a folder) pointing the old folder name to the new one, but this is a workaround, not a solution — reinstalling is cleaner.

Before you rename your folder, make a note of any programs that store files in your user folder (like photo editors, music software, or games that save to Documents). After renaming, test those programs first to catch any problems early.

Verify the rename worked correctly

After you rename the folder and log back into your account, open File Explorer and navigate to C:\Users\. Confirm that your folder now shows the new name. Then check that your Documents, Desktop, Downloads, and Pictures folders are still accessible and contain your files. Open a program you use regularly and make sure it can find its settings and saved files.

If everything looks normal, the rename is complete. If a program cannot find its files, try reinstalling it. If you cannot access your user folder at all, restart in Safe Mode, rename it back to the original name, and try again — or contact a local IT person for help before you proceed further.

Frequently Asked Questions

Can I rename my user folder to match my new account name?

Yes, that is the whole point of this process. After you rename your account in Settings, you can rename the folder to match. For example, if you changed your account from "JSmith" to "John", you can rename C:\Users\JSmith to C:\Users\John. Just follow the same naming rules — no special characters, no trailing spaces or periods.

What happens to my files if I rename the folder?

Your files stay exactly where they are. Renaming the folder is like renaming a cardboard box — the contents do not move or change. Windows will still find them because it looks for the folder by its new name. As long as you do not move the folder to a different location, everything stays intact.

Will renaming the folder affect my Microsoft account or password?

No. Your Microsoft account and password are separate from the user folder name. Renaming the folder only changes the name of the directory on your hard drive. Your account login and security settings are unaffected.

What if I rename the folder and then cannot log in?

This is rare, but if it happens, restart in Safe Mode, rename the folder back to its original name, and restart normally. You should be able to log in again. If you are still locked out, you may need to use a password reset disk or contact Microsoft support.

Can I rename the folder while I am logged in to my account?

No. Windows locks the user folder while you are logged into that account, and you will get an error if you try to rename it. You must log into a different account or use Safe Mode. Attempting to force a rename while logged in can corrupt your profile.