How do I rename a profile in the registry?

The C:\Users\username folder contains the user profile of your account. When you create an account, your system makes a folder with your username on the C:\Users directory.

Even if you change your account name, the profile name remains unchanged. Directly changing this name is also impossible if you don’t have admin privileges.

We have created this guide to show you how to safely change the C:\Users\username folder in Windows.

Table of Contents

  • How to Change C:\users\username in Windows
    • Step 1: Log in With Another Admin Account
    • Step 2: Change User Profile Path in Registry
    • Step 3: Rename User Profile Folder
    • Step 4: Replace Profile Path in All Possible Instances
      • Create a Symbolic Link
      • Manually Change Registry Entries
    • Step 5: Disable Hidden Administrator Account
  • How to Change User Account Name

How to Change C:\users\username in Windows

Here is the step-by-step process for changing your C:\Users\username folder in Windows:

Step 1: Log in With Another Admin Account

You can’t change your user profile name from the same account. You also need administrator privileges. So, log out of the account whose user profile you wish to change and sign in using another admin account.

If you don’t have any other accounts, you need to create a new admin or enable the hidden Administrator.

For the latter process,

  1. Open Run command box (Win + R).
  2. Enter lusrmgr.msc. It will direct you to the Local Users and Groups Manager.
  3. Click on Users from the left pane.
  4. Double-click on Administrator.
    How do I rename a profile in the registry?
    How do I rename a profile in the registry?
  5. In the General tab, uncheck the Account is disabled option.
  6. Click Apply and Ok.

You can also run Command Prompt as administrator and enter net user administrator /active:yes if you prefer using the CLI.

Then, log out of your current account and sign in using the Administrator account.

Step 2: Change User Profile Path in Registry

Changing the user profile name involves more than just altering the folder name. Your system keeps track of the user profiles and their paths in the registry. So, first, you need to change the path through the Registry Editor. 

Note: Incorrect modification of the registry causes many system problems. Therefore, back up your registry before executing this process.

Here’s how you can change the User Profile path:

  1. Open the Run dialog box and enter regedit.
  2. Navigate to: Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\
  3. It will contain a list of all SIDs. Individually click on the keys and check the value of ProfileImagePath to determine your profile.
  4. Alternately, you can enter wmic useraccount get name,SID on the Command Prompt to list all user profiles along with their corresponding SIDs.
  5. Before making changes to your profile, right-click on ProfileList and select Export to create a backup.
  6. Go to the SID of your profile.
  7. Double-click on ProfileImagePath.
  8. Change your profile name in the Value data to your preference.

    How do I rename a profile in the registry?
    How do I rename a profile in the registry?

Close the Registry Editor and Restart your PC.

Step 3: Rename User Profile Folder

Now you can finally rename the C:\Users\username folder. Follow the instructions below to do so:

  1. Sign in with your account (the one where you want to change the profile name).
  2. Navigate to the C:\Users directory.
  3. Right-click on the User Profile folder you wish to change.
  4. Select Rename.

    How do I rename a profile in the registry?
    How do I rename a profile in the registry?

  5. Enter the name you used for the registry entry.
  6. If you can’t rename the folder, boot into safe mode and try again.

Restart your PC and log in to your account.

Step 4: Replace Profile Path in All Possible Instances

There are some loose ends you need to tie up to complete the process. Many registry entries and settings still use the previous profile path.

Your application will run just fine. However, since you have changed the profile path and directory, the previous configurations and saved objects may not be accessible.

You must replace the previous path with the current one in all instances to avoid this issue. You can do so by manually changing the registry settings or creating a symbolic link.

Create a Symbolic Link

A symbolic link creates a reference to a file or folder in another location. You can make it so that opening a folder in one location opens up another. This method creates a logical replacement for the profile path. To create a symbolic link,

  1. Launch the Run command.
  2. Type C:\Users0 and press Ctrl + Shift + Enter to load the elevated Command Prompt.
  3. Enter the command: C:\Users1 while replacing both of the full paths.

Note: Not all programs follow a symbolic link and thus, result in application crashes. Completely uninstall and reinstall them to fix this issue.

Manually Change Registry Entries

Creating a symbolic link does not actually replace the profile paths. If you don’t want your old username to pop up in any instance, you can try manually changing all the relevant registry entries. Here’s how you can change the entries:

  1. Open the Registry Editor.
  2. Click Ctrl + F to load the Find feature.
  3. Make sure to tick all options.
  4. Type the previous username in Find What and click Find Next.
    How do I rename a profile in the registry?
    How do I rename a profile in the registry?
  5. Double-click on the selected registry entry and change the previous username to the new one in the Value data. Be careful while replacing the value.
  6. Press F3 to find the next instance of the username.

Change all the username values in the Registry Editor. Be advised that there are some entries you can’t change.

The next step is to rebuild search entries to refer to the new user profile. To do so,

  1. Launch the Run command.
  2. Enter C:\Users2. It will direct you to the Indexing Options.
  3. Click on Advanced and select Rebuild.
    How do I rename a profile in the registry?
    How do I rename a profile in the registry?
  4. Hit Ok to confirm.

Restart your PC and check if you can use your system normally.

If the Microsoft Store apps show errors after changing the user profile name, you can open Windows PowerShell as administrator and enter:
C:\Users3

Step 5: Disable Hidden Administrator Account

The hidden Administrator account is very useful in debugging many system issues. However, it is disabled by default to prevent any unauthorized changes to your system. Make sure to disable it after changing your user profile name.

For this, open the elevated Command Prompt and enter:
C:\Users4

How to Change User Account Name

If you changed the user profile name, you might also want to change your account name to maintain consistency. There are many ways to modify your User Account name. 

One of the easier methods is to use the Local Users and Groups Manager. To use this utility to change your account name,

How do I rename a user profile?

Press Windows key + R, type: netplwiz or control userpasswords2, then hit Enter. Select the account, then click Properties. Select the General tab, then enter the user name you want to use. Click Apply then OK, click Apply then OK again to confirm the change.

How do I rename my domain profile?

Open the Active Directory Users and Computers snap-in. In the left pane, right-click on the domain and select Find. Type the name of the user and click Find Now. In the Search Results, right-click on the user and select Rename.

How do I rename a corrupt profile in Windows 10?

Fix #1: Registry Editor.
Go to the folder without . bak , right-click and click Rename..
Add . backup at the end of its name: S-1-5-23232. backup..
Go to the folder with . bak , right-click and click Rename..
Remove the . bak and press Enter..
Go to the folder with . backup , right-click and click Rename..
Rename . backup to . bak..

Where is the profile list in Regedit?

Procedure.
Open the Windows Registry Editor..
Expand HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList..
Select each folder individually and look at the ProfileImagePath key to identify the user profile associated with the selected folder:.