﻿<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Windows &amp; IIS stuff</title>
    <description>Blog entries about Windows and IIS administration and configurations.</description>
    <link>http://www.teachout.com/Blog/tabid/165/BlogId/15/Default.aspx</link>
    <language>en-US</language>
    <managingEditor>rich@teachout.com</managingEditor>
    <webMaster>rich@teachout.com</webMaster>
    <pubDate>Wed, 10 Mar 2010 01:09:13 GMT</pubDate>
    <lastBuildDate>Wed, 10 Mar 2010 01:09:13 GMT</lastBuildDate>
    <docs>http://backend.userland.com/rss</docs>
    <generator>Blog RSS Generator Version 3.5.1.19887</generator>
    <item>
      <title>Windows Environment Variables Overrides for IIS6</title>
      <description>&lt;p&gt;To add environment variable overrides, so IIS doesn’t read the system environment variables, but rather reads it from a reg key   &lt;br /&gt;Do the following (from a dos prompt, or manually but the key in)&lt;/p&gt;  &lt;p&gt;REG.EXE add "HKLM\SYSTEM\CurrentControlSet\Services\IISADMIN\Parameters\Environment" /v TMP /t REG_SZ /d "C:\windows\temp" /f&lt;/p&gt;  &lt;p&gt;REG.EXE add "HKLM\SYSTEM\CurrentControlSet\Services\IISADMIN\Parameters\Environment" /v TEMP /t REG_SZ /d "C:\windows\temp" /f&lt;/p&gt;  &lt;p&gt;Then do an ‘iisreset’ / restart IIS to force IIS to re-read the variables and activate it.&lt;/p&gt;  &lt;p&gt;VOILA !&lt;/p&gt;  &lt;p&gt;   &lt;br /&gt;I found this when troubleshooting a Microsoft Jet DB error.  Jet uses environment variables for “TEMP” which in recent SP’s for Windows 2003 get set to ‘%CURRENTUSER%\Application Data\Temp” which doesn’t exist for “Network Services” or whatever the IIS app pool is running as, so the easy override is to force it back to c:\windows\temp.    &lt;br /&gt;Note: Sometimes, the temp variables get reset when adding new applications/sites to IIS, or when doing some windows updates, so the reg keys above ensure you don’t unknowingly screw yourself by doing what would be an “unrelated” change that messes up your env vars.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Reasoning:&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;IIS gets env vars from services.exe which only gets updated on a reboot.  Normally, you would just update your env vars, and reboot to activate them.&lt;/p&gt;  &lt;p&gt;Using the above override tells a particular service to use special variables. Then just restarting that service gets those updates.. (note, doesn't work for all services, but does appear to work for IIS6 perfectly)&lt;/p&gt;  &lt;p&gt; &lt;/p&gt;  &lt;p&gt;Enjoy!&lt;/p&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/246/Windows-Environment-Variables-Overrides-for-IIS6.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/246/Windows-Environment-Variables-Overrides-for-IIS6.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/246/Windows-Environment-Variables-Overrides-for-IIS6.aspx</guid>
      <pubDate>Tue, 16 Feb 2010 17:43:03 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=246</trackback:ping>
    </item>
    <item>
      <title>Disable Hibernation in Windows 2008 (C:\hiberfil.sys) [also for vista and windows 7]</title>
      <description>&lt;ol&gt;
    &lt;li&gt;Click &lt;strong class="uiterm"&gt;Start&lt;/strong&gt;, and then type &lt;span class="userInput"&gt;cmd&lt;/span&gt; in the &lt;strong class="uiterm"&gt;Start Search&lt;/strong&gt; box.&lt;/li&gt;
    &lt;li&gt;In the search results list, right-click &lt;strong class="uiterm"&gt;Command Prompt&lt;/strong&gt;, and then click &lt;strong class="uiterm"&gt;Run as Administrator&lt;/strong&gt;.&lt;/li&gt;
    &lt;li&gt;When you are prompted by User Account Control, click &lt;strong class="uiterm"&gt;Continue&lt;/strong&gt;.&lt;/li&gt;
    &lt;li&gt;At the command prompt, type &lt;span class="userInput"&gt;powercfg.exe /hibernate off&lt;/span&gt;, and then press ENTER.&lt;/li&gt;
    &lt;li&gt;Type &lt;span class="userInput"&gt;exit&lt;/span&gt;, and then press ENTER.&lt;/li&gt;
&lt;/ol&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/234/Disable-Hibernation-in-Windows-2008-C-hiberfil-sys-also-for-vista-and-windows-7.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/234/Disable-Hibernation-in-Windows-2008-C-hiberfil-sys-also-for-vista-and-windows-7.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/234/Disable-Hibernation-in-Windows-2008-C-hiberfil-sys-also-for-vista-and-windows-7.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/234/Disable-Hibernation-in-Windows-2008-C-hiberfil-sys-also-for-vista-and-windows-7.aspx</guid>
      <pubDate>Mon, 02 Nov 2009 20:39:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=234</trackback:ping>
    </item>
    <item>
      <title>Creating a "Make a File List" Option in your windows explorer for any directory</title>
      <description>&lt;p&gt;Be able to Right Click on any directory, and make a "filelist.txt" file for that directory.  So simple, I do not know why this hasn't always been around!&lt;/p&gt;
&lt;p&gt;Get a directory listing of all files in a directory and automatically output it to a txt file.&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/233/Creating-a-Make-a-File-List-Option-in-your-windows-explorer-for-any-directory.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/233/Creating-a-Make-a-File-List-Option-in-your-windows-explorer-for-any-directory.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/233/Creating-a-Make-a-File-List-Option-in-your-windows-explorer-for-any-directory.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/233/Creating-a-Make-a-File-List-Option-in-your-windows-explorer-for-any-directory.aspx</guid>
      <pubDate>Thu, 29 Oct 2009 15:07:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=233</trackback:ping>
    </item>
    <item>
      <title>Add Adminstrators to Terminal Services Roaming Profiles retroactively</title>
      <description>&lt;p&gt;Just a snippit I needed to run to resolve an issue - it is a dos script that re-takes ownership of a roaming profile, then re-sets up the user security, so it still runs&lt;/p&gt;
&lt;p&gt;BE CAREFUL&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/231/Add-Adminstrators-to-Terminal-Services-Roaming-Profiles-retroactively.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/231/Add-Adminstrators-to-Terminal-Services-Roaming-Profiles-retroactively.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/231/Add-Adminstrators-to-Terminal-Services-Roaming-Profiles-retroactively.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/231/Add-Adminstrators-to-Terminal-Services-Roaming-Profiles-retroactively.aspx</guid>
      <pubDate>Wed, 14 Oct 2009 15:17:00 GMT</pubDate>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=231</trackback:ping>
    </item>
    <item>
      <title>Terminal Services Roaming Profiles - Notes for reference</title>
      <description>&lt;p&gt;A bunch of notes I found online about terminal services roaming profiles&lt;/p&gt;
&lt;p&gt;(targeted at a 2008 TS, at least that is what the article is referencing)&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/230/Terminal-Services-Roaming-Profiles-Notes-for-reference.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/230/Terminal-Services-Roaming-Profiles-Notes-for-reference.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/230/Terminal-Services-Roaming-Profiles-Notes-for-reference.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/230/Terminal-Services-Roaming-Profiles-Notes-for-reference.aspx</guid>
      <pubDate>Tue, 13 Oct 2009 17:21:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=230</trackback:ping>
    </item>
    <item>
      <title>Determine the MTU Size Limits of the full path of an internet route</title>
      <description>&lt;p&gt;Determine the MTU Size Limits of the full path of an internet route&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/226/Determine-the-MTU-Size-Limits-of-the-full-path-of-an-internet-route.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/226/Determine-the-MTU-Size-Limits-of-the-full-path-of-an-internet-route.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/226/Determine-the-MTU-Size-Limits-of-the-full-path-of-an-internet-route.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/226/Determine-the-MTU-Size-Limits-of-the-full-path-of-an-internet-route.aspx</guid>
      <pubDate>Thu, 18 Sep 2008 04:58:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=226</trackback:ping>
    </item>
    <item>
      <title>Activate Windows 2008 Server - Change Product Key &amp; Activate</title>
      <description>&lt;p&gt;Can't figure out how to Activate Windows 2008 Server - If you installed from a Volume License CD, it never prompted you for the license key, so it will not activate.  Here is how to change the Product Key &amp; then Activate the server.. easy!&lt;br /&gt;
(I've also included a number of other common activation stages you can "jump" to - and a shortcut on how to activate a windows 2008 core installation)&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/227/Activate-Windows-2008-Server-Change-Product-Key-Activate.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/227/Activate-Windows-2008-Server-Change-Product-Key-Activate.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/227/Activate-Windows-2008-Server-Change-Product-Key-Activate.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/227/Activate-Windows-2008-Server-Change-Product-Key-Activate.aspx</guid>
      <pubDate>Thu, 18 Sep 2008 03:33:00 GMT</pubDate>
      <slash:comments>1</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=227</trackback:ping>
    </item>
    <item>
      <title>Win: Force Windows to recheck and fix any "Windows File Protection" files</title>
      <description>&lt;p&gt;Force Windows to recheck and fix any "Windows File Protection" files - just a reminder of sfc commands&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/224/Win-Force-Windows-to-recheck-and-fix-any-Windows-File-Protection-files.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/224/Win-Force-Windows-to-recheck-and-fix-any-Windows-File-Protection-files.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/224/Win-Force-Windows-to-recheck-and-fix-any-Windows-File-Protection-files.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/224/Win-Force-Windows-to-recheck-and-fix-any-Windows-File-Protection-files.aspx</guid>
      <pubDate>Sun, 14 Sep 2008 19:04:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=224</trackback:ping>
    </item>
    <item>
      <title>Win: Find Windows netstat port usage by Process id/name</title>
      <description>&lt;p&gt;Find Windows netstat port usage by Process id/name&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/223/Win-Find-Windows-netstat-port-usage-by-Process-id-name.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/223/Win-Find-Windows-netstat-port-usage-by-Process-id-name.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/223/Win-Find-Windows-netstat-port-usage-by-Process-id-name.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/223/Win-Find-Windows-netstat-port-usage-by-Process-id-name.aspx</guid>
      <pubDate>Sun, 14 Sep 2008 19:03:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=223</trackback:ping>
    </item>
    <item>
      <title>IIS: Environment Temp Variable reset by win updates.. fix without restarting..</title>
      <description>&lt;p&gt;Just a "hack" way to fix this issue, without restarting the entire machine.&lt;/p&gt;&lt;a href=http://www.teachout.com/Blog/tabid/165/EntryId/222/IIS-Environment-Temp-Variable-reset-by-win-updates-fix-without-restarting.aspx&gt;More...&lt;/a&gt;</description>
      <link>http://www.teachout.com/Blog/tabid/165/EntryId/222/IIS-Environment-Temp-Variable-reset-by-win-updates-fix-without-restarting.aspx</link>
      <author>rich@teachout.com</author>
      <comments>http://www.teachout.com/Blog/tabid/165/EntryId/222/IIS-Environment-Temp-Variable-reset-by-win-updates-fix-without-restarting.aspx#Comments</comments>
      <guid isPermaLink="true">http://www.teachout.com/Blog/tabid/165/EntryId/222/IIS-Environment-Temp-Variable-reset-by-win-updates-fix-without-restarting.aspx</guid>
      <pubDate>Fri, 12 Sep 2008 14:48:00 GMT</pubDate>
      <slash:comments>0</slash:comments>
      <trackback:ping>http://www.teachout.com/DesktopModules/Blog/Trackback.aspx?id=222</trackback:ping>
    </item>
  </channel>
</rss>