How to Rename User Profile Folder in Windows 11
Renaming a user profile folder in Windows 11 changes the main 📁C:\
Fixing this folder name takes a few careful steps in both the Registry Editor and the Advanced System Properties window because simply typing a new name in File Explorer breaks your account. You need administrator rights on your PC to complete this process safely without losing access to your files.
Log in with a different administrator account. Open Command Prompt to find your account SID, then use Registry Editor to update the ProfileImagePath to your new desired folder name. Finally, rename the actual user folder in File Explorer to match.
Getting Ready to Rename
Follow these steps before you start changing anything to make the process smoother.
Step 1Sign Out of Your Account
You can’t change a folder that Windows is currently using. So, first, log out of the account you want to rename.
- Click the Start button.
- Click your user account picture or name.
- Choose Sign out.
Step 2Log In to an Administrator Account
Sign in to a different account with administrator rights so you have the permissions needed to rename user home folder paths. If you lack a secondary admin account, create one temporarily through Settings before you begin this process. Remember to delete this temporary administrator account afterward once your main profile folder name is successfully updated.
Create a temporary admin account now if you do not have a secondary one ready. Remember to delete this temporary administrator account afterward if you no longer need the temporary administrator account.
Step 3Open Windows Terminal
We need a special tool to get some information about your account. Windows Terminal is the best way to do this.
- Right-click the Start button.
- Choose Windows Terminal (Admin). This gives it the needed permissions.
Step 4Find Your Account's Unique ID (SID)
Find your Security Identifier (SID), which is a unique code Windows uses to tell user profiles apart, by using Windows Terminal. Open Windows Terminal and type powershell "Get-LocalUser | Select-Object -Property @('Name', 'SID')" to view a complete list of all local accounts and their corresponding SIDs. Locate the SID that matches the exact username you want to change.
This will show you a list of accounts and their SIDs. Find the username of the account you want to rename and write down its SID. It will look like a long mix of numbers and dashes, similar to S-1-5-21-....
If you use the wrong one, it could cause serious problems.
Editing the Windows Registry
Now, let's move on to editing the Windows Registry. Here, we'll inform Windows about the new name for your user folder. The Registry Editor is a powerful tool, so be very careful.
Step 5Open Registry Editor
Press the Windows key + R on your keyboard. Type regedit and press Enter. Click Yes if a security window pops up.
Step 6Go to the List of User Profiles
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList inside the Registry Editor to access the directory where Windows stores active user profiles. Expand this ProfileList key to view subfolders named after the unique SIDs of every account on your computer. Click the specific folder that matches the SID you located in the previous step.
Inside the ProfileList folder, you'll see several folders named with those long SIDs. Click on the folder that matches the SID you wrote down earlier.

Then, look at the ProfileImagePath value in the right-hand box. This shows the current user folder name, like C:\Users\YourOldName.
Step 7Change the Profile Path
After clicking on the correct SID folder, look to the right side. You should see an entry named ProfileImagePath. This tells Windows where your user folder is. Double-click on ProfileImagePath to change it.
Step 8Enter the New Folder Name
Change the profile image path in the registry by editing the ProfileImagePath value to show your desired new folder name. Double-click the ProfileImagePath entry inside your account's SID folder and type the full updated path using a concise name without spaces or special characters. Click OK to save the registry modification before you close the editor.
Important: Use a simple name without unusual characters. Remember the exact new name and its full path for the next steps.
Click OK. You can now close the Registry Editor and Windows Terminal.
Renaming the Actual Folder
We've told Windows the new path in the registry. Now, we need to rename the folder on your computer to match.
Step 9Open File Explorer
Press Windows key + E to open File Explorer.
Step 10Go to the Users Folder
In File Explorer, go to the main folder where user profiles are kept. It's usually here:C:\Users
Step 11Rename the Profile Folder
Find the folder with your *old* user profile name. Click on it once to select it. Then, click the Rename option at the top, or right-click the folder and choose Rename.
Step 12Enter the New Name
Rename user home folder directories directly in File Explorer so the physical directory name matches the new path you just set in the registry. Open File Explorer, go to C:\Users, right-click your old user folder, select Rename, and type the exact new name you chose earlier. Press Enter on your keyboard to confirm the change.
Press Enter.
Tip: If you get an error saying the folder is in use, make sure you're signed out of the account you're renaming and logged into an administrator account.
Creating a Shortcut (Optional but Recommended)
This next step is a bit more advanced but helps prevent problems. Some older programs might still look for your folder using the old name. A symbolic link, often called a symlink, functions like an intelligent shortcut, automatically redirecting requests to the new name.
Step 13Open Command Prompt as Administrator
Open the Command Prompt with administrator privileges. Search for cmd in the Start menu, right-click the result, and then select Run as administrator.
Step 14Create the Symbolic Link
Create a symbolic link using Command Prompt to ensure Windows and your installed apps can still locate your files after you rename user home folder directories. Open Command Prompt as an administrator and type mklink /d "C:\Users\YourOldFolderName" "C:\Users\YourNewFolderName" while replacing the placeholder text with your actual old and new folder names. Press Enter to execute the command and bridge the old path to the new one.
For example, if your old folder was C:\Users\Richard2 and your new one is C:\Users\Richard3, the command would be:mklink /d "C:\Users\Richard2" "C:\Users\Richard3"
Press Enter. If it works, you'll see a message saying the link was created. You'll see a new folder icon in your C:\Users folder that looks like a shortcut.
Warning: If you skip creating the symbolic link and later find some apps cannot find your files, you might need to return to the registry editor and create this symbolic link to fix the problem.
Final Checks
You're almost done! Here are a couple more things to make sure everything works with your new folder name.
Step 15Check OneDrive Settings (If You Use It)
Update OneDrive settings after you rename user home folder paths to prevent syncing errors and broken file locations. Sign back into your renamed account, open OneDrive from the system tray, and check if the cloud storage folder location needs to be updated to match your new profile path by going to Settings Account Choose folders
Step 16Rebuild the Windows Search Index
Rebuild the Windows search index to fix slow searches and outdated file results that happen after you rename user home folder directories. Type Indexing Options in the Start menu search bar, open the control panel applet, click Advanced, and select Rebuild under the Troubleshooting section. Wait for Windows to recreate the search database so it indexes your files at their new location.
- In the Start menu search, type
Indexing Optionsand open it. - Click the Advanced button.
- Under "Troubleshooting," click the Rebuild button.
This might take a while depending on how many files you have. Your computer might seem a bit slower during this process.
Summary
Rename user home folder directories safely in Windows 11 by signing into an administrator account, finding your account SID, updating the ProfileImagePath registry key, renaming the folder in File Explorer, and creating a symbolic link. Complete the process by updating OneDrive and rebuilding your Windows search index so all apps and files function normally.
Was this guide helpful?
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