Rename Windows Home Folder

The examples given change the user’s home folder from Michael to John.

In case of mistakes and recover data you may have missed make an image backup. Additionally create a restore point to backup the registry.

Method 1 – create new user and delete the old one

The recommended approach. It’s a bit sledge-hammer but is reliable and has the benefit of cleaning up the user profile.

  1. Create a new account called John using Control Panel or Windows 10 PC Settings > Family & other users > Add someone else to the PC
  2. In Control Panel > User Accounts > Manage another account > Change the account type and change to Administrator
  3. Sign out and login as John – this will take a while as the home folder is also created.
  4. Launch 2 copies of Windows Explorer and using Task View right-click one copy and select snap left. The click the other to snap right  . This way you quickly end up with the 2 File Explorer windows side by side.
  5. In the left File Explorer window navigate to John’s home folder
  6. In the right File Explorer window navigate to Michael’s home folder and click continue to allow access to this folder
  7. Now one by one select the sub-folders, e.g. Documents in the left and right windows and drag & drop (move) the contents from right (Michael) to left (John’s sub-folder)
  8. Omit the following folders: Searches; Saved games; Links  as it is best to let these be populated themselves through use
  9. In File Explorer show Hidden folders to reveal the AppData folders.
  10. From Michael’s AppData move any required subfolders to John’s AppData subfolder, e.g. AppData > Local > Microsoft > Outlook local mail data
  11. In File Explorer Hide hidden folders again
  12. Once all the data has been moved delete the old account in Control Panel  > User Accounts > Manage another account > Michael > Delete the account > Delete Files to also delete the old account home folder

Method 2 – rename account name and edit registry to rename the home folder

  1. Login with an administrator account
  2. From Command Prompt (Admin) run “net user administrator /Active:yes” to activate the Administrator account
  3. Sign out
  4. Login as Administrator and make the following changes:
    1. If you have Onedrive unlink it from the PC as follows:
      1. Select the OneDrive cloud icon in the Windows taskbar
      2. Select OneDrive Help and Settings iconHelp & Settings
      3. In Settings, select Account, and then select Unlink this PC
    2. Change the account name by launching Control Panel > user Accounts > Manage Accounts > Michael > Change Account name and enter John as the new account name and click Change Name
    3. Run Regedit to change the Profile Directory name
      1. Navigate to HLKM\Software\Microsoft\Windows NT\CurrentVersion\ProfileList\
      2. Rename the S1-xxxxxxx key containing the ProfileDirectory data user path called Michael to John
    4. Using Windows Explorer rename the home C:\Users\Michael to John
    5. Download Advanced Regedit from https://sourceforge.net/projects/regedt33/
    6. Run Regedit33.exe and use Edit > Search and Replace menu option to replace all occurrences of Michael to John
    7. Use the Edit > Find option to ensure there are no more occurrences of Michael
    8. Sign out
  5. Login with the administrator account in step 1.
  6. From Command Prompt (Admin) run “net user administrator /Active:no” to deactivate the Administrator account
  7. Optionally to clean up remove the Administrator profile home folder as follows:
    1. Select System > Advanced System Settings > User Profiles > Settings > [ComputerName]\Administrator note: [ComputerName] is your PC name
    2. Click Delete and Yes to confirm
  8. If you have Onedrive reconnect it to the PC as follows:
    1. In Onedrive Select OneDrive Help and Settings iconHelp & Settings
    2. In Settings, select Account, and then select Add your account
    3. When OneDrive Setup starts, enter your new account, and then select Sign in
    4. After sign-in, configure the OneDrive folder location using the new Home folder location

Note: step 4 > 2 can be omitted as it is covered in step 4 >5 and is just shown to highlight the minimum registry change

Leave a Reply

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

Fill out comment
Enter name