How to rename user folder in Windows 10
In Windows 10 your user folder stored in C:\Users may have some strange shortened name when you use Microsoft account to login. In this tutorial there are ways to rename user folder to whatever you’d like. There are 2 methods described: first is for Windows 10 Pro and Enterprise and the second one is for Windows 10 home versions.
How to change the name of user folder in Windows 10 Pro and Enterprise
First, you need to create administrator account other than the one you’re renaming the folder for. The easiest way to do so is to enable existing hidden Administrator account in Windows 10:
- Right-click Start button and run Command Prompt (admin) from context menu
- In Command Prompt enter: net user Administrator /active:yes and hit Enter.
- Once finished, close Command Prompt and restart your PC.
- On Login screen you’ll see new Administrator account available. Log into it. No password is required by default.
- After logged in, right-click start button and run “Computer Management”
- Open “Local Users and Groups” — “Users” in computer management, then right-click on the user you’re going to rename a folder for. Choose “rename” from context menu and set desired name for it.
- Exit computer management console then go to C:\Users\ and rename your user folder to the same name you did previously.
- Hit Windows+R buttons on your keyboard and enter regedit into Run dialog box and hit Enter.
- Go to HKEY_LOCAL_MACHINE\ SOFTWARE\ Microsoft\ Windows NT\ CurrentVersion\ ProfileList entry in Windows 10 registry and find subkey for your user account (look for ProfileImagePath value in the right pane).
- Double-click ProfileImagePath key and change its value to the new folder path.
That’s it. Now close the registry editor, logout of Administrator account and log in with your default account. The user folder now renamed and works as it did before.
To disable no longer necessary Admin account use following command in elevated command prompt: net user Administrator /active:no
Renaming user folder in Windows 10 Home
For Windows 10 home versions the steps will be almost the same as described above except the following:
- You shouldn’t take steps 5 and 6.
- After step 10 in registry editor’s left pane select “Computer” then go to menu: Edit — Find and search for old user folder name in the whole registry, changing it to the new one where found.
That should work fine.