Windows 7 Remove Faulty Cached Profiles
Jump to navigation
Jump to search
Delete cached profiles
Z:\>delprof2 /c:\\xxxxxxx DelProf2 by Helge Klein (http://helgeklein.com) Listing inactive profiles on 'xxxxxxx'. Delete inactive profiles on 'xxxxxxx'? (Yes/No) y Privilege 'Back up files and directories' could not be enabled. DelProf2's powers are restricted. Better run DelProf2 with admin rights. Privilege 'Restore files and directories' could not be enabled. DelProf2's powers are restricted. Better run DelProf2 with admin rights. Ignoring profile '\\xxxxxxx\C$\Users\Default' (reason: special profile) Ignoring profile '\\xxxxxxx\C$\Users\Public' (reason: special profile) The following user profiles match the deletion criteria: \\xxxxxxx\C$\Users\yyyyyyyy Deleting profile '\\xxxxxxx\C$\Users\yyyyyyyy' ... ... done.
Delete broken ones
Find what's here, if you ran above shouldnt be anythiong left but the broken + default system ones)
reg query "\\xxxxxxx\HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList"
Delete anything that is not
\\xxxxxxx\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18
\\xxxxxxx\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-19
\\xxxxxxx\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-20
i.e. Most likely users SIDs S-1-5-21-...
reg delete "\\xxxxxxx\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-1039984320-261210814-957142514-1104"
Users should then be able to log back in.