How to Change User Account and Folder Name in Windows 10

A few days ago I just bought a new laptop and set up Windows 10 Home on it, rather than creating a local user account first, I decided to create and login directly with my Microsoft Account.

After few days of using it and try to re-arrange my files on the new system then I Realize Windows creating your username and home folder name with your email name. and it kinda bugs me out.

As you know, on Windows if you change your user account name it won't automatically rename your Home Folder name as well, so instead of going through the hassle to create other local users and move everything there (and potentially set up everything again from the start) I decide to take this shortcut

Activate Master Administrator Account

Because Windows 10 won't let us rename a directory if it was still in use by the user, we will try to make all changes from the Master Administrator account. this user account was not enabled by default, so we need to activate it first.

Open your command line as Administrator and run this command to activate Master Administrator Account net user Administrator /active:yes

Activate Master Administrator Account

after it's done, Restart your computer and login directly to Administrator Account

Change User Folder Name

After you logged in to the Master Administrator account you can now directly rename the public Folder name from File Explorer. in case you didn't know it will be located in C:\Users

as for my case, my home folder was previously named perso (autogenerated from my Microsoft account email address ) and now I'm changing it to RizkiePratama.

change your user folder data name

It's not done yet, after we change de folder name, we need to tell Windows that your user account has a new name for its user folder. To do that we will need to modify some Windows Registry.

Open up Registry Editor, you can press Windows + R to show the Run Box and type regedit

Execute regedit from the Run Box

on your Registry Editor windows, navigate to the following Registry Address HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

on the following Registry Address, you need to find which SID that your user account using. the easiest way to tell is to check ProfileImagePath value because that's the one we will change

Modify Value in Registry Editor

as you can see from the example above, I can find SID for my user account because one of the ProfileImagePath containing path to my old user folder ( C:\Users\perso), now what we need to do is just replace the value of the old user folder path with the new one as shown with the image above.

Change User Account Name

If your goal is only to change the user folder name, we're done, you can skip to Next Step to disable again the Master Administrator account.

But if you want to change the user account name as well we can now open Run Box again with Windows + R and run netplwiz. The step is quite straightforward, click on your user account and just rename it and save them.

Here in my case, my user account was previously named [email protected] and now i Rename it to RizkiePratama

Disable Master Administrator Account

Because leaving Master Administrator account would be bad for security, we will need to disable again the Master Administrator after you're done with everything you need to do from that account.

After you are done with everything you need, we now can restart again the computer and login back in to our User Account. same as before, we can open Command-Line again as administrator and run this command net user Administrator /active:no

Disable Master Administrator Account

All Done.

a Hobbyist Game Dev that make a Living as Enginering Operations on Playing some Apex Legends on his spare time and really love to drink Boba Milk and eat Cakes.