How to Rename User Profile Folder in Windows 11
- 3 steps
- Needs administrator rights
- Includes a restart or sign-out
Renaming the user profile folder changes the folder name under 📁C:\
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.
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:\
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.
- 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.
- Select the Start button.
- Select your user account picture or name.
- Choose Sign out. The lock screen appears.
Don’t sign back in to this account until the final checks.
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:
- Open Settings Accounts Other users.
- Select Add account and follow the prompts. A local account works.
- Select the new account in the list, then select Change account type.
- Set Account type to Administrator and select OK.
- 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.
Step 3Open Windows Terminal
You need Windows Terminal to look up your account’s SID. This step requires administrator privileges.
- Right-click the Start button.
- Choose Windows Terminal (Admin). On some builds the entry reads Terminal (Admin).
- 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.
- In the terminal window, type
powershell "Get-LocalUser | Select-Object -Property @('Name', 'SID')"and press Enter. - Read the list that appears. It has two columns, Name and SID.
- Find the row with the username of the account you want to rename.
- 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.
- Press Win+R to open the Run box.
- Type
regeditand press Enter. - 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.
- Expand the
ProfileListkey. - Look at the subkeys under it. Each one is named after the SID of an account on your computer.
- Select the subkey that matches the SID you wrote down.
The right pane shows the values for that profile.

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.
- In the right pane, find the entry named
ProfileImagePath. - Double-click
ProfileImagePathto open it for editing.
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.
- In the Edit String window, find the Value data box.
- 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.
- Check the spelling. It must match the name you give the folder in File Explorer.
- Select OK to save. The new path appears in the Data column next to the value.
- Close Registry Editor and Windows Terminal.
The registry now points to the new folder name. No restart or sign-out is needed 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
- 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
- Find the folder with your old user profile name.
- Select it once.
- 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.
- Type the exact new name you chose earlier.
- Press Enter to confirm.
- 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.
Creating a Shortcut (Optional but Recommended)
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.
- Select the Start button and search for
cmd. - Right-click the result and select Run as administrator.
- Select Yes if User Account Control appears.
A Command Prompt window opens. Its title says Administrator: Command Prompt.
Step 14Create the Symbolic Link
The mklink command creates the link. Its format is mklink /d “📁C:\
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"
- Type the command with your own old and new folder names in place of the placeholders.
- Press Enter. A message confirms the symbolic link was created.
- Look in your
C:\Usersfolder. 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.
- Select the OneDrive cloud icon in the system tray.
- Select the gear icon, then choose Settings.
- 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.
- In the Start menu search, type
Indexing Optionsand open it. - Select the Advanced button.
- Under “Troubleshooting,” select the Rebuild button.
- 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:\
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:\
How to change Windows home folder username?
To change the home folder username, rename the folder under 📁C:\
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:\
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:\
How to rename Windows 11 home folder?
To rename the home folder in Windows 11, rename the account's folder under 📁C:\
Still have a question?
Answered by AI from this guide. Good questions may be added to this page β please don't include personal details.
Did this guide fix your problem?
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.
Unable to open the folders on This PC. Getting an error saying that the location is not available. How should I proceed?
Won’t allow the folder name change, says it’s in use.
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
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.
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
Tried it in Windows 11, but search in settings is no longer working, cannot search anything in windows settings
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.
Thank you very much. It works.
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 !!
don’t do this on windows 11 if you’re logged in with a Microsoft account!!
I second that! These instructions will likely make some of your programs not work.
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
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!
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.
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.
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.
Not working. Rename option not enabled.
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.
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