Skip to content
Windows 🟑 Intermediate

How to Rename User Profile Folder in Windows 11

Richard
Written by
Richard
Updated 11 min read
Windows 11 File Explorer showing a highlighted user profile folder inside the C:Users directory, illustrating how to rename a user home folder.
Windows 11 File Explorer showing a highlighted user profile folder inside the C:Users directory, illustrating how to rename a user home folder.
Before you start
  • 3 steps
  • Needs administrator rights
  • Includes a restart or sign-out

Renaming the user profile folder changes the folder name under 📁C:\Users\, where your personal files, documents, and app settings live. Windows 11 creates this folder from the first five letters of your Microsoft account name, which often leaves you with a name you dislike.

To rename it for an existing account, you edit one value in the Registry Editor, then rename the folder in File Explorer. Renaming the folder in File Explorer alone breaks your account, because Windows still looks for the old path. You need administrator rights. The steps are the same on Home and Pro editions of a currently supported Windows 11 version (25H2 or 26H2).

This changes only the folder name on disk. Your account name, display name, and Microsoft account stay the same. Update KB5089573 also adds a way to choose a custom folder name during Windows setup, covered below.

⚑ Quick Answer

To rename a user profile folder in Windows 11, sign in as a different administrator, edit the ProfileImagePath value for your account’s SID in Registry Editor, then rename the folder under 📁C:\Users\ in File Explorer. Renaming the folder in File Explorer alone breaks the account, so do both steps.

Advertisement

Getting Ready to Rename

A registry mistake can lock you out of your profile, so prepare first.

On a new PC, you may not need this guide. Microsoft’s release notes for KB5089573 say you can choose a custom name for your user folder on the Device Name page during Windows setup. If you skip that option, Windows uses the default folder name. The release notes describe this option only for setup, so an existing account with a name you dislike still needs the steps below.

Advertisement
  • Back up your profile files to an external drive or cloud storage. At minimum, copy Documents, Desktop, Pictures, and Downloads.
  • Create a restore point if System Protection is turned on for your drive. It gives you a way back if something goes wrong.
  • Choose the new folder name now. Keep it short, with no spaces or special characters, and write it down exactly. You type it several times.
  • Save any open work and close your apps.
  • Make sure you have a second administrator account. If you don’t, the next sections show how to create one.

Step 1Sign Out of Your Account

Windows can’t rename a profile folder while the account is signed in, because the folder is in use. Sign out of the account you want to rename.

  1. Select the Start button.
  2. Select your user account picture or name.
  3. Choose Sign out. The lock screen appears.

Don’t sign back in to this account until the final checks.

Advertisement

Step 2Log In to an Administrator Account

Sign in to a different account with administrator rights. Its permissions let you edit the registry and rename another account’s folder.

If you don’t have a second administrator account, create a temporary one. Do this from your main account, before you sign out:

  1. Open Settings Accounts Other users.
  2. Select Add account and follow the prompts. A local account works.
  3. Select the new account in the list, then select Change account type.
  4. Set Account type to Administrator and select OK.
  5. Sign out of your main account, then sign in to the temporary one.

If you already have another administrator account, skip the creation steps and use that one.

Delete the temporary account once you confirm the renamed profile works. Remove it from Settings Accounts Other users.

Advertisement

Step 3Open Windows Terminal

You need Windows Terminal to look up your account’s SID. This step requires administrator privileges.

  1. Right-click the Start button.
  2. Choose Windows Terminal (Admin). On some builds the entry reads Terminal (Admin).
  3. Select Yes if User Account Control asks for permission.

A dark terminal window opens. The title or tab usually says Windows PowerShell.

Step 4Find Your Account’s Unique ID (SID)

A Security Identifier (SID) is a unique code Windows uses to tell user profiles apart. Copy the SID carefully. Editing the wrong profile in the registry can break a different account.

