Windows 11 Community

Cover image for How to Change User Name and Account Name in Windows 11?
Muhammed Cetin
Muhammed Cetin

Posted on • Updated on

How to Change User Name and Account Name in Windows 11?

In this tutorial, I'll show you how to change your User Name, also known as the User Folder Name, and Account Name on Windows 11 without being too wordy or going into unnecessary details. 😊 🤞

However, if you're looking to rename your PC, in other words changing your PC's hostname instead of changing your User Name or Account Name, you need to follow the tutorial in this link.

Table of Contents

  1. Before Start
  2. How to Change Your Account Name and User Name?
  3. Conclusion

Before Start

Account Name and User Name are different things. While Account Name means your full name appearing when Windows 11 starts or at the bottom of Start Menu, User Name or nickname is your User Folder Name under C:\Users directory.

For example, as you can see below, while my account name is "Muhammed Cetin", my user name is just "muham".

If you're ready, let's start to change account and user (folder) names.


How to Change Your Account Name and User Name?

Both Account Name and User Name are changed in the same window. However, to change User Name (user folder name), also need to change ProfileImagePath registry key.

Thus, if you want to change only Account Name, in addition to the common steps below, you just need to follow the 4 steps under the Changing Account (Full) Name title. However, if you want to change only User Name, follow the 25 steps under the Changing User (Folder) Name title after performing the common steps. To change both of them, follow all steps respectively.

Changing Account Name and User Name share the first three steps:

  1. Press Windows + R combination on your keyboard to open Run window. Then type netplwiz and click OK.
    netplwiz

  2. You'll see the users in your PC in the Users for this computer list. Select yours, then click Properties button. If the button were disabled, Users must enter a user name and password to use this computer option were unchecked. Check it. Then, click Properties.
    User Accounts

  3. You see your User Name, I mean your User Folder Name, and Full Name, also called Account Name.
    User General Properties


Changing Account (Full) Name

  1. To change only Full name (Account Name), change it on this window, then click OK.

  2. Click OK again.
    Confirm Renaming

  3. You'll see an alert saying, "_Do you want to sign out now?" in summary at this stage. Click Yes to sign out. Then sign in again.
    Sign out to activate renaming

  4. You'll see your Account Name has been changed. 👏


Changing User (Folder) Name

  1. Type whatever you want as User Name. Click OK.

  2. Because User Name and User Folder Name are the same things, we also need to change User Folder Name to inform our programs where their user data is stored. We'll perform these steps on Windows Registry, also known as Regedit. To do that, we need the built-in administrator account of Windows 11.

  3. In Windows 11, the built-in administrator account is disabled as default. So, if you've not enabled it before, you need to do that now.

  4. To do that, press Windows + R keys and type and run netplwiz again.
    netplwiz

  5. Click Advanced tab, then Advanced button in this tab.
    Advanced Details of User Accounts

  6. You'll see Local Users and Groups (Local) window. Double-click on Users folder, then double-click on Administrator account that I've marked in the image below.
    Local Users and Groups

  7. Account is disabled option is checked, which means your built-in administrator account is disabled. Uncheck it, then click OK.
    Built-in Administrator Properties

  8. Close the previous window that I've mentioned in the 6th step.

  9. Now, your built-in administrator account is enabled.

  10. Open Start Menu and right-click on your Account Name at the bottom. Then click on Administrator to switch the signed-in account. If you've not signed in to the administrator account before, Windows 11 will prepare it from scratch for you. This preparation doesn't affect your main account. Please wait.
    Switch User Account to Built-in Administrator Account

  11. Now, you're in the built-in administrator account. We'll change your main account's username (in my case, it is muham as I said before) completely here.

  12. Before start, you need to log off from the main account. To do that, press Windows + R on the keyboard, and type cmd, then press Enter. This command allows you to open Windows Command Line. Since we've already signed in with the built-in Administrator account, you don't need to open it as an Administrator.
    Open Windows Command Line

  13. Type query session and press Enter to see the main account's ID.
    query session

  14. Type logoff yourIdNumber and Enter. As you can see below, my main account's ID number is 2, and I've typed logoff 2 to log off my main account entirely.
    logoff from the user

  15. Open File Explorer and go to This PC > Local Disk (C:) > Users directory. You'll see your main account's folder there. Rename it by selecting then pressing F2 on your keyboard to your new username.
    Renameing the user folder

  16. For example, my new username will be ce7in, so I've renamed my account's folder from muham to ce7in.
    User Folder has been renamed

  17. Open Start Menu and type Regedit, then click on Registry Editor result.
    Opening Registry Editor

  18. On Registry Editor, there is an address bar like the one in File Explorer; click on and paste Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList address there. Then press Enter and go to ProfileList folder directly.
    Go to ProfileList folder

  19. Right-click on ProfileList folder and click Find.
    Searching in ProfileList

  20. Search for your old User Name. It is muham for me as you know.
    Searching for the old User Name

  21. Registry Editor will find ProfileImagePath key containing your User Folder path. Right-click on it and click Modify.
    Modifying ProfileImagePath

  22. Change Value data field from the old User Name (muham) to the new one (ce7in).
    Old User Folder Name

  23. The final result will be like the one below. Then click OK.
    New User Folder Name

  24. Close all active windows and restart your PC.

  25. After restarting, your PC might automatically sign in to the built-in Administrator account because it was the last signed-in user.

  26. To sign in to your main account, open Start Menu and right-click on the Administrator account, then click on your main account name as we've performed before.

  27. That's all! ✌️


Conclusion

Your Account Name, User Name and User Folder Name have been changed successfully. Since some of your apps might look for their user data in the old User Folder path, you might encounter some errors. However, most apps and programs will recognize the new path for user data automatically.

Finally, please feel free to ask for help using the discussion form below if you run into a problem. I'm here for you. 💗

Discussion (4)

Collapse
neeraj profile image
Neeraj Pahadiya • Edited

Hey Muhammed, I have been trying to change my pc user name and I'm actually stuck at the sixth step of "Changing User (Folder) Name". I'm not getting the same "Local users and Group(local)" window that you are getting above. I am attaching my window's screenshot with this message for your reference. Require urgent help on this because I am stuck at this for some time. Thanks in advance!
This is the screenshot :- s3.us-west-1.amazonaws.com/answr.t...

Collapse
ce7in profile image
Muhammed Cetin Author • Edited

Hey Neeraj,

I think you use Windows 11 Home. If I'm right you cannot use Local Users and Groups because it is not included in your Windows version.

Alternatively, you can follow the steps below to enable the Built-in Administrator account:

  1. Open the Command Line as an Administrator (Start Menu > CMD > Right Click > Run as administrator).
  2. Enter this command: net user administrator /active:yes
  3. If you see a message like that "The command completed successfully.", it means your Built-in Admin account is enabled.
  4. You can continue on the 10th step.
Collapse
curomac profile image
Charles Howarth

Great tutorial. Worked like a charm. Couple comments from my Experience:
After you rename the User folder (name) and before signing in as Admin, I recommend a reboot. Something still thinks Windows is accessing the old name and errors.

Apps I had to repoint to profile: Blizzard Games, One Drive(uninstall reinstall worked perfect) and Google Drive needed to be repointed. Other than it went well.

Thank you.

Collapse
surfacetension profile image
Barnaby

Hi Muhammed, thank you for this tutorial! It was really helpful and well-written. I too was using Windows 11 Home, so I used your comment to replace step 6 of "Changing User (Folder) Name". Also, for step 13, "query" wasn't recognized as a command by my terminal, so I restarted the computer to force the logoff instead.