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 is not always what you want.
Windows, by default, will use 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 using a registry hack. Here, we show you how to change the name of the user profile folder in Windows 11.
While the registry hack should help you successfully change your user account folder name, it can lead to some complications. For example, some of your Microsoft Store apps, including OneDrive and Outlook, can stop working.
Try to sign out and sign in to your app as a quick fix. If that does not work, you’ll need to move the existing path and define the new correct path after changing the user folder name.
Also, create a restore point and exercise extreme caution while changing your user name folder. Incorrect modification to the Windows Registry can cause serious issues and may require reinstallation of the operating system.
To change your current user profile name, log into a different administrator account. You cannot modify an existing user account profile path from the same account.
To do this, you can enable and use the built-in administrator account in Windows 11. If not, follow these steps to create a new administrator account in Windows 11.
To create a new administrator account:
Now, you can log in with your new administrator account. To do this, click Start, then click on the user profile name, and select Sign out. Next, sign in with the new administrator account.
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 you create 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:
<code class="hljs bash">wmic useraccount get name,SID</code>
Now that we have the SID, we must enter it into the Registry Editor. To do that, follow these steps:
<code class="hljs bash">HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList</code>
You may sometimes encounter the "You can’t perform this action" error when renaming the folder. This error often occurs if you switch to a different administrator account without signing out from the primary user account. Alternatively, restart your PC and repeat the steps to rename the user profile folder without the error.
Next, log out from your current account and sign 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 pathname.
While you can rename the user account in Windows 11 using the Control Panel, doing so will not change the user profile folder name. You need to modify the ProfileImagePath value in the Registry Editor with a different administrator account. Once done, you can remove the new administrator user account to declutter your login screen.
The above is the detailed content of How to Change the User Profile Folder Name in Windows 11. For more information, please follow other related articles on the PHP Chinese website!