Home
» Conseils PC
»
How to change User Profile folder name in Windows 11
How to change User Profile folder name in Windows 11
When you create a new user account in Windows 11 , the operating system automatically creates a new User Profile folder in C:\Users\Username. However, this default User Profile folder name isn't always what you want.
By default, Windows uses the first five characters of your user account name as the profile folder name. If you don't like the User Profile folder name, you can change it by editing the registry. This article will show you how to change the User Profile folder name in Windows 11.
How to change User Profile folder name using Registry Editor
You can modify the registry entries associated with your user account to change the User Profile folder name in Windows 11.
This process involves modifying your registry entries, so we recommend creating a restore point . You can use the restore point to restore your PC if something goes wrong during the process.
To change the User Profile folder name:
1. Log out of your current user account and log in with the built-in or newly created admin account
3. Type netplwiz and click OK to open the User Accounts dialog box .
4. Here, select your user account and click on Properties .
User account properties.
5. In the User Properties dialog box , you will see your User name and Full name .
6. Enter a name for your username, click OK > Apply .
User account name
7. Close the User Account dialog box and perform a reboot.
8. Next, open Command Prompt . To do this, press Win + R , type cmd and click OK.
Command Prompt User Account SID.
9. In the Command Prompt window, type the following command to view the SID (Security Identifier) for all user accounts:
wmic useraccount get name,SID
10. Here, note the SID for the user account you want to rename the User Profile folder for. In this case, the SID for the username tashr is S-1-5-21-200486166-247335145-1769094253-1001.
Now that you have the SID, you need to enter it into the Registry Editor. To do that, follow these steps:
3. Inside the ProfileList key , locate and click the key name that matches the SID you noted earlier.
4. On the right, right-click the ProfileImagePath value and select Modify.
Modify ProfileImagePath in Registry Editor.
5. Enter the name you want for the profile folder and click OK .
Enter a name for the profile folder
6. Close the Registry and Command Prompt windows if open.
7. Next, press Win + E to open File Explorer and navigate to C:\Users\ .
Rename the User Profile folder name.
8. Select your User Profile and press F2 to rename it. Enter a new name for the User Profile (this name must match the user name entered in Registry Editor).
9. Click Continue to save changes.
Sometimes you may encounter the error " You can't perform this action " when renaming a folder. This error usually occurs if you switch to another admin account without logging out of the main user account. Alternatively, restart your PC and repeat the steps to rename the User Profile folder without errors.
Next, log out of your current account and log in to the user account with the new user folder name. Open File Explorer and navigate to C:\Users\ and you should be able to use the previous profile with the new path name.