<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7102638510356279661</id><updated>2024-08-28T22:45:29.838+03:00</updated><title type='text'>Davis&#39;s tech blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-9201755583327191420</id><published>2011-11-15T23:20:00.009+02:00</published><updated>2012-03-27T01:16:19.125+02:00</updated><title type='text'>Office where Mac computers couldn&#39;t browse HTTPS sites</title><content type='html'>Recently I was invited to troubleshoot network problems in an office where all Mac computers virtually couldn&#39;t browse any HTTPS web sites. They reported that opening online banking site tool about 4 minutes on Mac computer and only a couple of seconds on Windows PC. Meanwhile the same Mac computer was able to open the same online banking site in seconds when connected to internet at another office.&lt;br /&gt;My first suspicion was lowered (less that 1500) path MTU and ICMPs blocked by ISP firewall, however this turned out to be false (by running &lt;a href=&quot;http://www.elifulkerson.com/projects/mturoute.php&quot; target=&quot;_blank&quot;&gt;mturoute&lt;/a&gt; from a Windows machine). Also running ping with 1472 bytes of ICMP data (and DF flag set) to some hosts on the Internet verified that MTU was 1500 and showed no packet loss.&lt;br /&gt;Running &lt;a href=&quot;http://www.wireshark.org/&quot;&gt;Wireshark&lt;/a&gt; on one of affected Mac computer while opening a HTTPS website and analysis of gathered dump showed a few percent packet loss in TCP connection to HTTPS web site. In some cases (I assume, when TCP was in slow-start phase after retransmissions) these lost packets led to state when web server didn&#39;t send any more data for several seconds (after server continued sending data, a packet or two later TCP fast retransmissions were triggered and normal TCP operation resumed). After some more investigation it turned out that some ISPs configure traffic shaping with very small queues and burst limits that can be exceeded even in some moments of web page loading (by traffic created by web page download and other internet usage at those moments) causing packet loss in TCP connections. I wasn&#39;t provided with packed dump from Windows computer, so I couldn&#39;t investigate why that delay didn&#39;t happen on Windows computers.&lt;br /&gt;The most notable difference between TCP connections initiated by Mac and Windows computers was TCP timestamps (MacOS by default sends them, while Windows doesn&#39;t). When TCP timestamps (as well as TCP window scaling) were temporary (until reboot) turned off in Mac computer by invoking: &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;sudo sysctl -w net.inet.tcp.rfc1323=0&lt;/span&gt; &lt;br /&gt;HTTPS web pages opened in it as fast as in Windows computers. Afterwards the changes were made permanent by invoking: &lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;sudo sh -c &#39;echo &quot;net.inet.tcp.rfc1323=0&quot; &amp;gt;&amp;gt; /etc/sysctl.conf&#39;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/9201755583327191420/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/9201755583327191420?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/9201755583327191420'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/9201755583327191420'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2011/11/office-where-mac-computers-couldnt.html' title='Office where Mac computers couldn&#39;t browse HTTPS sites'/><author><name>Davis</name><uri>http://www.blogger.com/profile/02216375542681567358</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-3453463820610146546</id><published>2009-10-24T19:42:00.006+02:00</published><updated>2009-11-08T00:15:54.985+02:00</updated><title type='text'>Problems with old PSAPI.DLL and Internet Explorer 7 on Windows XP</title><content type='html'>Recently I faced a computer with Windows XP Service Pack 3 and Internet Explorer 8 Beta. Internet Explorer 8 Beta didn&#39;t work properly with computer&#39;s owner favorite social portal site, so we decided to downgrade IE.&lt;br /&gt;After uninstall of IE 8 we had some minor problems with IE 6, so I decided to install Internet Explorer 7. Real problems started with IE 7. I wasn&#39;t able to launch it normally - double clicking desktop icon created a shortcut to Internet Explorer on desktop. Somehow default action (&lt;span style=&quot;font-style:italic;&quot;&gt;Open Home Page&lt;/span&gt;) and also &lt;span style=&quot;font-style:italic;&quot;&gt;Start Without Add-ons&lt;/span&gt; were missing from IE desktop icon and the first action has become &lt;span style=&quot;font-style:italic;&quot;&gt;Create Shortcut&lt;/span&gt;. After typing HTTP URL in Windows Explorer address bar it showed error &lt;span style=&quot;font-style:italic;&quot;&gt;The specified procedure could not be found.&lt;/span&gt; and applications trying to initialize IE components displayed error message with &lt;span style=&quot;font-style:italic;&quot;&gt;Entry Point Not Found&lt;/span&gt; in title and text &lt;span style=&quot;font-style:italic;&quot;&gt;The procedure entry point GetProcessImageFileNameW could not be located in the dynamic link library PSAPI.DLL.&lt;/span&gt;&lt;br /&gt;Cause and resolution of this problem were quite simple - there was an older version of &lt;span style=&quot;font-style:italic;&quot;&gt;PSAPI.DLL&lt;/span&gt; in &lt;span style=&quot;font-style:italic;&quot;&gt;%SystemRoot%\system32&lt;/span&gt; folder. Copying this file from another Windows XP SP3 machine resolved the problem (this file also could be extracted from Service Pack 3 installation or Windows XP SP3 install CD). The file &lt;span style=&quot;font-style:italic;&quot;&gt;PSAPI.DLL&lt;/span&gt; is opened by different Windows components and some other software, so the old file can&#39;t just be deleted or overwritten - it has to be renamed. If &lt;span style=&quot;font-style:italic;&quot;&gt;PSAPI.DLL&lt;/span&gt; is extracted from Windows installation CD or Service Pack setup, it must be extracted from &lt;span style=&quot;font-style:italic;&quot;&gt;psapi.dl_&lt;/span&gt; by invoking &lt;span style=&quot;font-weight:bold;&quot;&gt;expand psapi.dl_ %SystemRoot%\system32\psapi.dll&lt;/span&gt; in Command Prompt.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/3453463820610146546/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/3453463820610146546?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/3453463820610146546'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/3453463820610146546'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2009/10/problems-with-psapidll-and-internet.html' title='Problems with old PSAPI.DLL and Internet Explorer 7 on Windows XP'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-7388730672918095043</id><published>2009-03-10T20:45:00.006+02:00</published><updated>2009-03-11T05:31:25.626+02:00</updated><title type='text'>Problems installing Apache HTTP Server</title><content type='html'>A few days ago I wanted to install Apache web server on a computer running Windows XP (development system), but .msi installer of current version (2.2.11) didn&#39;t initialize properly - after some seconds message consisting of &lt;i&gt;Installation Wizard Interrupted&lt;/i&gt; and &lt;i&gt;The Installation Wizard was interrupted before Apache HTTP Server 2.2.11 could be completely installed.&lt;/i&gt; appeared on installation wizard and the only enabled button was &lt;i&gt;Finish&lt;/i&gt;.&lt;br /&gt;I created Windows Installer log file by invoking &lt;b&gt;MSIEXEC /I &lt;i&gt;apache_2.2.11-win32-x86-openssl-0.9.8i.msi&lt;/i&gt; /L*v &lt;i&gt;LogFileName.txt&lt;/i&gt;&lt;/b&gt;. In log file I immediately noticed these two lines:&lt;blockquote&gt;Action ended 16:50:09: &lt;b&gt;ResolveServerName. Return value 3.&lt;/b&gt;&lt;br /&gt;MSI (c) (D0:18) [16:50:09:437]: Doing action: SetupCompleteError&lt;/blockquote&gt;I tried to enumerate areas where this particular computer was different from an average workstation/server and tried to find out what exactly could cause such error. I paid special attention to network configuration, so one of first things that came into my mind was seven network interfaces (some physical, some virtual) of this workstation. About five network interfaces were online (&lt;i&gt;Connected&lt;/i&gt;), so I disabled (simply right clicked on these network interfaces in Control Panel - Network Connections and selected &lt;i&gt;Disable&lt;/i&gt;) some of them, leaving only two NICs online. This solved my problem - Apache web server installation wizard initialized properly and I had no further problems installing Apache HTTPD. After installation I, of course, re-enabled those network interfaces.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/7388730672918095043/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/7388730672918095043?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/7388730672918095043'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/7388730672918095043'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2009/03/problems-installing-apache-http-server.html' title='Problems installing Apache HTTP Server'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-1752063272714349980</id><published>2008-11-03T20:16:00.002+02:00</published><updated>2008-11-03T20:33:49.689+02:00</updated><title type='text'>Finding broken video card cooler by analyzing crash dump</title><content type='html'>A few days ago one of my workmates had strange problems with his workstation, including several Blue Screens per day.&lt;br /&gt;I opened two crash dumps with Debugging Tools for Windows and both had video card driver on the stack. After telling this to my workmate he correctly suspected that video card cooler has failed. So we fixed his computer by replacing video card.&lt;br /&gt;With this post I wanted to accent that also hardware problems can be noticed by looking at crash dumps. For those who yet don&#39;t know how simple it is to open a crash dump I can recommend &lt;a href=&quot;http://www.networkworld.com/news/2005/041105-windows-crash.html&quot; target=&quot;_blank&quot;&gt;this article&lt;/a&gt;.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/1752063272714349980/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/1752063272714349980?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/1752063272714349980'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/1752063272714349980'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2008/11/finding-broken-video-card-cooler-by.html' title='Finding broken video card cooler by analyzing crash dump'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-49029514779911323</id><published>2008-10-05T19:09:00.004+02:00</published><updated>2008-10-05T23:48:53.481+02:00</updated><title type='text'>Problems with Visual Studio 2008 database projects</title><content type='html'>Recently I faced a situation where a software developer using Visual Studio 2008 wasn&#39;t able to do virtually anything in database projects.&lt;br /&gt;It was possible to create a new database project, but on many operations, including &lt;span style=&quot;font-style:italic;&quot;&gt;Import Database Schema&lt;/span&gt; and &lt;span style=&quot;font-style:italic;&quot;&gt;New Schema Comparison&lt;/span&gt; an error message stating &lt;span style=&quot;font-style:italic;&quot;&gt;Object reference not set to an instance of an object&lt;/span&gt; was shown.&lt;br /&gt;I was told that reinstall of Visual Studio doesn&#39;t help. Also System Restore made situation only worse.&lt;br /&gt;Accidentally it was discovered that this is a per-user problem (only developers account was affected). After some research I discovered that most likely some of Visual Studio components have had some problems previously so they were skipped from loading.&lt;br /&gt;So a simple &lt;span style=&quot;font-weight:bold;&quot;&gt;&quot;%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe&quot; /ResetSkipPkgs&lt;/span&gt; in Command Prompt of developers account solved this problem.&lt;br /&gt;Most likely this method (resetting skipped packages) can also solve some other &quot;cryptic&quot; per-user problems of Visual Studio 2008.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/49029514779911323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/49029514779911323?isPopup=true' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/49029514779911323'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/49029514779911323'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2008/10/problems-with-visual-studio-2008.html' title='Problems with Visual Studio 2008 database projects'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-2303968332652081588</id><published>2008-02-02T14:35:00.000+02:00</published><updated>2008-02-09T02:43:10.296+02:00</updated><title type='text'>Security of Windows (PPTP based) VPNs</title><content type='html'>Recently I have faced two interesting articles about security of PPTP (most common VPN type natively supported by Windows). PPTP requires virtually no configuration on client side (only server name/IP address, username and password are required to connect), so it is easy to set up, deploy and use. I have always had several questions about security of PPTP and they are answered here: &lt;br /&gt;&lt;ul style=&quot;margin: 0px; padding: 5px; padding-left: 3ex&quot;&gt; &lt;li&gt;&lt;a href=&quot;http://www.schneier.com/paper-pptp.html&quot; target=&quot;_blank&quot;&gt;http://www.schneier.com/paper-pptp.html&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href=&quot;http://www.schneier.com/paper-pptpv2.html&quot; target=&quot;_blank&quot;&gt;http://www.schneier.com/paper-pptpv2.html&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/2303968332652081588/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/2303968332652081588?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/2303968332652081588'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/2303968332652081588'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2008/02/security-of-windows-pptp-based-vpns.html' title='Security of Windows (PPTP based) VPNs'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-1093892322489480555</id><published>2007-10-21T15:28:00.000+02:00</published><updated>2007-11-04T00:39:16.220+02:00</updated><title type='text'>Removing Direct3D updates</title><content type='html'>A few days ago I installed Direct3D updates for DirectX 9.0c (required by a game) on one laptop computer with Windows XP SP2.&lt;br /&gt;I was pretty scared, because after installing these updates any fullscreen Direct3D application (e.g. most games) crashed notebook&#39;s video driver in a few seconds (sometimes with a bluescreen, but more often with &lt;span style=&quot;font-style:italic;&quot;&gt;Windows - Display Driver Stopped Responding&lt;/span&gt; error message). As far as I know Microsoft doesn&#39;t provide users with any opportunity to uninstall DirectX (and it&#39;s updates). There are some third party DirectX removal tools, but I wasn&#39;t willing to risk to use them, so I made an experiment on virtual machine.&lt;br /&gt;It was a nice surprise, that Direct3D updates (at least those I had installed) don&#39;t replace any files, neither they create any noticeable registry entries. So I simply deleted Direct3D update files from the laptop by invoking &lt;span style=&quot;font-weight:bold;&quot;&gt;ren&amp;nbsp;%SystemRoot%\system32\d3dx9_*.dll&amp;nbsp;*.dll.bak&lt;/span&gt; in Command Prompt. After deleting these files Direct3D started again to work normally.&lt;br /&gt;I assume that similar methods may be used to remove updates for other DirectX components as well.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/1093892322489480555/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/1093892322489480555?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/1093892322489480555'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/1093892322489480555'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2007/10/removing-direct3d-updates.html' title='Removing Direct3D updates'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-9032784544804936308</id><published>2007-08-25T20:30:00.000+03:00</published><updated>2007-08-27T00:23:37.354+03:00</updated><title type='text'>Strange memory/registry problems on Terminal Server</title><content type='html'>Recently I was asked to help troubleshoot a terminal server that sometimes couldn&#39;t load registry hives of users logging on. The server was running Windows 2000 Server and there were lots of users connecting to it.&lt;br /&gt;When hive for &lt;span style=&quot;font-style:italic;&quot;&gt;Administrator&lt;/span&gt; account wasn&#39;t loaded these three errors were logged to event log:&lt;br /&gt;&lt;blockquote&gt;RegLoadKey failed. Return value Insufficient system resources exist to complete the requested service.  for C:\Documents and Settings\Administrator\ntuser.dat.&lt;/blockquote&gt;&lt;blockquote&gt;Windows cannot load your profile. Please increase the registry size and restart the computer.&lt;/blockquote&gt;&lt;blockquote&gt;Windows cannot load the user&#39;s profile but has logged you on with the default profile for the system.&lt;br /&gt;DETAIL - Insufficient system resources exist to complete the requested service.&lt;/blockquote&gt;Also some virtual memory related errors were logged. Partially working solution (increasing registry size limit using System Properties control panel applet and increasing &lt;span style=&quot;font-style:italic;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/29937.mspx&quot; target=&quot;_blank&quot;&gt;PagedPoolSize&lt;/a&gt;&lt;/span&gt; registry value) was found in some forum before I started my research.&lt;br /&gt;At first I looked at pool usage (&lt;span style=&quot;font-style:italic;&quot;&gt;Kernel Memory&lt;/span&gt; in &lt;span style=&quot;font-style:italic;&quot;&gt;Performance&lt;/span&gt; tab of Task Manager) and value for paged pool was pretty big (over 150 MB). Next I &lt;a href=&quot;http://support.microsoft.com/kb/177415&quot; target=&quot;_blank&quot;&gt;enabled pool tagging and used Poolmon.exe&lt;/a&gt; to see what consumes most of paged pool. Name of the tag that used about 128 MB of paged pool was CM (referred as &lt;span style=&quot;font-style:italic;&quot;&gt;Configuration Manager (registry)&lt;/span&gt; in &lt;span style=&quot;font-style:italic;&quot;&gt;pooltag.txt&lt;/span&gt;), so it probably was actually related to registry. Examining size of main registry hive files (located at &lt;span style=&quot;font-style:italic;&quot;&gt;%SystemRoot%\system32\config&lt;/span&gt;) revealed that hive named &lt;span style=&quot;font-style:italic;&quot;&gt;default&lt;/span&gt; (this hive stores &lt;span style=&quot;font-style:italic;&quot;&gt;HKEY_USERS\.DEFAULT&lt;/span&gt; registry key) was about 100 MB in size, so I tried to use &lt;a href=&quot;http://www.larshederer.homepage.t-online.de/erunt/&quot; target=&quot;_blank&quot;&gt;NTREGOPT&lt;/a&gt; to compact that hive.&lt;br /&gt;Hive was compacted to about 85 MB that is far beyond its size on average systems. While examining contents of that hive (exported as usual .reg file) I noticed that most of .reg file is consumed by &lt;span style=&quot;font-style:italic;&quot;&gt;HKEY_USERS\.DEFAULT\Printers\DevModes2&lt;/span&gt; key. This key was trashed by lots of printers connected via terminal services clients. I added a Scheduled Task that invokes &lt;span style=&quot;font-weight:bold;&quot;&gt;regedit /s &lt;span style=&quot;font-style:italic;&quot;&gt;cleanprinters.reg&lt;/span&gt;&lt;/span&gt; every night (when no users should be connected) and created &lt;span style=&quot;font-style:italic;&quot;&gt;cleanprinters.reg&lt;/span&gt; with the following contents:&lt;br /&gt;&lt;blockquote&gt;REGEDIT4&lt;br /&gt;&lt;br /&gt;[-HKEY_USERS\.DEFAULT\Printers\DevModes2]&lt;br /&gt;[HKEY_USERS\.DEFAULT\Printers\DevModes2]&lt;br /&gt;&lt;/blockquote&gt;After running cleanup task the first time and once more compacting registry with NTREGOPT hive named &lt;span style=&quot;font-style:italic;&quot;&gt;default&lt;/span&gt; and used paged pool sizes decreased almost to normal.&lt;br /&gt;&lt;br /&gt;P.S. After all troubleshooting I found that this problem is also described in &lt;a href=&quot;http://support.microsoft.com/kb/906952&quot; target=&quot;_blank&quot;&gt;MS KB906952&lt;/a&gt;, but anyway I like my own solution.&lt;br /&gt;P.S.2 There were also trashed some other (printer dependant) registry keys (under &lt;span style=&quot;font-style:italic;&quot;&gt;HKEY_USERS\.DEFAULT\Software&lt;/span&gt; and per-user &lt;span style=&quot;font-style:italic;&quot;&gt;HKEY_USERS\SID-of-user\Software&lt;/span&gt;) increasing registry size for about 14 MB for default user and 7 MB for each regular user.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/9032784544804936308/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/9032784544804936308?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/9032784544804936308'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/9032784544804936308'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2007/08/strange-memoryregistry-problems-on.html' title='Strange memory/registry problems on Terminal Server'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-7908895325759316337</id><published>2007-05-21T17:47:00.000+03:00</published><updated>2007-09-10T18:10:05.613+02:00</updated><title type='text'>Manual Folder Redirection</title><content type='html'>Some days ago I faced folder redirection problems for some users who&#39;s &lt;span style=&quot;font-style: italic;&quot;&gt;My Documents&lt;/span&gt; folders were redirected to share where they had &lt;span style=&quot;font-style: italic;&quot;&gt;Change&lt;/span&gt; (not &lt;span style=&quot;font-style: italic;&quot;&gt;Full Control&lt;/span&gt;) access (additionally restrictive NTFS permissions were used). These users were also configured to use roaming profiles.&lt;br /&gt;The problem was that &lt;span style=&quot;font-style: italic;&quot;&gt;My Documents&lt;/span&gt; folder wasn&#39;t redirected for some (not all) users, instead it pointed to local copy of &lt;span style=&quot;font-style: italic;&quot;&gt;My Documents&lt;/span&gt; folder from roaming profile (in other words My Documents path for those users was &quot;%userprofile%\My Documents&quot; instead of &quot;\\file-server\users\%username%\My Documents&quot;).&lt;br /&gt;Also some &lt;span style=&quot;font-style: italic;&quot;&gt;.tmp&lt;/span&gt; files were created in &quot;\\file-server\users\%username%\My Documents&quot; and an error similar to this was logged in event log:&lt;br /&gt;&lt;blockquote&gt;&lt;span style=&quot;font-size:85%;&quot;&gt;Failed to perform redirection of folder My Documents. The files for the redirected folder could not be moved to the new location. The folder is configured to be redirected to &amp;lt;\\file-server\users\%username%\My Documents&amp;gt;. Files were being moved from &amp;lt;C:\Documents and Settings\Davis\My Documents&amp;gt; to &amp;lt;\\file-server\users\Davis\My Documents&amp;gt;. The following error occurred while copying &amp;lt;C:\Documents and Settings\Davis\My Documents\My Music&amp;gt; to &amp;lt;\\file-server\users\Davis\My Documents\My Music&amp;gt;:&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;The security descriptor structure is invalid.&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;Although this was not tested, I suppose that folder redirection needs &lt;span style=&quot;font-style: italic;&quot;&gt;Full Control&lt;/span&gt; access to redirection destination to copy files. I didn&#39;t want to give users ability to change access permissions on their folders, so I didn&#39;t consider &lt;span style=&quot;font-style: italic;&quot;&gt;Full Control&lt;/span&gt; access as a good solution. Also just setting registry paths via logon script didn&#39;t seem to be a good idea.&lt;br /&gt;After some search on internet I didn&#39;t found any suitable solution (this is the main reason why I have published this).&lt;br /&gt;The main idea is that folder redirection will work fine if there will be no folders/files to move. So I simply wrote a script that moved all &lt;span style=&quot;font-style: italic;&quot;&gt;My Documents&lt;/span&gt; folders from roaming profiles to folder redirection targets (actually that script was a bit different but this doesn&#39;t matter).&lt;br /&gt;Basically the solution is to manually (with help of a script) move folders that should be redirected to their redirection targets. When there will be no folders to move, folder redirection will simply change registry paths instead of complaining about permissions.&lt;br /&gt;Moving folders is very simple with roaming profiles and I think it can be easily implemented in logon scripts for automated processing of local profiles as well.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/7908895325759316337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/7908895325759316337?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/7908895325759316337'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/7908895325759316337'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2007/05/manual-folder-redirection.html' title='Manual Folder Redirection'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-4999314003405055598</id><published>2007-04-17T07:20:00.000+02:00</published><updated>2007-04-17T14:10:59.341+02:00</updated><title type='text'>Auditing object access to trace malware</title><content type='html'>Windows has built-in object access auditing that can be used to record changes on NTFS volumes.&lt;br /&gt;Setting auditing of successful file creations in folders most commonly affected by malware, can&lt;br /&gt;facilitate removal of such software.&lt;br /&gt;&lt;br /&gt;I think good settings would be auditing of successful file creations in &lt;span style=&quot;font-style: italic;&quot;&gt;%SystemRoot%&lt;/span&gt;, &lt;span style=&quot;font-style: italic;&quot;&gt;%SystemRoot%\system32&lt;/span&gt; including subfolders and &lt;span style=&quot;font-style: italic;&quot;&gt;%ProgramFiles%&lt;/span&gt; including subfolders.&lt;br /&gt;Auditing can be configured in folders &lt;span style=&quot;font-style: italic;&quot;&gt;Properties&lt;/span&gt; - &lt;span style=&quot;font-style: italic;&quot;&gt;Advanced Security Settings&lt;/span&gt; - &lt;span style=&quot;font-style: italic;&quot;&gt;Auditing&lt;/span&gt; tab.&lt;br /&gt;Additionally &lt;span style=&quot;font-style: italic;&quot;&gt;Audit object access&lt;/span&gt; must be enabled in Security Policy of computer.&lt;br /&gt;With such settings all new file creations in abovementioned folders will be logged to Security event log. Also size and retention of security event log should be adjusted to prevent repletion.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/4999314003405055598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/4999314003405055598?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/4999314003405055598'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/4999314003405055598'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2007/04/auditing-object-access-to-find-malware.html' title='Auditing object access to trace malware'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-7698448753384022687</id><published>2007-02-21T23:08:00.000+02:00</published><updated>2007-02-23T02:05:29.639+02:00</updated><title type='text'>Icon editor</title><content type='html'>As a software developer I have always wanted a good and free icon editing software.&lt;br /&gt;Recently I have found one - IcoFX. It has all major features I need for icon creation and it is freeware.&lt;br /&gt;&lt;a href=&quot;http://icofx.xhost.ro/&quot; target=&quot;_blank&quot;&gt;http://icofx.xhost.ro/&lt;/a&gt; - IcoFX website</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/7698448753384022687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/7698448753384022687?isPopup=true' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/7698448753384022687'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/7698448753384022687'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2007/02/icofx-freeware-icon-editor.html' title='Icon editor'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7102638510356279661.post-3741282940580296067</id><published>2007-01-29T00:24:00.000+02:00</published><updated>2007-01-29T02:16:42.491+02:00</updated><title type='text'>UTF-8 search with MySQL and PHP</title><content type='html'>A few minutes ago I helped a friend of mine to troubleshoot Unicode search in his web page. He was using a &lt;span style=&quot;font-weight: bold;&quot;&gt;TEXT&lt;/span&gt; type field with &lt;span style=&quot;font-weight: bold;&quot;&gt;utf8&lt;/span&gt; encoding and search wasn&#39;t working properly. Also encoding of web page was UTF-8.&lt;br /&gt;After a little research connection encoding turned out to be &lt;span style=&quot;font-weight: bold;&quot;&gt;latin1&lt;/span&gt;. So a simple &lt;span style=&quot;font-weight: bold;&quot;&gt;mysql_query(&quot;SET NAMES utf8&quot;);&lt;/span&gt; before actual database queries solved his problem.</content><link rel='replies' type='application/atom+xml' href='https://davis-nt.blogspot.com/feeds/3741282940580296067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment/fullpage/post/7102638510356279661/3741282940580296067?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/3741282940580296067'/><link rel='self' type='application/atom+xml' href='https://www.blogger.com/feeds/7102638510356279661/posts/default/3741282940580296067'/><link rel='alternate' type='text/html' href='https://davis-nt.blogspot.com/2007/01/utf-8-search-with-mysql-and-php.html' title='UTF-8 search with MySQL and PHP'/><author><name>Davis</name><uri>http://www.blogger.com/profile/05743392243832454415</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>