This guide explains how to rename Windows profile folders using a backup Administrator account. The steps include changing the folder name, adjusting the profile path in the Registry, and creating a symbolic link so that the old path still points to the new folder.
Notes: Changing the profile folder or Registry can cause Windows and applications to fail to find files if done incorrectly. Back up important data before starting.
Step 1: Activate the built-in Administrator account
To rename the main user folder, you need to use a backup Administrator account.
If the “Yes” button is still available
- Click Start, type
cmd. - Right click Command Prompt, then select Run as administrator.
- Type the following command, then press Enter:
net user administrator /active:yes
If the "Yes" button is no longer available
- Enter Windows Recovery Environment (WinRE) via Settings → System → Recovery → Advanced Startup → Restart Now.
- On the blue screen, select Troubleshoot → Advanced Options → Command Prompt.
- In the WinRE Command Prompt, type the following commands in sequence:
C: cd windows\system32 ren magnify.exe magnify.bak copy cmd.exe magnify.exe - Close Command Prompt and select it Continue to return to the log-in screen.
- On the lock screen, click the icon Accessibility in the bottom right corner, then select Magnifier.
- In the Command Prompt window that opens, type:
net user administrator /active:yes - Press Enter, then restart the laptop.
Step 2: Rename the main user account and folder
- After restart, select account Administrators at the log-in and login screen.
- Open File Explorer, then go to
C:\Users\. - Right click the old folder (example:
GnProj), select Rename, then change the name (example:Lt7). - Press Windows + R, type
regedit, then press Enter. - In Registry Editor, open:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList - Select the long folder that begins with
S-1-5-21-.... On the right, searchProfileImagePathwhose value still points to the old folder. - Double click
ProfileImagePath, change the path to a new folder (example:C:\Users\Lt7), then click OK.
Step 3: Create a symbolic link for the old path
- Still from the backup Administrator account, open Command Prompt as administrator.
- Type the following command. Change
GnProjwith the old folder name andLt7with the new folder name:mklink /d C:\Users\GnProj C:\Users\Lt7 - Press Enter. The system will display a message that the symbolic link was successfully created.
- Sign out or restart the laptop.
Step 4: Log back in and disable backup Administrator
- At the log-in screen, log back into your main account using your regular PIN or password.
- To disable the backup Administrator account, open Command Prompt (Admin), then run:
net user administrator /active:no - Press Enter.
Change the example folder name GnProj and Lt7 according to the name used on your computer.
Comments