This involves using the command line to access the security identifier (SID) then making the necessary change in the Registry. Before you go any further, enable then log into the built-in Administrator account (
https://www.groovypost.com/howto/create-manage-...). As a precaution, create a system restore point in advance (
https://www.groovypost.com/howto/windows-10-ena...).
To access all the information within the SID requires using the Windows Management Instrumentation Command line to reveal the value needed to find and change it in the Registry. Open the command prompt with Administrator privileges,
Open Start, type: CMD
Right click Command Prompt
Click Run as administrator
type: wmic user account list full
then hit Enter. Scroll down then take note of the SID values for the account you want to change.
Type: cls to clear the screen. The next step is to rename the account. Doing this from the command line is just as easy.
Type CD c:\users then hit Enter.
Type: rename OldAccountName NewAccountName
For example, rename “sherw” “Sherwin”
Open Start, type: regedit
Right-click Regedit.
Click Run as administrator.
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Remember that SID value we accessed earlier? Now is the time to reference it.
Once you find it, select it, then double-click the value ProfileImagePath. You will see the old name we had earlier is still there. Change it to the new name you want to use.
Source:
https://www.groovypost.com/howto/change-account...