How to Rename User Profile Folder on Windows 11 / 10
How to Rename User Profile Folder on Windows 11 / 10
How to Rename User Profile Folder on Windows 11 / 10
to Rename User Profile Folder on Windows 11 / 10 follow this steps :-First Step in Main User Profile
- Don't Miss any Step .
- Press Pc icon in the Desktop and Choose C Drive .
- Press Users Folder you will find name of user profile folder in my pc the user profile folder name Pc type the name of your user profile folder in paper you will need it .
- Press Search icon in the taskbar and write cmd then press right click on Command Prompt and Choose Run as administrator .
- write
net user TESTUSER /add
- Press Enter .
- write
netplwiz
- Press Enter .
- Press Twice on TESTUSER then Choose Group Membership then choose Administrator and Press Apply Then OK and OK .
- Press Start Icon ( Windows Icon ) in Taskbar then Press on User Icon then Press Sign out .
Second Step in TEST USER Profile
- after pc start up again you will find in the bottom left side your main user and TESTUSER choose TESTUSER then Press Sign in .
- wait loading for windows .
- Press Next Next until windows setup finish .
- Press Start icon ( Windows icon ) in the taskbar to make sure you sign in to TESTUSER you will see TESTUSER beside user icon .
- press Search icon in the taskbar and write cmd then press right click on Command Prompt and choose Run as administrator .
- write
wmic useraccount get name, SID
- Press Enter .
- look for name of user profile folder and the last numbers in the same line
- for me the user profile folder name Pc and the last numbers in the same line is 1001
- press Search icon in taskbar and write regedit then choose Registry Editor .
- Choose HKEY_LOCAL_MACHINE then SOFTWARE then Scroll down to Microsoft then scroll down to Windows NT then CurrentVersion then scroll down to ProfileList and see the last numbers in the lines and compare it to the last numbers at cmd in the name of user profile folder line .
- Choose the folder end with numbers have the same end numbers of the user profile folder name in the cmd .
- then from right side choose ProfileImagePath right click on it
- in the Value data remove the name of user profile folder
- for me the Value data is
C:\Users\Pc
- i remove the Pc then write new name like Robert to be Value data like this
C:\Users\Robert
- Press OK .
- Press Search icon then write File Explorer and choose File Explorer then from left side choose This PC then choose C Drive then choose Users then you will find old name of user profile folder right click on it then choose Rename and rename it to new name, for me the old folder name is Pc i rename it to Robert like the end name on Value date in the previous step .
- press Search icon and type cmd and choose Command Prompt then right click and choose Run as administrator then write
netplwiz
- Press Enter .
- Press Twice on old name of user profile folder, for me the old name is Pc i press on it twice then rename User name to new name Robert and rename Full name to Robert then Press Apply and OK and OK .
- Press on Start icon ( Windows icon ) then click to TESTUSER Icon then press Sign out .
Third Step in New User Profile
- after pc start up you will find in the bottom left the new name of User Profile press on it, for me the new name is Robert so i click on it and enter the old pin of old main user profile .
- Press Search icon then write cmd and press right click on Command Prompt and choose Run as administrator .
- write
net user
- Press Enter .
- write
net user TESTUSER /del
- Press Enter .
- Press Search icon in taskbar then write environment and click on Edit the system environment variables .
- Choose Advanced then in the User Profiles part choose Settings .
- Press on Account Unknown then Press Delete and Press Yes and wait the delete complete .
- Press Ok and OK .
- Now The User Profile Folder is Renamed .
Note:
if you have any problem in min 6:27 change name back to the old name you will find old name in C:\Users if you not changing user profile folder name yet .
if can't rename user folder Restart your Pc, log in with TESTUSER and rename your folder. Also works the same when you can't delete the Account Unknown .