<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IIS Hacks</title>
	<atom:link href="http://www.iishacks.com/rss2/" rel="self" type="application/rss+xml" />
	<link>http://www.iishacks.com</link>
	<description></description>
	<lastBuildDate>Fri, 26 Apr 2013 19:31:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Configure Exchange 2013 to send external email</title>
		<link>http://www.iishacks.com/2013/04/26/configure-exchange-2013-to-send-external-email/</link>
		<comments>http://www.iishacks.com/2013/04/26/configure-exchange-2013-to-send-external-email/#comments</comments>
		<pubDate>Fri, 26 Apr 2013 15:48:47 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Exchange Server]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Exchange 2013]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=926</guid>
		<description><![CDATA[So you&#8217;ve just installed Exchange 2013 and you can&#8217;t send emails to other domains? No problem. Similar to Exchange 2010, Exchange 2013 is installed without a default send connector enabled. In order to send emails to other Exchange servers or external domains, you&#8217;ll need to set it up. Follow the steps below to setup a send connector [...]<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.iishacks.com/2007/11/18/how-to-view-email-headers-in-common-email-programs/' rel='bookmark' title='How to View Email Headers in Common Email Programs'>How to View Email Headers in Common Email Programs</a></li>
<li><a href='http://www.iishacks.com/2007/06/07/spf-records-for-windows-email-servers/' rel='bookmark' title='SPF Records for Windows Email Servers'>SPF Records for Windows Email Servers</a></li>
<li><a href='http://www.iishacks.com/2007/06/05/large-exchange-server-performance-tip/' rel='bookmark' title='Large Exchange Server Performance Tip'>Large Exchange Server Performance Tip</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>So you&#8217;ve just installed Exchange 2013 and you can&#8217;t send emails to other domains? No problem. Similar to Exchange 2010, Exchange 2013 is installed without a default send connector enabled. In order to send emails to other Exchange servers or external domains, you&#8217;ll need to set it up. Follow the steps below to setup a send connector that will enable email to be sent to all external domains.</p>
<p>&nbsp;</p>
<p><strong>1.</strong> Login to the Exchange Control Panel: <strong>https://FQDN/ecp</strong> (or localhost, or IP address) internally or using the external IP or Domain externally. (<strong>Security tip:</strong> don&#8217;t use the default &#8220;administrator&#8221; account in production&#8230;I only did this for testing)</p>
<figure class="full-width-mobile alignnone " style="width: 700px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange1.png" class="wp-image-927" /></figure>
<p>&nbsp;</p>
<p><strong>2. </strong>Go to <strong>Mail Flow</strong> and <strong>Send Connectors.</strong> Click the + (plus) button to add a new external send connector.</p>
<figure class="full-width-mobile alignnone " style="width: 700px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange2.png" class="wp-image-928" /></figure>
<p>&nbsp;</p>
<p><strong>3.</strong>  Give it a name, such as <strong>&#8220;External Email Connector</strong>&#8221; and select Type: <strong>Internet</strong>. Click <strong>Next</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 555px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange3.png" class="wp-image-930" /></figure>
<p>&nbsp;</p>
<p><strong>4. </strong>Select &#8220;<strong>MX record associated with recipient domain</strong>&#8221; for sending email, unless your ISP or Host requires the use of Smart Hosts. Click <strong>Next</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 555px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange4.png" class="wp-image-931" /></figure>
<p>&nbsp;</p>
<p><strong>5. </strong>Press the + (plus) button to add a new <strong>Address Space</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 556px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange5.png" class="wp-image-932" /></figure>
<p>&nbsp;</p>
<p><strong>6.</strong> Under <strong>Type</strong> enter <strong>SMTP</strong> and under <strong>Cost</strong> enter <strong>1</strong>. Under <strong>FQDN</strong> enter<strong> *</strong>. This ensures you can send email to<span style="text-decoration: underline;"> all Internet domains</span>. If you want to restrict which domains you can send email to, create a new Address Space for each domain, putting the domain name in the FQDN field. This is a useful feature for companies that require high security and control of emails being sent out (Government, Financial, Insurance). Click <strong>Next</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 516px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange6.png" class="wp-image-933" /></figure>
<p>&nbsp;</p>
<p><strong>7.</strong>  Click <strong>Next</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 555px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange7.png" class="wp-image-934" /></figure>
<p>&nbsp;</p>
<p><strong>8.</strong> Press the + (plus) button to add a new <strong>Source Server</strong> (if you are running only one exchange server, this will be the current/transport server).</p>
<figure class="full-width-mobile alignnone " style="width: 553px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange8.png" class="wp-image-935" /></figure>
<p>&nbsp;</p>
<p><strong>9. </strong>All exchange servers in the organization will be listed. Highlight the one you wish to use for transport, and click <strong>Add</strong>. Click <strong>OK</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 512px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange9.png" class="wp-image-936" /></figure>
<p>&nbsp;</p>
<p><strong>10. </strong>Click <strong>Finish</strong>.</p>
<figure class="full-width-mobile alignnone " style="width: 554px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange10.png" class="wp-image-937" /></figure>
<p>&nbsp;</p>
<p><strong>11.</strong> Now we need to set the FQDN for the server sending external emails. Highlight the External Email Connector you just created. Click the <strong>Edit</strong> button above.</p>
<figure class="full-width-mobile alignnone " style="width: 660px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange11.png" class="wp-image-938" /></figure>
<p>&nbsp;</p>
<p><strong>12.</strong> Click on <strong>Scoping</strong>, scroll to the bottom and enter the <strong>FQDN</strong> of your server. This will likely be <strong>domainname.com</strong> or match your MX record (email.domainname.com). Click <strong>Save</strong>. This is an important step as it will decrease the likelihood your organization&#8217;s email being flagged as spam, by properly identifying your server to others. <span style="text-decoration: underline;">Exchange 2013 is now setup to send external emails properly.</span></p>
<figure class="full-width-mobile alignnone " style="width: 602px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/04/Exchange13.png" class="wp-image-939" /></figure>
<p>&nbsp;</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.iishacks.com/2007/11/18/how-to-view-email-headers-in-common-email-programs/' rel='bookmark' title='How to View Email Headers in Common Email Programs'>How to View Email Headers in Common Email Programs</a></li>
<li><a href='http://www.iishacks.com/2007/06/07/spf-records-for-windows-email-servers/' rel='bookmark' title='SPF Records for Windows Email Servers'>SPF Records for Windows Email Servers</a></li>
<li><a href='http://www.iishacks.com/2007/06/05/large-exchange-server-performance-tip/' rel='bookmark' title='Large Exchange Server Performance Tip'>Large Exchange Server Performance Tip</a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2013/04/26/configure-exchange-2013-to-send-external-email/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Connection Response Slow on Windows 2008 / 2012</title>
		<link>http://www.iishacks.com/2013/02/18/mysql-connection-response-slow-on-windows-2008-2012/</link>
		<comments>http://www.iishacks.com/2013/02/18/mysql-connection-response-slow-on-windows-2008-2012/#comments</comments>
		<pubDate>Mon, 18 Feb 2013 20:18:32 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Internet Information Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Windows / Server]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2012]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=874</guid>
		<description><![CDATA[One of the reasons why a PHP / MySQL combo seems so &#8220;slow&#8221; with regards to response times when moving from Windows 2003 (IIS6) to Windows 7/2008 (IIS7) / 2012 (IIS8), is the way many scripts connect to MySQL and having IPv6 enabled by default. Many server installations leave WordPress or other PHP script installs to default to &#8220;localhost&#8221; [...]<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.iishacks.com/2011/02/14/how-to-install-php-5-3-fastcgi-on-windows-2008-iis-7/' rel='bookmark' title='How to Install PHP 5.3 FastCGI on Windows 2008 IIS 7'>How to Install PHP 5.3 FastCGI on Windows 2008 IIS 7</a></li>
<li><a href='http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64/' rel='bookmark' title='How to install PHP ISAPI on Windows 2008 IIS7 x64'>How to install PHP ISAPI on Windows 2008 IIS7 x64</a></li>
<li><a href='http://www.iishacks.com/2007/07/10/wordpress-php-on-windows-server-iis-6/' rel='bookmark' title='WordPress &amp; PHP on Windows Server IIS 6'>WordPress &#038; PHP on Windows Server IIS 6</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>One of the reasons why a PHP / MySQL combo seems so &#8220;slow&#8221; with regards to response times when moving from Windows 2003 (IIS6) to Windows 7/2008 (IIS7) / 2012 (IIS8), is the way many scripts connect to MySQL and having IPv6 enabled by default.</p>
<p>Many server installations leave WordPress or other PHP script installs to default to &#8220;localhost&#8221; when connecting to MySQL. Windows 7, 2008, 2012 have an issue with resolving localhost when IPv6 is enabled. With iishacks.com, the initial response time from MySQL goes from 600ms (using localhost) down to 70ms (using 127.0.0.1).</p>
<p>If your issue is initial response time, but MySQL seems to function well otherwise, your connection string may be at fault.<strong> Instead of disabling IPv6, try changing &#8220;localhost&#8221; to &#8220;127.0.0.1&#8243; </strong> in your scripts and see if the response times improve.</p>
<figure class="full-width-mobile alignnone " style="width: 255px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2013/02/localhostto127.jpg" class="wp-image-879" /></figure>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.iishacks.com/2011/02/14/how-to-install-php-5-3-fastcgi-on-windows-2008-iis-7/' rel='bookmark' title='How to Install PHP 5.3 FastCGI on Windows 2008 IIS 7'>How to Install PHP 5.3 FastCGI on Windows 2008 IIS 7</a></li>
<li><a href='http://www.iishacks.com/2008/07/03/how-to-install-php-isapi-on-windows-2008-iis7-x64/' rel='bookmark' title='How to install PHP ISAPI on Windows 2008 IIS7 x64'>How to install PHP ISAPI on Windows 2008 IIS7 x64</a></li>
<li><a href='http://www.iishacks.com/2007/07/10/wordpress-php-on-windows-server-iis-6/' rel='bookmark' title='WordPress &amp; PHP on Windows Server IIS 6'>WordPress &#038; PHP on Windows Server IIS 6</a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2013/02/18/mysql-connection-response-slow-on-windows-2008-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing an SSD Freezing on Windows 7</title>
		<link>http://www.iishacks.com/2012/10/14/fixing-an-ssd-freezing-on-windows-7/</link>
		<comments>http://www.iishacks.com/2012/10/14/fixing-an-ssd-freezing-on-windows-7/#comments</comments>
		<pubDate>Sun, 14 Oct 2012 21:25:57 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Windows / Server]]></category>
		<category><![CDATA[Disk Queue]]></category>
		<category><![CDATA[SSD]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=852</guid>
		<description><![CDATA[I recently installed a new Intel 520 series SSD in my Thinkpad W520. I didn&#8217;t notice any issues for the first few weeks until I started running 2 virtual machines at once. There was a stuttering (or freezing) every 60-90 seconds for about 10 seconds. Taking a look at Perfmon, I found the Disk Queue [...]<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.iishacks.com/2008/03/17/windows-tcpip-service-worm-and-uninstalling-tcpip-on-a-domain-controller/' rel='bookmark' title='Windows TCP/IP Service Worm and Uninstalling TCP/IP on a Domain Controller'>Windows TCP/IP Service Worm and Uninstalling TCP/IP on a Domain Controller</a></li>
<li><a href='http://www.iishacks.com/2010/02/24/windows-xp-shuts-down-after-login-pc-off-bat/' rel='bookmark' title='Windows XP shuts down after login &#8211; PC-OFF.BAT'>Windows XP shuts down after login &#8211; PC-OFF.BAT</a></li>
<li><a href='http://www.iishacks.com/2009/06/30/how-to-secure-erase-reset-an-intel-solid-state-drive-ssd/' rel='bookmark' title='How to Secure Erase (reset) an Intel Solid State Drive (SSD)'>How to Secure Erase (reset) an Intel Solid State Drive (SSD)</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>I recently installed a new Intel 520 series SSD in my Thinkpad W520. I didn&#8217;t notice any issues for the first few weeks until I started running 2 virtual machines at once. There was a stuttering (or freezing) every 60-90 seconds for about 10 seconds.</p>
<p>Taking a look at Perfmon, I found the Disk Queue to be very high &#8211; during the freezing the Max Queue was up over 3500. <a href="http://www.iishacks.com/2008/09/12/high-avg-disk-queue-length-and-finding-the-cause/">There is a relationship between current and average queue explained here</a>, but a good rule of thumb is that a length of 2 per disk is reasonable. Any more than that for an extended period and there is a disk bottleneck.</p>
<figure class="full-width-mobile alignnone " style="width: 518px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2012/10/DiskQueue.png" class="wp-image-853" /></figure>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>How to stop the solid state drive from Freezing</strong></span></p>
<p>Intel Rapid Storage Technology (RST) is the culprit, specifically LPM (Link Power Management) and DIPM (Device Initiated Power Management). Both are recommended to be enabled as they lower power consumption on SATA devices that support it, but in certain circumstances they may cause freezing, stuttering and other undesirable performance degradation.</p>
<p>In order to turn off LPM and DIPM, insert the text below into notepad and save the file as LPM.reg and run it or <a href="http://www.iishacks.com/wp-content/uploads/2012/10/lpm.zip">download the file and unzip</a>. The following disables LPM/DIPM for all SATA ports on a machine. If you only want to disable for a specific port, delete the other keys below. This will work for any SSD experiencing stuttering or freezing while using Intel RST drivers only (MS Default AHCI not included). Make sure you restart after you&#8217;ve run the registry file.</p>
<div class="codesnip-container" >Windows Registry Editor Version 5.00</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStor\Parameters\Port0]</p>
<p>&#8220;LPM&#8221;=dword:00000000<br />
&#8220;LPMDSTATE&#8221;=dword:00000000<br />
&#8220;DIPM&#8221;=dword:00000000</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStor\Parameters\Port1]</p>
<p>&#8220;LPM&#8221;=dword:00000000<br />
&#8220;LPMDSTATE&#8221;=dword:00000000<br />
&#8220;DIPM&#8221;=dword:00000000</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStor\Parameters\Port2]</p>
<p>&#8220;LPM&#8221;=dword:00000000<br />
&#8220;LPMDSTATE&#8221;=dword:00000000<br />
&#8220;DIPM&#8221;=dword:00000000</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStor\Parameters\Port3]</p>
<p>&#8220;LPM&#8221;=dword:00000000<br />
&#8220;LPMDSTATE&#8221;=dword:00000000<br />
&#8220;DIPM&#8221;=dword:00000000</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStor\Parameters\Port4]</p>
<p>&#8220;LPM&#8221;=dword:00000000<br />
&#8220;LPMDSTATE&#8221;=dword:00000000<br />
&#8220;DIPM&#8221;=dword:00000000</p>
<p>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\iaStor\Parameters\Port5]</p>
<p>&#8220;LPM&#8221;=dword:00000000<br />
&#8220;LPMDSTATE&#8221;=dword:00000000<br />
&#8220;DIPM&#8221;=dword:00000000</p></div>
<p>&nbsp;</p>
<p>After you&#8217;re done, the Intel SSD Toolbox will show a warning in the system tuner (screenshot below), this is normal. You have intentionally disabled LPM/DIPM, <strong>do not click &#8220;Tune!&#8221;.</strong></p>
<p>&nbsp;</p>
<figure class="full-width-mobile alignnone " style="width: 521px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2012/10/dipm.png" class="wp-image-855" /></figure>
<p>&nbsp;</p>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.iishacks.com/2008/03/17/windows-tcpip-service-worm-and-uninstalling-tcpip-on-a-domain-controller/' rel='bookmark' title='Windows TCP/IP Service Worm and Uninstalling TCP/IP on a Domain Controller'>Windows TCP/IP Service Worm and Uninstalling TCP/IP on a Domain Controller</a></li>
<li><a href='http://www.iishacks.com/2010/02/24/windows-xp-shuts-down-after-login-pc-off-bat/' rel='bookmark' title='Windows XP shuts down after login &#8211; PC-OFF.BAT'>Windows XP shuts down after login &#8211; PC-OFF.BAT</a></li>
<li><a href='http://www.iishacks.com/2009/06/30/how-to-secure-erase-reset-an-intel-solid-state-drive-ssd/' rel='bookmark' title='How to Secure Erase (reset) an Intel Solid State Drive (SSD)'>How to Secure Erase (reset) an Intel Solid State Drive (SSD)</a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2012/10/14/fixing-an-ssd-freezing-on-windows-7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows 7 Desktop Icons and Shortcuts Disappearing</title>
		<link>http://www.iishacks.com/2011/11/30/fix-windows-7-desktop-icons-and-shortcuts-disappearing/</link>
		<comments>http://www.iishacks.com/2011/11/30/fix-windows-7-desktop-icons-and-shortcuts-disappearing/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 05:07:34 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Windows / Server]]></category>
		<category><![CDATA[Desktop Icons]]></category>
		<category><![CDATA[Desktop Shortcuts]]></category>
		<category><![CDATA[System Maintenance]]></category>
		<category><![CDATA[Windows 7]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=808</guid>
		<description><![CDATA[So your desktop shortcuts are missing? If they are all missing, chances are they might have been deleted or somehow, either you or a program, has disabled desktop icons. See Method 1 below. If some of your icons look funny, are missing thumbnails, or the desktop doesn&#8217;t &#8220;refresh&#8221; when you&#8217;ve placed new items on it, [...]<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.iishacks.com/2009/11/10/block-ip-addresses-using-ip-security-policy-in-windows-server-2003/' rel='bookmark' title='Block IP Addresses using IP Security Policy in Windows Server 2003'>Block IP Addresses using IP Security Policy in Windows Server 2003</a></li>
<li><a href='http://www.iishacks.com/2007/09/24/windows-server-2003-password-policy-changes/' rel='bookmark' title='Windows Server 2003 Password Policy Changes'>Windows Server 2003 Password Policy Changes</a></li>
<li><a href='http://www.iishacks.com/2007/06/07/tcp-ip-filtering-for-windows/' rel='bookmark' title='TCP / IP Filtering For Windows'>TCP / IP Filtering For Windows</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p><strong>So your desktop shortcuts are missing?</strong></p>
<p>If they are all missing, chances are they might have been deleted or somehow, either you or a program, has disabled desktop icons. See <span style="text-decoration: underline;">Method 1</span> below.</p>
<p>If some of your icons look funny, are missing thumbnails, or the desktop doesn&#8217;t &#8220;refresh&#8221; when you&#8217;ve placed new items on it, try <span style="text-decoration: underline;">Method 2</span> as your icon cache may be corrupted.</p>
<p>If your desktop icons are missing and they are all network, broken local shortcuts, or shortcuts to files on a removable USB drive, system maintenance is to blame. There are two methods to help with that:</p>
<ul>
<li><span style="text-decoration: underline;">Method 3</span> is the easy way. The downside is that it disables all system maintenance. I would only recommend this as a way to test if that is indeed the correct solution to your problem.</li>
<li><span style="text-decoration: underline;">Method 4</span> is the recommended method, as it is less of a band-aid solution. It involves increasing the threshold that Windows will have <em>before</em> it starts cleaning up broken shortcuts.</li>
</ul>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Method 1: All Icons missing from Desktop</strong></span></p>
<ol>
<li>Right-Click on an empty part of the Desktop.</li>
<li>Hover over &#8220;View&#8221; and make sure &#8220;Show Desktop Icons&#8221; is checked.</li>
</ol>
<figure class="full-width-mobile alignnone " style="width: 491px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/view1.png" class="wp-image-823" /></figure>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Method 2: Rebuild The Icon Cache</strong></span></p>
<p>Open notepad, paste the following code, and then save it as IconFix.bat. Go to where you saved the file and double click it. As an alternative, you can type the lines one-by-one in the command prompt (Start -&gt; Search -&gt; cmd -&gt; Right-click and select &#8220;Run as Administrator&#8221;).</p>
<div class="codesnip-container" >
<div class="html4strict codesnip" style="font-family:monospace;">taskkill /F /IM explorer.exe<br />
cd /d %userprofile%\AppData\Local<br />
attrib –h IconCache.db<br />
del IconCache.db<br />
start explorer.exe</div>
</div>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Method 3: Disable System Maintenance</strong></span></p>
<ol>
<li>Go to the Start Menu -&gt; Control Panel -&gt; System and Security -&gt; Under &#8220;Action Center&#8221; click on &#8220;Troubleshoot Common Computer Problems&#8221; -&gt; Click &#8220;Change Settings&#8221; on the left side.</li>
<li>Under &#8220;Computer Maintenance&#8221; select &#8220;off&#8221; and under &#8220;Other Settings&#8221; remove both checkmarks as shown in the screenshots below.</li>
</ol>
<figure class="full-width-mobile alignnone " style="width: 690px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/tshoot0.png" class="wp-image-821" /></figure>
<figure class="full-width-mobile alignnone " style="width: 577px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/tshoot1.png" class="wp-image-822" /></figure>
<p>&nbsp;</p>
<p><span style="text-decoration: underline;"><strong>Method 4: Modify The Scheduled Task Files</strong></span></p>
<p>Try this when your network shortcuts or broken shortcuts disappear from your desktop. Windows 7 has a broken-shortcut threshold of 4. Some people recommend deleting the script file, but modifying it to increase the threshold to a higher number is a safer way to do it, while still allowing system maintenance to run (unlike Method 3). This method does require a bit more work, and there is a greater risk to system damage than the previous methods. There are some screenshots below to help you along with the steps.</p>
<ol>
<li>Double-click on &#8220;Computer&#8221; on the Desktop, or right-click on the Start Menu and click &#8220;Open Windows Explorer.&#8221;</li>
<li>Go to: <strong>C:\Windows\diagnostics\scheduled\Maintenance.</strong></li>
<li>Right-click on <strong>TS_BrokenShortcuts.ps1 </strong>and select &#8220;Properties.&#8221;</li>
<li>Click on the &#8220;Security&#8221; tab.</li>
<li>Click on &#8220;Advanced&#8221; near the bottom.</li>
<li>The Advanced Security settings dialog will pop up. Click on the &#8220;Owner&#8221; tab.</li>
<li>The Current Owner will show TrustedInstaller. Click &#8220;Edit&#8221; near the bottom.</li>
<li>Under &#8220;Change Owner To:&#8221; select your username.</li>
<li>Click &#8220;OK&#8221; to close the dialog. Click &#8220;OK&#8221; to the warning.</li>
<li>After returning to the Advanced Security settings dialog, it will show your user as the current owner. Click &#8220;OK.&#8221;</li>
<li>Now that you are back in the Security tab, click &#8220;Edit.&#8221;</li>
<li>The Permissions dialog will pop up. You are now free to select a group or user and modify the permissions on the file. You will likely be part of the &#8220;Users&#8221; group. Select &#8220;Users&#8221; and under permissions select &#8220;Modify.&#8221;</li>
<li>Click &#8220;OK&#8221; to return to the Security tab. Click &#8220;OK&#8221; again to exit the file&#8217;s properties.</li>
<li>Right-Click on TS_BrokenShortcuts.ps1 and select &#8220;Edit.&#8221;</li>
<li>On line 44, find &#8220;<strong>-gt 4))</strong>&#8221; -&gt; Change this to &#8220;<strong>-gt 25))</strong>&#8221; to set the threshold to 25 broken icons. If you feel there may be more than 25 broken network icons on your desktop at a time, adjust accordingly.</li>
<li>If you wish to use the same method for preventing the removal of unused icons, edit the <strong>TS_UnusedDesktopIcons.ps1</strong> file following the steps above, find &#8220;<strong>-gt 10</strong>&#8221; on line 50 and change it to a higher number.</li>
</ol>
<figure class="full-width-mobile alignnone " style="width: 592px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/icons-ps1.png" class="wp-image-815" /></figure>
<figure class="full-width-mobile alignnone " style="width: 372px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/icons-ps2.png" class="wp-image-816" /></figure>
<figure class="full-width-mobile alignnone " style="width: 632px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/icons-ps3.png" class="wp-image-817" /></figure>
<figure class="full-width-mobile alignnone " style="width: 632px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/icons-ps4.png" class="wp-image-818" /></figure>
<figure class="full-width-mobile alignnone " style="width: 373px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/icons-ps5.png" class="wp-image-819" /></figure>
<figure class="full-width-mobile alignnone " style="width: 644px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/11/icons-ps6.png" class="wp-image-820" /></figure>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.iishacks.com/2009/11/10/block-ip-addresses-using-ip-security-policy-in-windows-server-2003/' rel='bookmark' title='Block IP Addresses using IP Security Policy in Windows Server 2003'>Block IP Addresses using IP Security Policy in Windows Server 2003</a></li>
<li><a href='http://www.iishacks.com/2007/09/24/windows-server-2003-password-policy-changes/' rel='bookmark' title='Windows Server 2003 Password Policy Changes'>Windows Server 2003 Password Policy Changes</a></li>
<li><a href='http://www.iishacks.com/2007/06/07/tcp-ip-filtering-for-windows/' rel='bookmark' title='TCP / IP Filtering For Windows'>TCP / IP Filtering For Windows</a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2011/11/30/fix-windows-7-desktop-icons-and-shortcuts-disappearing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Reduce Windows 7 WinSxS Folder Size</title>
		<link>http://www.iishacks.com/2011/06/23/reduce-windows-7-winsxs-folder-size/</link>
		<comments>http://www.iishacks.com/2011/06/23/reduce-windows-7-winsxs-folder-size/#comments</comments>
		<pubDate>Fri, 24 Jun 2011 02:02:07 +0000</pubDate>
		<dc:creator>Chris Stinson</dc:creator>
				<category><![CDATA[Windows / Server]]></category>
		<category><![CDATA[Disk Space]]></category>
		<category><![CDATA[Windows 7]]></category>
		<category><![CDATA[WinSxS]]></category>

		<guid isPermaLink="false">http://www.iishacks.com/?p=791</guid>
		<description><![CDATA[With Windows Vista, the WinSxS folder was able to be cleaned up via a third party tool (WinSxS Lite here &#8211; Vista only!). With the initial release of Windows 7, we lost that capability &#8211; but it has since returned with Service Pack 1. The WinSxS folder is used to store install and uninstall files, [...]<div class='yarpp-related-rss'>

Related posts:<ol>
<li><a href='http://www.iishacks.com/2007/06/19/disabling-windows-search-in-vista-stop-hard-drive-running-constantly/' rel='bookmark' title='Disabling Windows Search in Vista: Stop hard drive running constantly'>Disabling Windows Search in Vista: Stop hard drive running constantly</a></li>
<li><a href='http://www.iishacks.com/2008/03/19/windows-vista-service-pack-1-released-improvements/' rel='bookmark' title='Windows Vista Service Pack 1 Released: Improvements!'>Windows Vista Service Pack 1 Released: Improvements!</a></li>
<li><a href='http://www.iishacks.com/2007/06/09/vista-file-operations-slow-green-bar-in-windows-explorer/' rel='bookmark' title='Vista File Operations Slow: Green bar in Windows Explorer'>Vista File Operations Slow: Green bar in Windows Explorer</a></li>
</ol>
</div>
]]></description>
				<content:encoded><![CDATA[<p>With Windows Vista, the WinSxS folder was able to be cleaned up via a third party tool (<a href="http://sites.google.com/site/winsxslite/">WinSxS Lite here</a> &#8211; Vista only!). With the initial release of Windows 7, we lost that capability &#8211; but it has since returned with Service Pack 1.</p>
<p>The WinSxS folder is used to store install and uninstall files, windows packages (current and previous versions of a component) and out-of-band releases. <span style="text-decoration: underline;"><em>You should not completely delete this folder</em></span>. Post Windows 7 SP1, there is now a way to remove the unnecessary files from this folder using the command line (elevated/admin mode -&gt; Click Start -&gt; Type &#8220;cmd&#8221; in Search. Right click on &#8220;cmd&#8221; and choose &#8220;Run as Administrator&#8221;). This is great for reducing the Windows folder size for SSDs and netbooks. In my case it saved 3.5GB of space.</p>
<p>&nbsp;</p>
<div class="codesnip-container" ><strong>dism /online /cleanup-image /spsuperseded</strong></div>
<p>&nbsp;</p>
<figure class="full-width-mobile alignnone " style="width: 673px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/06/WinSXS4.jpg" class="wp-image-793" /></figure>
<p>&nbsp;</p>
<p><strong>Before:</strong></p>
<figure class="full-width-mobile alignnone " style="width: 375px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/06/WinSXS1.jpg" class="wp-image-792" /></figure>
<p>&nbsp;</p>
<p><strong>After:</strong></p>
<figure class="full-width-mobile alignnone " style="width: 375px;"><img alt="" src="http://www.iishacks.com/wp-content/uploads/2011/06/WinSXS5.jpg" class="wp-image-794" /></figure>
<div class='yarpp-related-rss'>
<p>Related posts:<ol>
<li><a href='http://www.iishacks.com/2007/06/19/disabling-windows-search-in-vista-stop-hard-drive-running-constantly/' rel='bookmark' title='Disabling Windows Search in Vista: Stop hard drive running constantly'>Disabling Windows Search in Vista: Stop hard drive running constantly</a></li>
<li><a href='http://www.iishacks.com/2008/03/19/windows-vista-service-pack-1-released-improvements/' rel='bookmark' title='Windows Vista Service Pack 1 Released: Improvements!'>Windows Vista Service Pack 1 Released: Improvements!</a></li>
<li><a href='http://www.iishacks.com/2007/06/09/vista-file-operations-slow-green-bar-in-windows-explorer/' rel='bookmark' title='Vista File Operations Slow: Green bar in Windows Explorer'>Vista File Operations Slow: Green bar in Windows Explorer</a></li>
</ol></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.iishacks.com/2011/06/23/reduce-windows-7-winsxs-folder-size/feed/</wfw:commentRss>
		<slash:comments>79</slash:comments>
		</item>
	</channel>
</rss>
