Recently I have to reset a Windows 7 users local profile, so as I had done with previous version of Windows I deleted the users local profile folder.
I then found that whenever the user logged on they were logged on with a temporary profile, it was as if Windows did not even try to create a new profile for the user.
I found messages similar to the below in the even log;
Log Name: Application
Source: Microsoft-Windows-User Profiles Service
Event ID: 1511
Task Category: None
Windows cannot find the local profile and is logging you on with a temporary profile. Changes you make to this profile will be lost when you log off.
Your user profile was not loaded correctly! You have been logged on with a temporary profile.
Changes you make to this profile will be lost when you log off. Please see the event log for details or contact your administrator.
After a bit of digging around I found this seems to be by design in Windows Vista and 7. If a local profile is deleted or renamed you now have to also clean up the registry;
- Log on to the system by using an administrative user account other than the user account that is experiencing the problem.
- Back up all data in the current user’s profile folder if the profile folder still exists, and then delete the profile folder. By default, the profile resides in the following location:
- Click Start, type regedit in the Start Search box, and then press ENTER.If you are prompted for an administrator password or for confirmation, type your password, or click Continue.
- Locate the following registry subkey:
- Under the ProfileList subkey, delete the subkey that is named SID.bak.Note SID is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The SID.bak subkey should contain a ProfileImagePath registry entry that points to the original profile folder of the user account that is experiencing the problem.
- Exit Registry Editor.
- Log off the system.
- Log on to the system again.
After you log on to the system, the profile folder is re-created.