Windows Vista : Corrupt user profile
Contents
I'm taking this from <a href="http://blog.tiensivu.com/aaron/archives/932-Dealing-with-corrupt-user-profiles-in-Vista-and-saving-the-contents.html" target="_blank">this page</a> but thought I should try to propagate it a little since it took me forever to find it.
Assume in this example that the username is atiensivu
, the domain is staff
, and the user profile is located in %systemdrive%\users\atiensivu
. %systemdrive%
is typically C:
on standard Vista installs. Replace every instance of atiensivu
with the username of the corrupt profile.
-
If you can log into the profile, make note of the
%USERPROFILE%
environment variable value. Most likely it will beC:\Users\atiensivu
orC:\Users\atiensivu.staff
. Logoff. -
If you have logged in with the profile at any point since your last reboot or you suspect there are files in use within the profile, reboot. The important part is to make sure there are no open files within the broken profile directory.
-
Login as administrator or another account with local admin rights.
-
Run
takeown /r /a /d y /f %systemdrive%\users\atiensivu
. (Note : before doing step 4, remove things like the IE cache if you can, save yourself some time). -
From
%systemdrive%\users
, renameatiensivu
toatiensivu.old
. -
Within !%systemdrive%\users~, create a directory called
atiensivu
. -
Run
takeown /r /u staff\atiensivu /f %systemdrive%\users\atiensivu
. -
Run
regedit
and go toHKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
and delete the SID key for the corrupt profile. Easiest way to find the correct SID is to search from the 'ProfileList' key for the directory mentioned in %USERPROFILE% in step #1. -
Logoff.
-
Log into the
atiensivu
account. A new profile should be created. Copy over any files you might want from the old profile directory.
The 'takeown' commands might be overkill but I don't like getting permission errors.
Author Aldric Giacomoni
LastMod 2008-12-07