Advertisement
  1. In the terminal window, type powershell "Get-LocalUser | Select-Object -Property @('Name', 'SID')" and press Enter.
  2. Read the list that appears. It has two columns, Name and SID.
  3. Find the row with the username of the account you want to rename.
  4. Write down that SID exactly.

A SID is a long string of numbers and dashes, similar to S-1-5-21-.... To avoid typing mistakes, select the text in the terminal, press Ctrl+C to copy it, and paste it into Notepad.

Editing the Windows Registry

You now edit the Windows Registry, the database where Windows stores its settings, to point Windows to the new location of your user folder. This value controls your user home directory path. Registry Editor doesn’t ask you to confirm changes, so change only the value described here.

Step 5Open Registry Editor

This step requires administrator privileges.

Advertisement
  1. Press Win+R to open the Run box.
  2. Type regedit and press Enter.
  3. Select Yes if a User Account Control window appears.

Registry Editor opens, with a key tree on the left and values on the right.

Step 6Go to the List of User Profiles

Windows stores its list of user profiles in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList. Expand each key in the left pane one by one, or paste that path into the address bar at the top of Registry Editor and press Enter.

  1. Expand the ProfileList key.
  2. Look at the subkeys under it. Each one is named after the SID of an account on your computer.
  3. Select the subkey that matches the SID you wrote down.
Advertisement

The right pane shows the values for that profile.

Registry editor showing Windows user profile folder path for renaming.
Registry editor showing Windows user profile folder path for renaming.
πŸ’‘TipIf you’re not sure which SID is yours, select each SID subkey in turn and check the ProfileImagePath value in the right pane. It shows the current user folder path, like C:\Users\YourOldName. When the path ends with your old folder name, you have the right key. Ignore the shorter SIDs, which belong to system accounts.

Step 7Change the Profile Path

With the correct SID key selected, open the entry that tells Windows where your user folder is.

  1. In the right pane, find the entry named ProfileImagePath.
  2. Double-click ProfileImagePath to open it for editing.
Advertisement

An Edit String window opens with the current path in it.

Step 8Enter the New Folder Name

Change the path so it ends with your new folder name.

  1. In the Edit String window, find the Value data box.
  2. Replace only the old folder name at the end of the path with your new name. Type the full updated path, using a short name without spaces or special characters.
  3. Check the spelling. It must match the name you give the folder in File Explorer.
  4. Select OK to save. The new path appears in the Data column next to the value.
  5. Close Registry Editor and Windows Terminal.

The registry now points to the new folder name. No restart or sign-out is needed yet.

πŸ“ImportantRemember the exact new name and its full path for the next steps. If you change your mind, edit this value back to the old path, as long as you haven’t renamed the folder yet.

Renaming the Actual Folder

The registry has the new path. Now rename the folder on disk so it matches. If the two don’t match when you sign in, Windows can’t load your profile and may sign you in with a temporary one.

Step 9Open File Explorer

  1. Press Win+E to open File Explorer.

Step 10Go to the Users Folder

Open the folder that holds all user profiles. It’s usually here: C:\Users

You see a folder for each account on the PC, plus system folders such as Public.

Step 11Rename the Profile Folder

  1. Find the folder with your old user profile name.
  2. Select it once.
  3. Select the Rename icon on the toolbar, or right-click the folder and choose Rename.

The folder name becomes editable.

Step 12Enter the New Name

The new name must match, letter for letter, the name in the registry path.

  1. Type the exact new name you chose earlier.
  2. Press Enter to confirm.
  3. Select Continue if Windows asks for administrator permission.

The folder now shows the new name in the list, matching the path in the registry.

Tip: If you get an error saying the folder is in use, confirm you are signed out of the account you’re renaming and signed in to an administrator account. If the error persists, restart the PC, sign in directly to the administrator account, and try again before opening any other apps.

Some older programs may still look for your folder under the old name. A symbolic link (often called a symlink, a special shortcut that redirects one path to another) sends requests for the old path to the new folder. This step is more advanced, but it prevents those problems.

