{"id":4095,"date":"2012-07-19T20:22:30","date_gmt":"2012-07-19T18:22:30","guid":{"rendered":"https:\/\/ingmarverheij.com\/?p=4095"},"modified":"2012-07-20T07:55:14","modified_gmt":"2012-07-20T05:55:14","slug":"delayed-browsing-5-sec-with-redirected-my-documents-on-windows-server-2003","status":"publish","type":"post","link":"https:\/\/ingmarverheij.com\/en\/delayed-browsing-5-sec-with-redirected-my-documents-on-windows-server-2003\/","title":{"rendered":"Delayed browsing (5 sec) with redirected My Documents on Windows Server 2003"},"content":{"rendered":"\n<p><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" align=\"left\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/13967826-glossy-black-button-clock-5-seconds.jpg\" width=\"92\" height=\"92\" \/><\/p>\n<p>When you\u2019re opening a Windows dialog like \u201cOpen File\u201d \/ \u201cSave File\u201d or browse in Windows Explorer with a redirected My Documents folder, you might encounter a delay between 3 ~5 seconds.<a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Open-Dialog-My-Document.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: right; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" align=\"right\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Open-Dialog-My-Document_thumb.png\" width=\"154\" height=\"115\" \/><\/a> This is issue applies to Microsoft Windows Server 2003 SP2 (and maybe more operating systems).<\/p>\n<p>&#160;<\/p>\n<p>The problem can be reproduced by starting Notepad and opening the \u201cOpen File\u201d dialog (File &gt; Open). The dialog will show the My Documents folder, if you <strong>immediately<\/strong> click on the My Document folder (which is already opened) it will show a hourglass cursor for 3 ~ 5 seconds <a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/hourglass_cursor.gif\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"hourglass_cursor\" border=\"0\" alt=\"hourglass_cursor\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/hourglass_cursor_thumb.gif\" width=\"16\" height=\"16\" \/><\/a>.<\/p>\n<p><!--more--><\/p>\n<h2>Reproducing and tracing<\/h2>\n<p>Since the problem can be reproduced it is <em>relatively easy<\/em> <strong>*ahum*<\/strong> to solve the issue. I\u2019ve reproduced the issue with a test user named <strong><em>TestDesktop05<\/em><\/strong> which has a redirected My Documents to <strong><em>\\\\filer1\\homedrives$\\testdesktop05\\Mijn Documenten.<\/em><\/strong><\/p>\n<p>A delay of 5 seconds is visible in <a href=\"https:\/\/technet.microsoft.com\/en-us\/sysinternals\/bb896645.aspx\" target=\"_blank\">SysInternals Process Monitor<\/a> when the \u201cOpen File\u201d dialog is opened.<\/p>\n<p><a href=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Process-Monitor2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-right-width: 0px; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px\" title=\"\" border=\"0\" alt=\"\" src=\"https:\/\/ingmarverheij.com\/wp-content\/uploads\/2012\/07\/Process-Monitor_thumb2.png\" width=\"604\" height=\"119\" \/><\/a><\/p>\n<p>The content of desktop.ini is the default content (generated by Windows) to name the My Documents folder \u201c&lt;username\u2019s&gt; documents\u201d. More information about renaming the name of My Documents can be found <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/en-US\/itprovistanetworking\/thread\/0ab1d9aa-fc5a-4765-b60b-bc226df5cf71\/\" target=\"_blank\">here<\/a> and <a href=\"https:\/\/support.microsoft.com\/kb\/321281\" target=\"_blank\">here<\/a>.<\/p>\n<pre>[DeleteOnCopy]\nOwner=TestDesktop05\nPersonalized=5\nPersonalizedName=Mijn documenten<\/pre>\n<p>PS: desktop.ini is a versatile file that\u2019s used for many different purposes, for instance the Nethood or My Network Places as described by <a href=\"https:\/\/www.remkoweijnen.nl\/blog\/2012\/07\/19\/my-network-places-internals\/\" target=\"_blank\">Remko Weijnen<\/a>.<\/p>\n<p>&#160;<\/p>\n<h2>Solving the issue<\/h2>\n<p>Apparently desktop.ini files that are stored on network locations are cached so they can be processed faster. This however doesn\u2019t seem to work properly since this takes between 3 ~ 5 seconds, which doesn\u2019t make it an effective solution.<\/p>\n<p>After <strong>disabling<\/strong> the caching of desktop.ini the delay is gone and the users can browse, open and save files at lightning speed.<\/p>\n<pre>Windows Registry Editor Version 5.00\n\n[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\policies\\Explorer]\n&quot;UseDesktopIniCache&quot;=dword:00000000<\/pre>\n<p>The issue was solved with update rollup <a href=\"https:\/\/support.microsoft.com\/kb\/871260\" target=\"_blank\">871260<\/a> &#8211; An update rollup is available for Internet Explorer versions 5.x and 6.0 &#8211; but I don\u2019t think you want to install that update. There are some conflicts between hotfixes and what you should do when, you can read more about that in <a href=\"https:\/\/support.microsoft.com\/kb\/840309\/en-us\" target=\"_blank\">KB840309<\/a>.<\/p>\n<p>&#160;<\/p>\n<h2>Best practice<\/h2>\n<p>Enabling the caching of desktop.ini is considered a best practice as described in the <a href=\"https:\/\/www.citrixtools.net\/Resources\/Articles\/articleType\/ArticleView\/articleId\/36\/Terminal-Server-XenApp-Tuning-Tips.aspx\" target=\"_blank\">Terminal Server &amp; XenApp Tuning Tips<\/a> (Pierre Marmignan \u2013 CitrixTools.Net) and <a href=\"https:\/\/helgeklein.com\/blog\/2007\/11\/soup-up-your-terminal-server-optimizing-explorers-network-performance\/\" target=\"_blank\">Soup Up Your Terminal Server: Optimizing Explorer&#8217;s Network Performance<\/a> (Helge Klein).<\/p>\n<p>As with any practice: <strong>test<\/strong> before your apply a \u201cbest practice\u201d. It\u2019s usually a best practice in a <strong>certain<\/strong> situation or use case, it\u2019s not an excuse for thinking. <\/p>\n<p>Hence the remark:<\/p>\n<blockquote>\n<p>please note that these informations are provided &quot;<strong>as is<\/strong>&quot; and that using these tips is <strong>at your own risks.<\/strong><\/p>\n<\/blockquote>\n<p><strong><font face=\"Georgia\">&#160;<\/font><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you\u2019re opening a Windows dialog like \u201cOpen File\u201d \/ \u201cSave File\u201d or browse in Windows Explorer with a redirected My Documents folder, you might encounter a delay between 3 ~5 seconds. This is issue applies to Microsoft Windows Server 2003 SP2 (and maybe more operating systems). &#160; The problem can be reproduced by starting [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","footnotes":""},"categories":[288],"tags":[478,479,480,482,481],"class_list":["post-4095","post","type-post","status-publish","format-standard","hentry","category-other","tag-desktop-ini","tag-folder-redirection","tag-my-documents","tag-process-monitor","tag-sysinternals"],"_links":{"self":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/4095","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/comments?post=4095"}],"version-history":[{"count":4,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/4095\/revisions"}],"predecessor-version":[{"id":4099,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/posts\/4095\/revisions\/4099"}],"wp:attachment":[{"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/media?parent=4095"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/categories?post=4095"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ingmarverheij.com\/en\/wp-json\/wp\/v2\/tags?post=4095"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}