The User Profile Service failed the logon
It is one of the most common error in windows 7 and windows vista computers and it occurs when you click on user profile icon
Cause for error message:
1. The C:\Users\(user-name) user profile folder was manually deleted instead of properly deleting user account through user accounts in the Control Panel. A user profile that is manually deleted does not remove the security identifier (SID) from the profile list in the registry.
2. Occasionally, Windows 7 might not read your user profile correctly, for example, if your antivirus software is scanning your computer while you try to log on. Try restarting your computer and logging on with your user account again to resolve the issue before following the options below
Cause for error message:
1. The C:\Users\(user-name) user profile folder was manually deleted instead of properly deleting user account through user accounts in the Control Panel. A user profile that is manually deleted does not remove the security identifier (SID) from the profile list in the registry.
2. Occasionally, Windows 7 might not read your user profile correctly, for example, if your antivirus software is scanning your computer while you try to log on. Try restarting your computer and logging on with your user account again to resolve the issue before following the options below
Fix it:
- Using Registry (Handle Registry with care) and create system restore point before you begin
- Click Start, type regedit in the Search box, and then press ENTER.
- In Registry Editor, locate and then click the following registry subkey: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.
- Right-click the folder without .bak, and then click Rename. Type .ba, 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.
- 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.
- Right-click the folder without .bak, and then click Rename. Type .ba, 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.
- 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:
- 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.
- Easy fix it for beginners create a new admin account and import files from the corrupted profile, create admin profile using command prompt
Source: Microsoft