Problem:
The User Profile Service failed the logon, loging on with a temporary account
Solution:
In the past, we’ve “fixed” this by creating a new profile and copying all the data from the old one (in the users or documents and settings folder) over to it. However, you can try this registry fix first;
Step 1. To fix the user profile, click Start and type regedit into the search box and press Enter.
Step 2. Registry Editor will launch and you need to navigate to the following key:
HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionProfileList
Step 3. Click each S-1-5 folder and double-click the ProfileImagePath entry to find out which user account it relates to