<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>UPHClean and other profile ramblings : about</title><link>http://blogs.technet.com/uphclean/archive/tags/about/default.aspx</link><description>Tags: about</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>UPHClean v2.0</title><link>http://blogs.technet.com/uphclean/archive/2008/02/28/uphclean-v2-0.aspx</link><pubDate>Thu, 28 Feb 2008 21:18:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2940736</guid><dc:creator>rcaron</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.technet.com/uphclean/comments/2940736.aspx</comments><wfw:commentRss>http://blogs.technet.com/uphclean/commentrss.aspx?PostID=2940736</wfw:commentRss><description>&lt;P&gt;UPHClean v2.0 is a new version that tries to help with the following scenarios:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Timing fix&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In v1.6 there is a timing issue with where the profile unload process stopped trying to unload the user profile hive before UPHClean finished&amp;nbsp;its work. UPHClean finished its release of user profile hive handles but Winlogon had already proceeded without unloading the profile causing it to report a profile hive unload failure.&amp;nbsp; This is now addressed by having Winlogon waiting until UPHClean has finished all of its work before proceeding.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Open file handles&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Apart open registry handles that UPHClean v1.6 deals with&amp;nbsp;open file handles to the user profile can have a bad influence on the profile load and unload process. Open references to profile files prevent the profile load and unload process from reconciling (copying files) from and to the roaming profile location.&amp;nbsp; This prevents the deletion of the locally cached profile.&amp;nbsp; Other symptoms of this is if the same user logs in again he or she gets a new profile with a name like username.000, username.001 etc. &lt;/P&gt;
&lt;P&gt;UPHClean v2.0 takes care of these by releasing the handle to user profile files when the profile is unloaded.&amp;nbsp; This is not without risk.&amp;nbsp; Since UPHClean removes access to files or directories data that was cached by the application for the file is lost.&amp;nbsp; This could cause the process to fail because it cannot read from the file. During testing this has not been found to be true but there is still a chance that it could happen. This is the reason why the file handle remap feature is disabled by default.&lt;/P&gt;
&lt;P&gt;To enable the feature you have to set the following registry key:&lt;/P&gt;
&lt;P&gt;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UPHClean\Parameters&lt;BR&gt;&lt;STRONG&gt;SHARING_VIOLATION_REMAP&lt;/STRONG&gt; REG_DWORD 0X00000001&lt;/P&gt;
&lt;P&gt;Without enabling the remapping feature UPHClean automatically detects sharing violation during the user logoff and retries the failed operation for a small amount of time. You can control the amount of time using the &lt;STRONG&gt;SHARING_VIOLATION_DELAY&lt;/STRONG&gt; value.&amp;nbsp;This value is specified in millisecond and has a default value of 1000 millisecond.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;File permissions&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;In some cases a program might change file permissions or creates a new file/folder within the profile but incorrect permissions.&amp;nbsp; This may leave the profile load/unload process unable to copy it or delete it. To resolve the issue you have to take ownership first before you can delete the file or folder. UPHClean takes care of those situations.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;STRONG&gt;Real world problems&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Here are actual scenarios that UPHClean v2.0 resolves:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;VMware hgfs.dat &lt;BR&gt;VMware creates the hgfs.dat file in profile folder for the first user that logs in and keeps it open. When using roaming profiles you get a problem with that. (read VMware &lt;A href="http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1317" target=_blank mce_href="http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=1317"&gt;FAQ1317&lt;/A&gt; for a solution)&lt;/LI&gt;
&lt;LI&gt;SUN Java (JRE)&lt;BR&gt;In some cases SUN Java creates a folder called hsperfdata&amp;lt;username&amp;gt; with file permissions only set to the user and can not be removed by the system without taking ownership. SUN say’s this is by design (bug id &lt;A href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5042659" target=_blank mce_href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5042659"&gt;5042659&lt;/A&gt;) 
&lt;LI&gt;Microsoft Internet explorer cookies and favorites&lt;BR&gt;Favorites and cookie files sometimes excide more than 255 chars and can only be deleted through the command line 
&lt;LI&gt;Also suspects for open file handles causing sharing violation &lt;BR&gt;SAP SapGui (SapWorkDir), Imprivata SSO, Indexing Software, Virus scanner etc.&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;It will be supported on Windows 2000 (all versions), Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008.&amp;nbsp; It will be available for 32 bit and 64 bit platforms.&amp;nbsp; There are&amp;nbsp;beta bit available for 32 and 64 bit platforms for all Windows 2000, Windows XP, and Windows Server 2003.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2940736" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/uphclean/archive/tags/uphclean/default.aspx">uphclean</category><category domain="http://blogs.technet.com/uphclean/archive/tags/about/default.aspx">about</category><category domain="http://blogs.technet.com/uphclean/archive/tags/2.0/default.aspx">2.0</category></item><item><title>Hi</title><link>http://blogs.technet.com/uphclean/archive/2008/02/28/hi.aspx</link><pubDate>Thu, 28 Feb 2008 18:27:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:2940493</guid><dc:creator>rcaron</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.technet.com/uphclean/comments/2940493.aspx</comments><wfw:commentRss>http://blogs.technet.com/uphclean/commentrss.aspx?PostID=2940493</wfw:commentRss><description>&lt;P&gt;I am Robin Caron.&amp;nbsp; I have worked for 8 years as an escalation engineer for Microsoft supporting directory services technologies for the Windows platform.&lt;/P&gt;
&lt;P&gt;I am starting this blog as a way to distribute information about UPHClean and to&amp;nbsp;offer some ramblings&amp;nbsp;about Windows user profiles.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;UPHClean is a tool that I wrote about 5 years ago to help resolve the problem of user profile hive not unloading.&amp;nbsp; When user profile hives do not unload you get a variety of problems including slow logoff (on Windows 2000), no reconciliation of roaming profiles, possible kernel memory exhaustion and a variety of error events logged in the application log.&amp;nbsp; UPHClean helps this scenario.&amp;nbsp; You can get UPHClean from &lt;A class="" title=here href="http://www.microsoft.com/downloads/details.aspx?FamilyId=1B286E6D-8912-4E18-B570-42470E2F3582" mce_href="http://www.microsoft.com/downloads/details.aspx?FamilyId=1B286E6D-8912-4E18-B570-42470E2F3582"&gt;here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;UPHClean was successful beyond my wildest dream (over 3 million downloads in less than 3 years).&amp;nbsp; I worked with the profile team to get its functionality integrated into the operating system.&amp;nbsp; This is now available in Windows Vista and Windows Server 2008 in the User Profile service.&lt;/P&gt;
&lt;P&gt;I plan on telling you more about how profiles work and how UPHClean attempts to help with problems that occur with them.&amp;nbsp;I'll also discuss problem scenarios future versions of UPHClean will attempt to help with.&lt;/P&gt;
&lt;P&gt;Do not hesitate to give your feedback about what types of information about profiles/UPHClean you would like to see.&amp;nbsp; You can either leave a comment here or send email to &lt;A href="mailto:uphclean@microsoft.com" mce_href="mailto:uphclean@microsoft.com"&gt;uphclean@microsoft.com&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Robin.&lt;/P&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=2940493" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/uphclean/archive/tags/uphclean/default.aspx">uphclean</category><category domain="http://blogs.technet.com/uphclean/archive/tags/about/default.aspx">about</category><category domain="http://blogs.technet.com/uphclean/archive/tags/intro/default.aspx">intro</category></item></channel></rss>