Step 13Open Command Prompt as Administrator

This step requires administrator privileges.

  1. Select the Start button and search for cmd.
  2. Right-click the result and select Run as administrator.
  3. Select Yes if User Account Control appears.

A Command Prompt window opens. Its title says Administrator: Command Prompt.

The mklink command creates the link. Its format is mklink /d “📁C:\Users\YourOldFolderName” “📁C:\Users\YourNewFolderName”. The first path is the link you create, which uses the old name. The second path is the real folder, which uses the new name.

For example, if your old folder was C:\Users\Richard2 and your new one is C:\Users\Richard3, the command is: mklink /d "C:\Users\Richard2" "C:\Users\Richard3"

  1. Type the command with your own old and new folder names in place of the placeholders.
  2. Press Enter. A message confirms the symbolic link was created.
  3. Look in your C:\Users folder. A new folder with a small shortcut arrow on its icon appears there.

Any program that uses the old path now reaches your renamed folder.

Warning: If you skip the symbolic link and later find that some apps can’t find your files, reopen Command Prompt as administrator and create the link then.

Final Checks

Sign out of the administrator account, then sign in to your renamed account. Windows should load your desktop and files as normal.

If you see a message about a temporary profile, check that the registry path and the folder name match exactly. Once your desktop loads, run the checks below.

Step 15Check OneDrive Settings (If You Use It)

OneDrive folder paths may still point to the old profile name, which causes syncing errors or missing files. Check them after you sign in.

  1. Select the OneDrive cloud icon in the system tray.
  2. Select the gear icon, then choose Settings.
  3. Go to Settings Account Choose folders and check that your folders are listed and syncing.

If OneDrive still shows errors or points to the old path, go to Settings Account and select Unlink this PC, then sign in again. This doesn’t delete your files in the cloud.

Step 16Rebuild the Windows Search Index

After a rename, search can be slow or show outdated results because the index (the list Windows keeps of your files) still holds the old file locations. Rebuilding the index fixes this.

  1. In the Start menu search, type Indexing Options and open it.
  2. Select the Advanced button.
  3. Under “Troubleshooting,” select the Rebuild button.
  4. Select OK to confirm.

The window shows that indexing is in progress. This can take a while, depending on how many files you have, and your computer may feel slower. You can keep working while it runs.

Summary

Once your desktop, apps, and OneDrive work with the new folder name, delete any temporary administrator account you created. If the rename goes wrong before you rename the folder in File Explorer, edit the ProfileImagePath value back to the old path. On your next new PC, choose a custom user folder name on the Device Name page during setup, as update KB5089573 allows, and skip the rename.

Frequently asked questions

How to rename user folder Windows 11?

Sign out of your account and sign in to a different administrator account. Then change the ProfileImagePath value for your profile in Registry Editor to the new folder name. Finally, rename the folder in 📁C:\Users\ using File Explorer. Renaming the folder alone breaks the account, so both steps are needed.

How to change user folder name on Windows 11?

Edit the ProfileImagePath value for your account in Registry Editor, then rename the matching folder in 📁C:\Users\. Both names must be identical. Sign out of the account first, and make the change from an administrator account. Your account name and Microsoft account stay the same.

How to change Windows home folder username?

To change the home folder username, rename the folder under 📁C:\Users\ rather than the account itself. Update ProfileImagePath in Registry Editor so it ends with the new name, then rename the folder in File Explorer while signed in as an administrator. Your sign-in name does not change.

How to change the users folder in Windows 11, it has taken some string?

Windows 11 builds the Users folder name from the first five letters of your Microsoft account name, which can leave an unwanted name. To change it, edit ProfileImagePath in Registry Editor, then rename the folder under 📁C:\Users\ to match. Sign out first, use an administrator account, and back up your files before you start.

