When logging on, the following error message was being reported;
The User Profile Service failed the logon. User profile cannot be loaded
This was due to a user profile being manually deleted on Windows 7 and the ability of users to logon with temporarily profiles being disabled. This occurs as the security identifier (SID) is not removed from the profile list in the registry when the profile is manually removed. If the SID is present in the profile will be attempted to be loaded which is configured to a non existent path.
In order to resolve this, I performed the following to fix the user account profile:
1) Open ‘Registry Editor’
2) Browse to the following registry key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\ProfileList
3) Select the folder name which contains the SID that corresponds to the user profile which may not be loaded. You can translate the username to SID using the PSGetSid utility available from;
From Example; the below will translate the SID for the username ‘DOMAIN\Username’
4) Rename the folder to contain the suffix ‘.old’
5) Select the folder name which contains the SID that corresponds to the user profile and contains the suffix ‘.bak’. Remove the ‘.bak’ from the folder name.
6) Rename the folder in Step 4, replacing the suffix ‘.old’ with ‘.bak’.
7) Select the folder name in Step 5 which does not contain a suffix after the SID and select the ‘RefCount’ DWORD value.
8) Modify the value data to ‘0’ and select ‘OK’.
9) Select the folder name in Step 5 which does not contain a suffix after the SID and select the ‘State’ DWORD value.
10) Modify the value data to ‘0’ and select ‘OK’.
11) Restart the computer
12) Logon with the user account where the user profile previously could not be loaded.