How to Change Windows 11 User Folder Name
In this article
Changing your Windows 11 user folder name (the directory under C:\Users) is technically possible but highly discouraged by Microsoft. The process requires modifying registry keys and taking ownership of system folders, which can break applications, corrupt shortcuts, and cause significant stability issues. If you proceed, you must create a new local administrator account first to ensure you do not lock yourself out of the system.
What You'll Need
- A secondary Administrator account already created on your PC
- Full administrative privileges on the primary account
- Patience and time for registry edits and file moves
- A backup of important data (strongly recommended due to risk)
Step-by-Step
- Create a New Local Admin Account: Before making any changes, go to Settings > Accounts > Other users. Add a new account and set its type to Administrator. Log out of your current account and log into this new admin account. This step is critical; if something goes wrong during the rename, you need an alternative admin account to fix it.
- Log Out of the Old Account: Ensure you are fully logged out of the original user profile that you intend to rename. Do not attempt these steps while signed into the account being modified.
- Edit the Registry: Press Win + R, type
regedit, and press Enter. Navigate toHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Look through the subfolders (SIDs) until you find the one that matches your old username or contains the path to your old user folder. Click on that SID key. In the right pane, double-clickProfileImagePathand change the value data from the old name to the new desired name. Repeat this for any other SIDs that point to the same user profile. - Rename the Folder: Open File Explorer and navigate to
C:\Users. Right-click your old user folder and select Rename. Change it to the new name you specified in the registry. If Windows prevents you from renaming it because files are in use, restart the computer while still logged into the new admin account and try again immediately. - Update Environment Variables: While still in the new admin account, open the Start menu, search for "Environment Variables," and select "Edit the system environment variables." Click the "Environment Variables" button at the bottom. Under both "User variables" and "System variables," look for entries like
USERPROFILE,HOMEPATH, andHOMEDRIVE. Edit these to reflect the new folder path. Also check for any custom paths that might reference the old folder name. - Log Back Into the Renamed Account: Log out of the temporary admin account and log back into your newly renamed user account. Verify that your desktop, documents, and apps load correctly.
Common Mistakes
The most frequent error is attempting to rename the folder while logged into the target account. Windows locks many files in the user profile, leading to permission errors or incomplete renames. Another common mistake is forgetting to update all registry keys; leaving multiple SIDs pointing to different names creates confusion for system services. Users also often neglect to update environment variables, causing scripts and command-line tools to fail when they cannot locate the home directory.
Tips
Consider creating a brand new user account with the desired name instead of renaming the existing one. This approach is cleaner, safer, and avoids registry corruption risks. If you must rename, take a full system image backup before starting. Use a tool like TakeOwnership or manually adjust folder permissions if you encounter access denied errors during the move. Keep the new name simple, avoiding spaces or special characters to prevent future compatibility issues with older software.
Troubleshooting
If apps fail to launch after the rename, check the registry keys again to ensure all ProfileImagePath entries were updated. If the desktop fails to load, boot into Safe Mode using the new admin account and revert the registry changes. For persistent login loops, create a new local account and migrate your files manually from the old renamed folder to the new one. If specific programs throw path errors, reinstall them to force them to register the new location. Always prioritize restoring from a backup if the system becomes unstable.
Frequently Asked Questions
Can I just rename the folder in C:\Users?
No. Simply renaming the folder breaks registry links and environment variables. You must update the registry and system paths simultaneously for the change to work.
Will this delete my files?
The process itself does not delete files, but mistakes during registry editing or permission changes can lead to data loss. A backup is essential.
Does this work for Microsoft accounts?
It is more complex for Microsoft accounts. Local accounts are easier to manage. Microsoft accounts often tie the folder name to the email alias, requiring extra steps to decouple.
Is there an official way to do this?
No. Microsoft does not provide a built-in tool to rename the user profile folder. It is considered a manual hack involving registry edits.
What happens to my installed apps?
Apps may lose their ability to find configuration files or save data if they hardcode the old path. Reinstalling affected apps is often the safest fix.
Should I use a third-party tool?
Third-party tools exist but carry security risks. Manual editing is transparent and allows you to verify every change. Only use reputable tools if you lack technical confidence.