<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.brianmadden.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>Citrix XenApp / Presentation Server</title><link>http://www.brianmadden.com/forums/155.aspx</link><description>MetaFrame Presentation Server technical questions and configuration</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Re: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/168710.aspx</link><pubDate>Thu, 05 Apr 2012 14:34:03 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:168710</guid><dc:creator>anthonyd</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/168710.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=168710</wfw:commentRss><description>&lt;p&gt;Old post I know but I&amp;#39;ve spent the better part of a week trying to find a definitive answer to the specific issues at my site and this site has definately helped!&amp;nbsp; The following is my take on an amalgamation of a number of blogs and articles and may help someone else with the same issue.&amp;nbsp; I haven&amp;#39;t tested this yet (so make your own mind up whether this will work for you).&amp;nbsp; Feel free to comment/correct me as I am &lt;span&gt;&lt;strong&gt;NOT&lt;/strong&gt;&lt;/span&gt; a citrix boffin...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;Problem:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Citrix roaming profile Ntuser.dat files are 40-100MB in size.&amp;nbsp; Editing ntuser.dat in Notepad++ shows 250,000 lines of HP printer entries (out of perhaps 255,000 lines). This makes logons very slow as registry entries are merged and prevents/delays Group Policy applying. (this may also cause WMI overload as suggested by others on this site).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;Process:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Every time a user logs on, their printer mappings create a unique key under the following registry key:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;HKEY_USERS\.DEFAULT\Software\Hewlett-Packard&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The key grows until it has unique entries (1000+ in my case) for each printer instance in each user&amp;rsquo;s profile who has ever logged on.&amp;nbsp; The Default User Registry key is merged with completely new profiles at logon (and HKEY_CURRENT_USER), so deleting/recreating the user&amp;rsquo;s roaming profile has very limited effect.&amp;nbsp; Deleting the local Default User Profile works in the very short term but each user&amp;rsquo;s logon builds up multiple registry entries again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When the user logs off all the entries are merged with their ntuser.dat file, which spread to the server at the user&amp;#39;s next logon, replicaing&amp;nbsp;the problem across the farm.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;Solution:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This is a known issue with HP Universal Print Drivers&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;span&gt;HKCU\Software\Hewlett-Packard registry hive increases in size in Citrix&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;span&gt;Print driver versions 61.071.xxx.xx fail to clean up registry data written to the ―HKEY_CURRENT_USER\Software\Hewlett-Packard‖ registry hive. Keys under this hive will grow over time. A new registry key is created each time a user logs onto a Citrix server for each printer auto-created. An example of such a key is ―HKEY_CURRENT_USER\Software\Hewlett-Packard\165b5934-15c4-4a84-c392-d044915211da‖ where ―165b5934-15c4-4a84-c392-d044915211da‖ is a GUID (globally unique identifier). HPBIDIInfo or HPCUSTOMForms are keys in the GUID hive. &lt;span&gt;Newer versions of the print driver, such as version 61.081.xxx.xx or the latest HP Universal Print Driver, have a fix for this issue&lt;/span&gt;. &lt;/span&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="http://support.citrix.com/article/CTX110571"&gt;HP Printers Supported in XenApp Environments&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;i&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;&lt;span&gt;&lt;span&gt;Suggested Actions:&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As I say, I am no Citrix buff and I have not yet tested this fix (we need to&amp;nbsp;upgrade our print server from 2003 x86 to 2008 x64 as part of the process) but (upgrade aside) this is what I intend to do.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;1.&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;Upgrade all the HP print drivers to 61.081.xxx.xx or above.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;2.&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;After all drivers are upgraded, check whether the local DEFAULT USER registry on the individual citrix servers has been cleaned up or if this needs doing manually.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span&gt;3.&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;Re-create roaming profiles (in conjunction with Citrix Profile Management Tool - just purchased -&amp;nbsp;to prevent ntuser.dat bloat from other applications)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/124273.aspx</link><pubDate>Tue, 20 Jan 2009 10:11:32 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:124273</guid><dc:creator>EmilBeck</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/124273.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=124273</wfw:commentRss><description>&lt;p&gt;I think you are going to be in for the long haul to solve the issue.&amp;nbsp; I would start to look at the basics:&lt;/p&gt;
&lt;p&gt;Does it happen on all Servers (Server performance issue)?&lt;/p&gt;
&lt;p&gt;Does it happen for all users (size of profile/registry)?&lt;/p&gt;
&lt;p&gt;Is the user connecting mapped drives/printers/resources in remote locations?&lt;/p&gt;
&lt;p&gt;Is DNS working 100%? (dual NIC&amp;#39;s)&lt;/p&gt;
&lt;p&gt;Disable GPO&amp;#39;s for the user/server&lt;/p&gt;
&lt;p&gt;Are you using Folder Redirection for the desktop etc?&lt;/p&gt;
&lt;p&gt;Also enable login logging - &lt;a href="http://technet.microsoft.com/en-us/library/cc775423.aspx"&gt;http://technet.microsoft.com/en-us/library/cc775423.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And pour through the log files in excel to see the times between steps (5 or more second pauses).&lt;/p&gt;
&lt;p&gt;If you have issues with the size of the NTUser.dat load it up in Regedit and see which keys you can remove.&amp;nbsp; This can then be&amp;nbsp;automated via a script to delete the HKCU keys you do not need on logon.&lt;/p&gt;
&lt;p&gt;Good luck --Emil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/124156.aspx</link><pubDate>Fri, 16 Jan 2009 19:50:08 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:124156</guid><dc:creator>Sam Rodriguez</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/124156.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=124156</wfw:commentRss><description>&lt;p&gt;To Guest who started thread, Roaming Profiles will keep you busy - believe me. The Shadow Key, can create some headaches as well. Might want to research that and perform a bit of surgery there. I would recommend begin plannng and testing a flex (hybrid) profile solution.&lt;/p&gt;
&lt;p&gt;In the meantime, take a look at this tool (ProfileNurse). May help you with the current profiles you have in place http://blogs.sepago.de/helge/2008/12/17/enter-profilenurse-your-skilled-profile-care-professional/&lt;/p&gt;
&lt;p&gt;I had taken a good hard look at disk quotas once, but found that (like index service) it puts quite a load on the file server, you end up raising the quotas for the biggest violators anyway, and it monitors the whole profile folder rather than the user registry hive. So, not really an effective tool considering the resources it needs to run. Found that I could run the Diskuse.exe tool from the  Server 2003 Resource Kit once every other week or so http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&amp;amp;displaylang=en just cat the results to a text file and import into Excel so you can sort by folder size, username, whatever. -Then you&amp;#39;ll probably find that 3% of your users hog-up 90% of your storage. The next thing you&amp;#39;ll discover is that they&amp;#39;re probably all VIP&amp;#39;s so forget about doing anything about it. 8 ))&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/124154.aspx</link><pubDate>Fri, 16 Jan 2009 19:13:00 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:124154</guid><dc:creator>antick</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/124154.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=124154</wfw:commentRss><description>&lt;p&gt;Thank you very much for the reply; So maybe i should be asking for HELP in diagnosing what is causing our regsitry to suddenly increase in size and make the server unresponsive.&amp;nbsp; We have a 4.5 HRP2, win3k sp2 farm where servers suddenly become unresopnsive and FREEZE.&amp;nbsp; Through troubleshooting we have identified the same exact issues as this post (where the registry balloons to massive size).&amp;nbsp; We have written a script that&amp;nbsp; uses the DUREG.exe utility to dump and analyze the registry size every 10mnts. Our registry can go from 50MB up to 800MB in an instance. We have been working with MSFT to no avail. the HKU key is the only one that grows exponentially. &lt;/p&gt;
&lt;p&gt;Anyone have any ideas on what we can do to troubleshoot next? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/122972.aspx</link><pubDate>Mon, 08 Dec 2008 23:54:05 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:122972</guid><dc:creator>Shawn Bass</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/122972.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=122972</wfw:commentRss><description>&lt;p&gt;Registry keys located in the Terminal Server\Install\Software key are registry entries that were captured during installation of something during Install Mode. &amp;nbsp;Keep in mind that Install Mode isn&amp;#39;t only triggered by running &amp;quot;Change user /install&amp;quot; &amp;nbsp;On TS pretty much any setup installer engine including setup.exe, Windows Installer, etc. will set the server in Install Mode.&lt;/p&gt;
&lt;p&gt;Shawn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Re: RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/122965.aspx</link><pubDate>Mon, 08 Dec 2008 20:12:28 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:122965</guid><dc:creator>antick</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/122965.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=122965</wfw:commentRss><description>&lt;p&gt;How did you determine that the &amp;quot;Hewlett-Packard&amp;quot; sofware was not loaded in &amp;quot;INSTALL MODE&amp;quot;? We are having the EXACT SAME ISSUE and see a mess of keys under the HKLM\Soft\MSFT\WINNT\CurrVer\Term Ser\Install\Software\xxxx --&amp;gt; does that mean all those apps were loaded in &amp;quot;EXECUTE MODE&amp;quot;? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/52392.aspx</link><pubDate>Mon, 21 Jan 2008 13:30:41 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:52392</guid><dc:creator>kirk lashbrook</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/52392.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=52392</wfw:commentRss><description>I had this same issue on three Win2000 servers.&lt;br /&gt;
&lt;br /&gt;
It looks like the server was in &amp;quot;install&amp;quot; mode for a duration of time while a bunch of printer objects were being created and written to the shadow key (HKLM\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software\hewlett-packard)&lt;br /&gt;
&lt;br /&gt;
Whenever a user logged-in, all of those keys were copied to their HKCU; leading to huge registry bloat. About 270+ megs in my case. NTUser.DAT in each profile was about 36 megs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I fixed by deleting the following keys:&lt;br /&gt;
&lt;br /&gt;
-  HKLM\Software\Microsoft\Windows NT\CurrentVersion\Terminal Server\Install\Software\hewlett-packard&lt;br /&gt;
&lt;br /&gt;
-  HKUsers\.Default\Software\Hewlett-Packard&lt;br /&gt;
&lt;br /&gt;
Then we deleted all the user profiles so they&amp;#39;d be recreated at next user login without all the bloat.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As always, your mileage may vary.</description></item><item><title>RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/52395.aspx</link><pubDate>Fri, 27 Jul 2007 01:42:05 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:52395</guid><dc:creator>Kevin Stewart</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/52395.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=52395</wfw:commentRss><description>While Flex and Mandatory profiles are really the way to go, if you need to continue on with roaming profiles, consider creating a login script that deletes all of these unnecessary entries from the user&amp;#39;s HKCU hive. I&amp;#39;m guessing whatever is creating the entries will continue to do so until you figure that one out, but at least the entries won&amp;#39;t have a chance to accumulate between logins.&lt;br /&gt;
&lt;br /&gt;
Kevin</description></item><item><title>RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/52394.aspx</link><pubDate>Thu, 26 Jul 2007 11:10:12 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:52394</guid><dc:creator>Greg A</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/52394.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=52394</wfw:commentRss><description>More likely the size of the user profile.</description></item><item><title>RE: Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/52393.aspx</link><pubDate>Wed, 25 Jul 2007 15:31:43 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:52393</guid><dc:creator>Dan Murray</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/52393.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=52393</wfw:commentRss><description>This is just one of the many reasons I no longer use roaming TS profiles.  Instead, I use a mandatory profile, which keeps the NTUSER.DAT file down to around 512KB, and FlexProfiles for the remaining settings that I care about.  Otherwise, the user&amp;#39;s NTUSER.DAT file picks up EVERY little settings that comes along, whether it actually does anything useful or not.</description></item><item><title>Roaming Profile NTUser.dat to large</title><link>http://www.brianmadden.com/forums/thread/52391.aspx</link><pubDate>Wed, 25 Jul 2007 12:33:09 GMT</pubDate><guid isPermaLink="false">a59ee4a9-9560-4436-b47c-b649e4ba6aaa:52391</guid><dc:creator>Guest</dc:creator><slash:comments>0</slash:comments><comments>http://www.brianmadden.com/forums/thread/52391.aspx</comments><wfw:commentRss>http://www.brianmadden.com/forums/commentrss.aspx?SectionID=155&amp;PostID=52391</wfw:commentRss><description>Hi,&lt;br /&gt;
&lt;br /&gt;
I have users connecting to a PS4 Farm using TS Roaming Profiles. I&amp;#39;ve started having complaints about slow logon times when launching published apps, specifically whilst loading personal settings. The problem appears to be related to the size of the NTUser.dat in the users Roaming Profile. A lot of these files are now between 5mb and 8mb in size. The following Registery key seems to be the cause of these problems.&lt;br /&gt;
&lt;br /&gt;
HKEY_USERS\test\Software\Hewlett-Packard&lt;br /&gt;
&lt;br /&gt;
It contains thousand of keys simular to this one&lt;br /&gt;
&lt;br /&gt;
108f7038-c6fe-4972-2492-bbf0b3257bef&lt;br /&gt;
&lt;br /&gt;
All of these keys contain one binary value: ShowJobStorageDlg with a value of 01&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I suspect its printer related&lt;br /&gt;
&lt;br /&gt;
Has anybody else had expereince of any simular problems&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;</description></item></channel></rss>