To change the user folder name under C:\Users\
in Windows 11, you'll need to go beyond just changing the display name. Windows doesn't natively support renaming the user folder through normal settings because it can break system references. But you can do it manually, with care.
Make sure that before you begin
- Back up your data.
- You'll need to use a local administrator account (not the one you're renaming).
- Create a new temporary admin account
- Press
Win + I
→ Accounts → Other users → Add account. - Choose "I don't have this person's sign-in information", then "Add a user without a Microsoft account".
- Give it a name (e.g.,
TempAdmin
) and assign a strong password. - Set the account type to Administrator.
- Log in with the temporary admin account
- Log out of your main account.
- Log in with
TempAdmin
.
- Rename the user folder
- Go to
C:\Users\
and rename the target folder to your desired name. Example:JohnDoe
→JohnSmith
. - Edit the registry
- Press
Win + R
→ typeregedit
→ press Enter. - Navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
- Inside, you'll see several subkeys like
S-1-5-21-...
. Click each one and look at theProfileImagePath
string. - Find the one that points to the old folder name (e.g.,
C:\Users\JohnDoe
). - Double-click
ProfileImagePath
and change it to the new path, e.g.:C:\Users\JohnSmith
- Restart and log in with the renamed account
- Restart your PC.
- Log in with your original user account.
- Verify everything works correctly.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin