change username in windows 11

Alan Gant 0 Reputation points
2025-06-20T20:48:13.0633333+00:00

how can i change the username in windows 11. this is the folder name under \Users .

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2025-06-20T22:23:09.0466667+00:00

    To change the user folder name under C:\Users\ in Windows 11, you'll need to go beyond just changing the display name. Windows doesn't natively support renaming the user folder through normal settings because it can break system references. But you can do it manually, with care.

    Make sure that before you begin

    • Back up your data.
    • You'll need to use a local administrator account (not the one you're renaming).
    1. Create a new temporary admin account
    2. Press Win + I → Accounts → Other users → Add account.
    3. Choose "I don't have this person's sign-in information", then "Add a user without a Microsoft account".
    4. Give it a name (e.g., TempAdmin) and assign a strong password.
    5. Set the account type to Administrator.
    6. Log in with the temporary admin account
    • Log out of your main account.
    • Log in with TempAdmin.
    1. Rename the user folder
    2. Go to C:\Users\ and rename the target folder to your desired name. Example: JohnDoeJohnSmith.
    3. Edit the registry
    4. Press Win + R → type regedit → press Enter.
    5. Navigate to:
         HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
      
    6. Inside, you'll see several subkeys like S-1-5-21-.... Click each one and look at the ProfileImagePath string.
    7. Find the one that points to the old folder name (e.g., C:\Users\JohnDoe).
    8. Double-click ProfileImagePath and change it to the new path, e.g.:
         C:\Users\JohnSmith
      
    9. Restart and log in with the renamed account
    • Restart your PC.
    • Log in with your original user account.
    • Verify everything works correctly.

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.