Step 1: Click Start, type “cmd” and from the right-pane, open Command Prompt as administrator.
Step 2: In the Command Prompt window, type whoami /user and press Enter to get SID (security ID). Copy that ID on a notepad.
Step 3: Press Windows key + R to open the Run dialog. Type regedit and hit Enter.
Step 4: In the address bar of Registry Editor, copy and paste the address given below to open the ProfileList subkey.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
Step 5: Expand the ProfileList subkey, and you’ll see the SID keys of all the users on the PC. Now find and click the SID you noted earlier from Step 2. Then check the data under the ‘ProfileImagePath’ entry on the right.
Note: If you see two identical SID keys under the ProfileList subkey, select the one without ‘.bak’ at the end.
Step 6: You will see the ProfileImagePath data as ‘C:\Users\TEMP’. To correct the value data, double-click the ProfileImagePath entry to edit. Type the correct profile path and click OK. Your profile path is C:\Users\’YourProfileName’, where you should see the profile path as per your profile name.
Step 7: Now right-click on the SID key (with .bak at the end) and delete it.
That’s about it. Now restart your computer Windows should let you sign in to your account with a local profile instead of a temporary one.