Win7 Inside Out 5 – User Profile Service and UPHClean
Monday, 18. January 2010 10:55
In case you are administrator of either terminal servers or Citrix\XenApp servers, I am sure you know small life-saver called UPHClean – User Profile Hive Cleanup service. To explain problem that was there since Windows 2000 server:
it happens quite often that driver or application leaks registry\file handles (it opens handle, however doesn’t properly close it afterwards), therefore profile cannot be unloaded. This leads to situation where you have tons of similar profiles (MZugec, MZugec.000, MZugec.001…) and user experience is that their settings are reset to default (because new profile is loaded for them).
This was major pain with roaming profiles – because profile is not unloaded correctly, it cannot be copied back to central profile storage. Microsoft released utility called UPHClean to solve this situation – it was real life saver.
You can read KB from Microsoft with details about that problem: http://support.microsoft.com/kb/837115/en-us.
Now, some mythbusting
Problem with profiles that were not unloaded is very common. Also very common recommendation from almost every SBC consultant is – always install UPHClean. However that’s not completely true.
Always install UPHClean if you are running Windows 2003 Server or OLDER operating system.
Since Windows Vista\2008 and newer, we have UPHClean 1.6 included in operating system – it is part of User Profile Service service.
There are however still issues that are not solved by ProfSvc as far as I know – for example hgfs.dat file from VMWare or hsperfdata from Sun (it’s not bug, it’s a feature
). I tried to contact Robin (creator of UPHClean) regarding his future plans, I will share those details with you once he replies.
Therefore, UPHClean is now officially dormant. There are many other changes to user profiles in Vista\7, I would like to share them with future (like using Win32_UserProfile to migrate profiles from workgroup to domain).
Do you still have issues with profiles not being unloaded at logoff? Share it with us in the comments.
Martin Zugec
Category:Internals, Mythbusting, Windows, Windows 7 | Comment (0) | Author: Martin Zugec