Fix error of "you have been logged on with a temporary profile" You have been logged on with a temporary profile on windows2008 R2

After looking into this issue, I saw the following user profiles and I didn’t see my profile (ralin).

C:UsersTEMP.domainName.000 (first time to login)

C:UsersTEMP.domainName.001 (second time login)

C:UsersTEMP.domainName.002 (third time to login)

That explained why I always logged in via Temp Profile.

How to solve this issue? After looking into it, it is easy.

Go to HKLMSOFTWAREMicrosoftWindows NTCurrentVersionProfileList

Search my username (ralin).

Delete the folder S1-5-21-706…

Log off and login again.

My user profile (C:Users alin) appears finally.