What happens when you change your Windows username

When you change your Windows username through Settings, Windows updates the name that appears on your login screen and in menus — but it does not automatically rename the folder where your files live. That folder, usually located at C:\Users\YourOldName, keeps its original name. This means your username and your folder name no longer match, which can cause confusion and occasionally break programs that expect them to be the same.

Renaming the folder requires a different process than changing the username itself. You cannot straightforward right-click the folder and rename it while Windows is running, because Windows locks that folder while you are logged in. The folder must be renamed from outside your user account — either by logging into a different administrator account or by booting into Safe Mode.

Key Takeaways

  • Your username and your user folder are separate things; changing one does not change the other.
  • You must rename the folder from a different administrator account or Safe Mode, because Windows locks it while you are logged in.
  • After renaming the folder, you need to update the registry so Windows knows where to find your files.
  • If you make a mistake during this process, you can revert by renaming the folder back and restarting.

Rename the folder using another administrator account

The safest method is to use a second administrator account on the same computer. Log out of your account, then log in as a different administrator. If you do not have a second administrator account, you can create one temporarily through Settings > Accounts > Other people > Add account.

Once you are logged in as the other administrator, open File Explorer and navigate to C:\Users. Right-click the folder with your old username and select Rename. Type the new name — this should match the new username you created in Settings. Press Enter to confirm.

After the rename completes, restart your computer. When you log back in with your new username, Windows will search the registry and find the renamed folder. In most cases, Windows updates the registry automatically on the next login. If your files do not appear, or if you see an error about a missing profile, you may need to update the registry manually (see the section below).

Rename the folder using Safe Mode

If you do not have a second administrator account, you can rename the folder from Safe Mode. Restart your computer and hold down the Shift key while clicking the power button to shut down. Wait 10 seconds, then turn the computer back on. Windows will show a menu with boot options.

Select Troubleshoot, then Advanced options, then Startup Settings. Press 4 or F4 to boot into Safe Mode. Log in with your administrator account (the one with the new username).

Open File Explorer, navigate to C:\Users, and rename the folder as described above. Restart the computer normally. Windows should recognize the renamed folder on the next login.

Update the registry if Windows cannot find your folder

In rare cases, Windows does not update the registry automatically. You will know this happened if you log in and see a temporary profile, or if Windows says your user profile is corrupted. To fix this, you need to edit the registry — the database where Windows stores system settings.

Log in as a different administrator account. Press the Windows key and R together, type regedit, and press Enter. The Registry Editor will open. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList.

Look through the folders in ProfileList. Each one represents a user account and has a name like S-1-5-21-.... Click on each folder until you find the one that contains a subfolder called ProfileImagePath. When you click ProfileImagePath, the right panel will show a value that points to your old folder path, like C:\Users\OldName. Double-click that value and change it to your new path, like C:\Users\NewName. Click OK and close the Registry Editor.

Restart your computer and log in with your new username. Your files should now appear.

What to do if the rename fails or causes problems

If you see an error during the rename, or if you cannot access your files after renaming, the simplest fix is to rename the folder back to its original name. Log in as the other administrator account, navigate to C:\Users, and rename the folder back. Restart and log in normally. Your account will work as it did before.

If you edited the registry and something went wrong, you can undo the change by opening Registry Editor again and changing the ProfileImagePath value back to the old folder name. Restart and try the process again more carefully, or consider leaving the folder name and username mismatched — this rarely causes real problems in modern Windows.

Why the folder name and username can stay different

If renaming the folder seems too risky or complicated, you do not have to do it. Many people run Windows with a username that does not match their folder name, and it causes no issues in everyday use. The mismatch only matters if you use programs that specifically look for a folder matching your username, which is uncommon.

The main reason to rename the folder is for clarity — so that when you navigate to C:\Users, the folder name matches what you see in Settings and on your login screen. If that does not matter to you, leaving it alone is a valid choice.

Frequently Asked Questions

Can I rename the folder while I am logged in?

No. Windows locks the user folder while you are logged in, so the rename will fail or be incomplete. You must log in as a different administrator or use Safe Mode.

What if I renamed the folder but my programs cannot find my files?

This usually means the registry was not updated. Follow the registry update steps above to change the ProfileImagePath value to point to your new folder name. Restart after making the change.

Will renaming the folder delete any of my files?

No. Renaming a folder does not change or delete anything inside it. All your files, documents, and settings stay exactly where they are.

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

No. If you changed only your display name (the name shown on the login screen), your folder name stays the same and does not need to be updated. You only need to rename the folder if you changed your actual username in Settings.

What if I see an error about the profile being corrupted?

This usually means Windows cannot find your user folder because the registry still points to the old location. Use the registry update steps above to correct the ProfileImagePath value. If that does not work, restart in Safe Mode and try again.