Windows

How to Change Name of User Profile Folder in Windows 11

Richard
Written by
Richard
Jul 22, 2021 Updated Apr 28, 2026 3 min read

This guide will help you rename your user home folder in Windows 11 so it matches your current account name.

Why This Matters

When you set up a computer, Windows creates a folder for your files in C:\Users. If you change your account name later, this folder keeps its old name. Renaming it keeps your computer organized and makes it easier to find your files.

What Happens When You Finish

Once you complete these steps, your user folder will have a clean, updated name that matches your account. Your computer will correctly point to this new location for all your files and settings.

Important: You cannot rename a folder while you are logged into that account. You must log in with a different administrator account to make these changes.

If you have not renamed your user account yet, grant it administrator privileges first. If you need to enable the built-in administrator account to perform these steps, How to Enable the Administrator in Windows 11.

Step 1: Open Command Prompt

Log in with your administrator account. Click the Start button, type “Command Prompt,” and open the app.

Command Prompt with administrator privileges in Windows 11

Step 2: Find the Account SID

Every account has a unique ID number called a SID. You need this to tell the computer which folder to change. In the Command Prompt window, type this command and press Enter:

💻Code
wmic useraccount get name,SID

You will see a list that looks like this:Name SID
DefaultAccount S-1-5-21-2007855691-582224021-1368697043-503
defaultuser0 S-1-5-21-2007855691-582224021-1368697043-1000
LocalAdmin S-1-5-21-2007855691-582224021-1368697043-500
JaneDoe S-1-5-21-2007855691-582224021-1368697043-504
TestUser S-1-5-21-3044698505-590223214-3122486089-1001

Find your account name in the list and write down the SID string next to it.

Step 3: Open Registry Editor

⚠️ This step requires admin privileges.

Click Start, type “Registry Editor,” and open it.

Registry Editor interface in Windows 11

Step 4: Navigate to the Profile Path

In the Registry Editor, use the left-hand menu to go to this exact location:

🗝️Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

Look for the folder that matches the SID you found in Step 2 and click on it.

Steps to rename user home folder in Windows 11

Step 5: Update the Profile Path

⚠️ This step requires admin privileges.

Find the file named “ProfileImagePath” on the right side. Right-click it and choose “Modify.” Change the path to your new desired folder name. For example, change it from C:\Users\TestUser to C:\Users\NewName. Click OK to save.

Renaming home folder process in Windows 11

Step 6: Rename the Folder in onedrive-in-windows-11/" class="sal-link" rel="noopener" target="_blank" data-sal-id="25065">File Explorer

Open File Explorer and go to the C:\Users folder. Find your old home folder, right-click it, and select “Rename.” Type the new name to match the one you used in Step 5.

File Explorer showing folder renaming in Windows 11
New user home folder name in Windows 11

Step 7: Check OneDrive and Other Services

If you use cloud storage like OneDrive, open its settings to make sure it is looking at the new folder location. This ensures your files continue to sync without errors.

Step 8: Finish Up

Close all windows. Log out of the administrator account and sign back into your regular account. If you enabled the built-in administrator account just for this task, you should log back in as administrator to disable it again.

Summary

By following these steps, you have successfully updated your user folder name to match your account. Here is a quick recap of what you did:

  • Logged in with a separate administrator account.
  • Used Command Prompt to identify your unique account SID.
  • Updated the Windows Registry to point to the new folder name.
  • Renamed the physical folder in File Explorer.
  • Verified that your cloud services are synced to the new location.

Your system is now clean, consistent, and organized.

Was this guide helpful?

Tags: #Windows 11
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

0 responses to “How to Change Name of User Profile Folder in Windows 11”

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

    • 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.

  2. 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

    • 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.

  3. 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 !!

  4. 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

  5. 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!

  6. 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.

  7. 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.

  8. 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.

  9. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version