Windows 11 does not provide a straightforward way to rename the User folder. While renaming it directly may cause system instability, you can follow these steps carefully to safely change the User folder name.
Important Notes Before Proceeding
- Renaming the User folder is risky and not officially recommended by Microsoft.
- Before proceeding, create a full system backup or a restore point in case something goes wrong.
- This process requires administrative privileges.
Step 1: Enable the Built-in Administrator Account
-
- Press
Windows + X
and select Terminal (Admin). - Run the following command to enable the Administrator account:
- Press
net user Administrator /active:yes
- Restart your computer and log in to the Administrator account.
Step 2: Rename the User Folder
- Open File Explorer (
Windows + E
). - Navigate to
C:Users
. - Right-click on your User folder and select Rename.
- Change the folder name to your desired username.
Step 3: Update the Registry
Since the system still refers to the old folder name, you need to update the registry:
-
- Press
Windows + R
, typeregedit
, and press Enter. - Navigate to:
- Press
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList
- Click on each folder in ProfileList and check the
ProfileImagePath
entry. - Find the entry that contains your old username (e.g.,
C:UsersOldName
). - Double-click
ProfileImagePath
and change it to your new User folder name (e.g.,C:UsersNewName
). - Close the Registry Editor.
Step 4: Restart and Log in to Your Account
- Restart your PC.
- Log in to your main account.
- Verify that all applications and files are working correctly.
Step 5: Disable the Administrator Account
-
- Open Terminal (Admin) again.
- Run the following command to disable the built-in administrator:
net user Administrator /active:no
For more “Windows 11” solutions, please check our Windows 11.
Leave a Reply