The User Profile Service failed to login in Windows 7 or in windows 8
You receive a “The User Profile Service failed the logon” error message
Symptoms
When you log on to a Windows 7-based or a Windows Vista-based computer by using a temporary profile, you receive the following error message:
The User Profile Service failed the logon. User profile cannot be loaded.
Solutions
Fix the user account profile
- Machine Start on Safe Mode
- Click Start
- Type ‘Regedit’
- Open ‘Registry Editor’ Windows
- First Take Backup on Registry
- Click ‘File’ -> ‘Export’ -> ‘Latestdateregbak’ (i.e 29092013regbak) save.
- After Taking Registry Backup
In Regisrty Editor
- Expand
- HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
- In the navigation pane, locate the folder that begins with S-1-5 (SID key) followed by a long number.
- Click each “S-1-5” folder,
- Locate the “ProfileImagePath” entry in the details pane, and then double-click to make sure that this is the user account profile that has the error.
- If you have two folders starting with S-1-5 followed by some long numbers and one of them ended with .bak,
- you have to rename the .bak folder. To do this, follow these steps:
- Right-click the folder without .bak, and then click Rename. Type .ba, and then press ENTER.
- Right-click the folder that is named .bak, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
- Right-click the folder that is named .ba, and then click Rename. Change the .ba to .bak at the end of the folder name, and then press ENTER.
If you have only one folder starting with S-1-5 that is followed by long numbers and ends with .bak. Right-click the folder, and then click Rename. Remove .bak at the end of the folder name, and then press ENTER.
- Double-click the folder without .bak in the details pane, double-click RefCount, type 0, and then click OK.
- Click the folder without .bak, in the details pane, double-click State, type 0, and then click OK.
- Close Registry Editor.
- Restart the computer.
- Log on again with your account.
Courtesy :- Microsoft Corportation