Win7 Error: User Profile Service failed the logon

How to fix User Profile Service failed the logon on Windows7

1. Login Safe Mode
2. Search – regedit


3. HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows NT -> Current Version -> ProfileList
4. Look for 2 files with the same name
5. Change .bak to .ba
6. Add .bak to the original file
7. Remove .ba
(This way you end up switching .bak between files)
8. Select “State” on switched Profile -> Right Click and Modify -> Change Value to 0
9. Select “RefCount” on the same profile -> Right Click and Modify -> Change Value to 0
10. Exit and Restart the Computer
11. You might see the message one more time, just Restart again.