I'm using Windows 10 on my personal computer (HP Pavilion Laptop) and you can see in the Screen Shot under C:\Users
there are two folders.
The name of the first folder is C:\Users\SINGHA
, however, the correct spelling of my last name is SINHA. I need to change the name of this folder to C:\Users\SINHA
so that it shows the correct name.
- Under User Account, the spelling of my name is correct – it's only under
C:\Users\
where the name is spelt incorrectly. - Consequently, if I open/edit a Word or Excel document, the name of the owner being shown is the incorrect one (i.e it's shown as
C:\Users\SINGHA
instead ofC:\Users\SINHA
)
If I right-click on this folder, I won't get the Rename option; How can I change the name of this folder?
Best Answer
This method is based on the following Microsoft article:
Renaming a User Account Does Not Automatically Change the Profile Path.
The article was written for Windows 7, but is still relevant in Windows 10.
Rename in User Accounts the user account from
C SINGHA
toC SINHA
Start a Command Prompt (cmd) and enter the following command:
Note down the value below SID, which may look like
S-1-5-21-495099530-557473056-3318008218-1001
,by copying it to some text file
Log in using another administrative account (create one if required)
Go to the
C:\Users\
folder and rename the sub-folderC SINGHA
toC SINHA
Start
regedit
and navigate to the keyModify the registry value
ProfileImagePath
toC:\Users\C SINHA
Log out and log in again as
C SINHA
.Before doing registry operations, it is best to ensure good backups. Before starting on the above, create at least a System restore point, just in case, to be able to restore the current state of Windows.