How to rename the profile folder in Windows 11?

Sign in as a different administrator, change the ProfileImagePath value for your profile in Registry Editor, and then rename the folder in 📁C:\Users\ using File Explorer. The two names must match exactly. Back up your files first, because a mistake can stop your profile from loading.

How to rename Windows 11 home folder?

To rename the home folder in Windows 11, rename the account's folder under 📁C:\Users\, the folder that holds your documents and app settings. First update the ProfileImagePath value in Registry Editor, then rename the folder in File Explorer to the same name. Your account name stays the same.

Still have a question?

Answered by AI from this guide. Good questions may be added to this page β€” please don't include personal details.

Tags: #Windows 11

Did this guide fix your problem?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.

Advertisement

0 Comments

  • Unable to open the folders on This PC. Getting an error saying that the location is not available. How should I proceed?

    Reply
  • Won’t allow the folder name change, says it’s in use.

    Reply
    • Hi Chris,

      you need to use an different account than this one which you want to rename. Use netplwiz.exe to create a new user with admin rights, log off the account you want to change and use the created one instead. The folder of the account you logged in with is always in use and cannot be edited

      Reply
    • Devi riavviare il pc e eseguire il login come amministratore e riprovare. A me ha funzionato. Poi se usi oneDrive una volta fatto il login come utente apri l’app onedrive e imposta la nuova path utente.

      Reply
  • For some reason in Windows 11, following this, while it works there are two problems.

    One drive brings an error in each login that it cannot find the old folder.
    I cannot pin anything to taskbar

    Reply
  • Tried it in Windows 11, but search in settings is no longer working, cannot search anything in windows settings

    Reply
    • That is totally correct, yet all these posts fail to mention that and now you are stuck!! A lot of these so called guru-charlatan just copy from one site some info, yet don’t have clue or never test this themselves.

      Reply
  • Thank you very much. It works.

    Reply
  • Joseph Reda

    As soon as I did this in same order my windows icon did not work. I tried to go back and lost windows .. I tried to restore and nothing is working.. even I created another admin user before I started this and its not working either .. this is crazy !!

    Reply
  • don’t do this on windows 11 if you’re logged in with a Microsoft account!!

    Reply
    • I second that! These instructions will likely make some of your programs not work.

      Reply
  • did not do the make a new account and i did it all in the account i want the folder to rename and now its stuck at preparing windows

    Reply
  • Thanks for a great and straightforward set of instructions. That Microsoft would make it so hard to make such a simple change is mind-boggling. I guess there must be some security reason, but obfuscation has never been a useful security strategy!

    Reply
  • This broke my windows – cannot open start menu and the windows 11 context menu broke.
    Don’t know if its related to the account being a Microsoft account – but no other way to restore but to reinstall windows.

    Honestly, don’t fucking do this.

    Reply
    • You went into safe made, so you can undo the steps to rename back to the original name it was and you will be back to the same condition.

      Reply
  • This worked for me, but later on none of the already installed apps can be updated/uninstalled as it looks at the path with the old name and errors out.

    Reply
  • Baskar B

    Not working. Rename option not enabled.

    Reply
  • I keep getting the error: Cannot edit ProfileImagePath: Error writing the value’s new contents.

    I’m logged out of my main account, logged into a local account I created. I opened command prompt with administrator access. Not really sure what I’m doing wrong here.

    Reply
  • This article caused more damage than the problem I was trying to solve.

    Maybe it works for some people, but if like me, your PC was preinstalled with Windows 11, then chances are your desktop and environment are actually romaing, and pointing to OneDrive directories.

    So after going through all the steps.. creating an admin user in order to rename original user, logging back in as original user, and then opening explorer it complained that the Desktop folder didnt exist, every single time I opened it.

    Luckily you can fix this. Open regedit, and navigate to..

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders

    Now modify each value to replace each key where the value contains user1, and replace that bit with your new username

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked * How we handle comments