TheC:\Users\usernamefolder contains the user profile of your account. When you create an account, your system makes a folder with your username on theC:\Usersdirectory.

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.

local-user-manager-administrator

We have created this guide to show you how to safely change theC:\Users\usernamefolder in Windows.

Here is the step-by-step process for changing yourC:\Users\usernamefolder 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 tocreate a new adminor enable the hidden Administrator.

profile-image-path

For the latter process,

you’re able to also run Command Prompt as administrator and enternet user administrator /active:yesif you prefer using the CLI.

rename-user-profile

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.

Close the Registry Editor and Restart your PC.

search-registry

Step 3: Rename User Profile Folder

Now you can finally rename theC:\Users\usernamefolder. Follow the instructions below to do so:

Restart your PC and log in to your account.

rebuild-search-index

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.

rename-account

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.

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,

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:

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

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

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

If the Microsoft Store apps show errors after changing the user profile name, you’re able to openWindows PowerShellas administrator and enter:Get-AppxPackage | Foreach {Add-AppxPackage -register “$($_.InstallLocation)\appxmanifest.xml” -DisableDevelopmentMode}

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. verify to disable it after changing your user profile name.

For this, open the elevated Command Prompt and enter:net user administrator /active:no

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,