User gets a message saying: You are logged in with a temporary profile. You do not have access to your files and create files in this profile will be deleted when you log off. You can solve this by logging in and try your login later.
Before you proceed, make sure you have backed up the users local profile. In my case the users profile couldn’t be created so there was no local profile.
1. Log on with a admin account. In th registry, go to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\
2. Delete the subkey that is named sid.bak
3. Log off and log on with the user account.