<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Satchelmouth's Weblog</title>
	<atom:link href="http://satchelmouth.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://satchelmouth.wordpress.com</link>
	<description>Repository of solutions for things I encounter in my field of work</description>
	<lastBuildDate>Thu, 24 Sep 2009 02:11:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='satchelmouth.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Satchelmouth's Weblog</title>
		<link>http://satchelmouth.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://satchelmouth.wordpress.com/osd.xml" title="Satchelmouth&#039;s Weblog" />
	<atom:link rel='hub' href='http://satchelmouth.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Post P2V NIC removal</title>
		<link>http://satchelmouth.wordpress.com/2009/09/13/post-p2v-nic-removal/</link>
		<comments>http://satchelmouth.wordpress.com/2009/09/13/post-p2v-nic-removal/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 22:38:04 +0000</pubDate>
		<dc:creator>satchelmouth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://satchelmouth.wordpress.com/?p=17</guid>
		<description><![CDATA[Taken from http://www.vi-tips.com/2009/05/p2v-error-with-nic-after-migration-with.html?showComment=1252671478216#c3075236391451425784 When doing a P2V and the server has to have a static IP address after the migration, then you may recieve an error message stating that there&#8217;s an IP conflict and the ip is already configured on an existing NIC &#8211; even though only one VMware NIC is visible in network connections. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=17&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Taken from http://www.vi-tips.com/2009/05/p2v-error-with-nic-after-migration-with.html?showComment=1252671478216#c3075236391451425784</p>
<p>When doing a P2V and the server has to have a static IP address after the migration, then you may recieve an error message stating that there&#8217;s an IP conflict and the ip is already configured on an existing NIC &#8211; even though only one VMware NIC is visible in network connections.</p>
<p>The reason is that the physical NICs have not been entirely uninstalled in Windows, they still exist in the device manager as hidden devices. Do the following to uninstall the hidden NICs:</p>
<p>Open a command prompt and type the following commands:</p>
<p><span style="font-family:courier new;">set devmgr_show_nonpresent_devices=1</span><br />
<span style="font-family:courier new;">start DEVMGMT.MSC </span></p>
<p>Click ‘View’ and then click ‘Show Hidden Devices’.<br />
Expand the Network Adapters tree and right click the dimmed network adapter and click ‘Uninstall’ (You may also see a hidden RSA device under NICs. This cannot be uninstalled. However, it doesn&#8217;t matter as it doesn&#8217;t influence the NIC issue, so just leave it).</p>
<p>Now you can configure the static IP with no errors.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satchelmouth.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satchelmouth.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satchelmouth.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satchelmouth.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satchelmouth.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satchelmouth.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satchelmouth.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satchelmouth.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=17&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satchelmouth.wordpress.com/2009/09/13/post-p2v-nic-removal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f8304542527fc53891aea954a0c45fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">satchelmouth</media:title>
		</media:content>
	</item>
		<item>
		<title>Script to list important details for all websites in IIS6</title>
		<link>http://satchelmouth.wordpress.com/2009/05/28/script-to-list-important-details-for-all-websites-in-iis6/</link>
		<comments>http://satchelmouth.wordpress.com/2009/05/28/script-to-list-important-details-for-all-websites-in-iis6/#comments</comments>
		<pubDate>Thu, 28 May 2009 00:07:59 +0000</pubDate>
		<dc:creator>satchelmouth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IIS6 Windows 2003 Websites Enumerate]]></category>

		<guid isPermaLink="false">http://satchelmouth.wordpress.com/2009/05/28/script-to-list-important-details-for-all-websites-in-iis6/</guid>
		<description><![CDATA[I have used David Wang&#8217;s original script and edited to include listing of physical path to website content and also write the results to a text file&#8230; Not written by me but my Developer, praise to be to him, saved me a ton of time fluffing about. I don&#8217;t know how elegant it is, but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=12&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have used David Wang&#8217;s original <a href="http://blogs.msdn.com/david.wang/archive/2005/07/13/HOWTO_Enumerate_IIS_Website_Configuration.aspx">script</a> and edited to include listing of physical path to website content and also write the results to a text file&#8230; Not written by me but my Developer, praise to be to him, saved me a ton of time fluffing about. I don&#8217;t know how elegant it is, but it definitely works.</p>
<p>Part of the script for listing home directory for website was taken from a sample script posted online, and then edited for my own use. I can&#8217;t remember exactly where it was from, so cannot give due credit <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p> <br />
<code><br />
OPTION EXPLICIT</code></p>
<p><code>DIM CRLF, TAB<br />
DIM strServer<br />
DIM objWebService<br />
dim myFSO, WriteStuff, txtToWrite</p>
<p>dim objWMIService, colItemz, objItem, sPath<br />
Set objWMIService = GetObject("winmgmts:{authenticationLevel=pktPrivacy}\\.\root\microsoftiisv2")</p>
<p>TAB  = CHR( 9 )<br />
CRLF = CHR( 13 ) &amp; CHR( 10 )</p>
<p>IF WScript.Arguments.Length = 1 THEN<br />
strServer = WScript.Arguments( 0 )<br />
ELSE<br />
strServer = "localhost"<br />
END IF</p>
<p>WScript.Echo "Enumerating websites on " &amp; strServer &amp; CRLF<br />
SET objWebService = GetObject( "IIS://" &amp; strServer &amp; "/W3SVC" )<br />
EnumWebsites objWebService</p>
<p>SUB EnumWebsites( objWebService )<br />
DIM objWebServer, strBindings</p>
<p>FOR EACH objWebServer IN objWebService<br />
IF objWebserver.Class = "IIsWebServer" THEN</p>
<p>Set colItemz = objWMIService.ExecQuery ("Select * from IIsWebVirtualDirSetting where name = 'W3SVC/" &amp; objWebserver.Name &amp; "/root'")</p>
<p>For Each objItem in colItemz<br />
sPath = objItem.Path<br />
Next</p>
<p>WScript.Echo _<br />
"Site ID = " &amp; objWebserver.Name &amp; CRLF &amp; _<br />
"Comment = """ &amp; objWebServer.ServerComment &amp; """ " &amp; CRLF &amp; _<br />
"State   = " &amp; State2Desc( objWebserver.ServerState ) &amp; CRLF &amp; _<br />
"LogDir  = " &amp; objWebServer.LogFileDirectory &amp; CRLF &amp; _<br />
"Path  = " &amp; sPath &amp; _<br />
""</p>
<p>txtToWrite = txtToWrite &amp; CRLF &amp; "Site ID = " &amp; objWebserver.Name &amp; CRLF &amp; _<br />
"Comment = """ &amp; objWebServer.ServerComment &amp; """ " &amp; CRLF &amp; _<br />
"State   = " &amp; State2Desc( objWebserver.ServerState ) &amp; CRLF &amp; _<br />
"LogDir  = " &amp; objWebServer.LogFileDirectory &amp; CRLF &amp; _<br />
"Path  = " &amp; sPath &amp; _<br />
""</p>
<p>' Enumerate the HTTP bindings (ServerBindings) and<br />
' SSL bindings (SecureBindings)<br />
strBindings = EnumBindings( objWebServer.ServerBindings ) &amp; _<br />
EnumBindings( objWebServer.SecureBindings )<br />
IF NOT strBindings = "" THEN<br />
WScript.Echo "IP Address" &amp; TAB &amp; _<br />
"Port" &amp; TAB &amp; _<br />
"Host" &amp; CRLF &amp; _<br />
strBindings</p>
<p>txtToWrite = txtToWrite &amp; CRLF &amp; "IP Address" &amp; TAB &amp; _<br />
"Port" &amp; TAB &amp; _<br />
"Host" &amp; CRLF &amp; _<br />
strBindings</p>
<p>END IF<br />
END IF<br />
NEXT</p>
<p>FileWriter txtToWrite</p>
<p>END SUB</p>
<p>sub FileWriter(WriteText)</p>
<p>Set myFSO = CreateObject("Scripting.FileSystemObject")<br />
Set WriteStuff = myFSO.OpenTextFile("OneOff.txt", 8, True)<br />
WriteStuff.WriteLine(WriteText)<br />
WriteStuff.Close</p>
<p>set WriteStuff = nothing<br />
set myFSO = nothing</p>
<p>end sub</p>
<p>FUNCTION EnumBindings( objBindingList )<br />
DIM i, strIP, strPort, strHost<br />
DIM reBinding, reMatch, reMatches<br />
SET reBinding = NEW RegExp<br />
reBinding.Pattern = "([^:]*):([^:]*):(.*)"</p>
<p>FOR i = LBOUND( objBindingList ) TO UBOUND( objBindingList )<br />
' objBindingList( i ) is a string looking like IP:Port:Host<br />
SET reMatches = reBinding.Execute( objBindingList( i ) )<br />
FOR EACH reMatch IN reMatches<br />
strIP = reMatch.SubMatches( 0 )<br />
strPort = reMatch.SubMatches( 1 )<br />
strHost = reMatch.SubMatches( 2 )</p>
<p>' Do some pretty processing<br />
IF strIP = "" THEN strIP = "All Unassigned"<br />
IF strHost = "" THEN strHost = "*"<br />
IF LEN( strIP ) &lt; 8 THEN strIP = strIP &amp; TAB</p>
<p>EnumBindings = EnumBindings &amp; _<br />
strIP &amp; TAB &amp; _<br />
strPort &amp; TAB &amp; _<br />
strHost &amp; TAB &amp; _<br />
""<br />
NEXT</p>
<p>EnumBindings = EnumBindings &amp; CRLF<br />
NEXT</p>
<p>END FUNCTION</p>
<p>FUNCTION State2Desc( nState )<br />
SELECT CASE nState<br />
CASE 1<br />
State2Desc = "Starting (MD_SERVER_STATE_STARTING)"<br />
CASE 2<br />
State2Desc = "Started (MD_SERVER_STATE_STARTED)"<br />
CASE 3<br />
State2Desc = "Stopping (MD_SERVER_STATE_STOPPING)"<br />
CASE 4<br />
State2Desc = "Stopped (MD_SERVER_STATE_STOPPED)"<br />
CASE 5<br />
State2Desc = "Pausing (MD_SERVER_STATE_PAUSING)"<br />
CASE 6<br />
State2Desc = "Paused (MD_SERVER_STATE_PAUSED)"<br />
CASE 7<br />
State2Desc = "Continuing (MD_SERVER_STATE_CONTINUING)"<br />
CASE ELSE<br />
State2Desc = "Unknown state"<br />
END SELECT</p>
<p></code></p>
<p><code>END FUNCTION<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satchelmouth.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satchelmouth.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satchelmouth.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satchelmouth.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satchelmouth.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satchelmouth.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satchelmouth.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satchelmouth.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=12&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satchelmouth.wordpress.com/2009/05/28/script-to-list-important-details-for-all-websites-in-iis6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f8304542527fc53891aea954a0c45fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">satchelmouth</media:title>
		</media:content>
	</item>
		<item>
		<title>Pretty Permalinks for WordPress in IIS6</title>
		<link>http://satchelmouth.wordpress.com/2008/08/11/pretty-permalinks-for-wordpress-in-iis6/</link>
		<comments>http://satchelmouth.wordpress.com/2008/08/11/pretty-permalinks-for-wordpress-in-iis6/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 04:49:36 +0000</pubDate>
		<dc:creator>satchelmouth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[IIS6]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://satchelmouth.wordpress.com/?p=9</guid>
		<description><![CDATA[UPDATE : http://www.ikailo.com/94/url-modrewrite-workaround-iis-60/ // This is the default file for the site. Usually index.php $default = &#8216;index.php&#8217;; // The name of this file. // Set this value for the URL in Custom Error Properties of your website in IIS. // Goto: IIS Manager &#62; Websites &#62; [Site Name] &#62; Properties &#62; Custom Errors &#62; // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=9&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span style="color:#ff0000;"><strong>UPDATE : </strong></span>http://www.ikailo.com/94/url-modrewrite-workaround-iis-60/</p>
<p>// This is the default file for the site. Usually index.php</p>
<p>$default = &#8216;index.php&#8217;;</p>
<p>// The name of this file.</p>
<p>// Set this value for the URL in Custom Error Properties of your website in IIS.</p>
<p>// Goto: IIS Manager &gt; Websites &gt; [Site Name] &gt; Properties &gt; Custom Errors &gt;</p>
<p>// 404 &amp; 404;2 &amp; 404;3 &gt; URL (Requires a &#8216;/&#8217; prefix in IIS).</p>
<p>$thisfile = &#8217;404-handler.php&#8217;;</p>
<p>$_SERVER['ORIG_PATH_TRANSLATED'] = str_replace($thisfile, $default, $_SERVER['ORIG_PATH_TRANSLATED']);</p>
<p>$_SERVER['SCRIPT_FILENAME'] = str_replace($thisfile, $default, $_SERVER['SCRIPT_FILENAME']);</p>
<p>$_SERVER['ORIG_PATH_INFO'] = str_replace($thisfile, $default, $_SERVER['ORIG_PATH_INFO']);</p>
<p>$_SERVER['SCRIPT_NAME'] = str_replace($thisfile, $default, $_SERVER['SCRIPT_NAME']);</p>
<p>$_SERVER['PHP_SELF'] = str_replace($thisfile, $default, $_SERVER['PHP_SELF']);</p>
<p>$_SERVER['PATH_INFO'] = false;</p>
<p>$qs =&amp; $_SERVER['QUERY_STRING'];</p>
<p>$ru =&amp; $_SERVER['REQUEST_URI'];</p>
<p>$pos = strrpos($qs, &#8216;://&#8217;);</p>
<p>$pos = strpos($qs, &#8216;/&#8217;, $pos + 4);</p>
<p>$_SERVER['URL'] = $ru = substr($qs, $pos);</p>
<p>$qs = trim(stristr($ru, &#8216;?&#8217;), &#8216;?&#8217;);</p>
<p>// Required for WordPress 2.8+</p>
<p>$_SERVER['HTTP_X_ORIGINAL_URL'] = $ru;</p>
<p>// Fix GET vars</p>
<p>foreach ( $_GET as $var =&gt; $val ) {</p>
<p>if ( substr($var, 0, 3) == &#8217;404&#8242;) {</p>
<p>if ( strstr($var, &#8220;?&#8221;) ) {</p>
<p>$newvar = substr($var, strpos($var, &#8216;?&#8217;) + 1);</p>
<p>$_GET[$newvar] = $val;</p>
<p>}</p>
<p>unset($_GET[$var]);</p>
<p>}</p>
<p>break;</p>
<p>}</p>
<p>include($default);</p>
<p><strong><span style="color:#ff0000;">END UPDATE</span></strong></p>
<p>Originally From : http://tech.einaregilsson.com/2007/07/30/pretty-wordpress-permalinks-on-iis/</p>
<p>Create a 404 page and put the following 4 lines in it:</p>
<pre><code class="php">&lt;?php
$qs = $_SERVER['QUERY_STRING'];
$_SERVER['REQUEST_URI'] = substr($qs, strpos($qs, ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?&gt;
</code></pre>
<p><strong><span style="color:#ff0000;"> </span></strong></p>
<p>All this does is fix the REQUEST_URI and PATH_INFO variables and then include index.php, so WordPress will do the rest. It’s simple, it doesn’t duplicate functionality already in WordPress and it doesn’t have the overhead of another http request for every page hit. The installation steps are:</p>
<ol>
<li>Create the file wp-404-handler.php in your base WordPress folder.</li>
<li>Set your sites 404 page to point to the wp-404-handler.php url. Most control panels at web hosts allow you to do this. If you’ve got the option to select between FILE and URL then choose URL.</li>
<li>Go to Options -&gt; Permalinks in your WordPress admin page, and choose an appropriate structure for your links. I chose Custom with this pattern:
<pre><code>/%year%/%monthnum%/%day%/%postname%/ </code></pre>
</li>
<li>Enjoy!</li>
</ol>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/satchelmouth.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/satchelmouth.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satchelmouth.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satchelmouth.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satchelmouth.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satchelmouth.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satchelmouth.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satchelmouth.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satchelmouth.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satchelmouth.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=9&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satchelmouth.wordpress.com/2008/08/11/pretty-permalinks-for-wordpress-in-iis6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f8304542527fc53891aea954a0c45fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">satchelmouth</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Script &#8211; 25 largest tables in a database</title>
		<link>http://satchelmouth.wordpress.com/2008/07/14/sql-script-25-largest-tables/</link>
		<comments>http://satchelmouth.wordpress.com/2008/07/14/sql-script-25-largest-tables/#comments</comments>
		<pubDate>Mon, 14 Jul 2008 03:39:08 +0000</pubDate>
		<dc:creator>satchelmouth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://satchelmouth.wordpress.com/?p=7</guid>
		<description><![CDATA[Courtesy of Bill Graziano at SQLteam.com. Script allows you to see the top 25 largest tables in your database. Pretty handy if you are trying to figure why your MDF file is 1.7GB !! /************************************************************************************** * * BigTables.sql * Bill Graziano (SQLTeam.com) * graz@sqlteam.com * v1.1 * **************************************************************************************/ declare @id int declare @type character(2) declare [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=7&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Courtesy of Bill Graziano at SQLteam.com. Script allows you to see the top 25 largest tables in your database. Pretty handy if you are trying to figure why your MDF file is 1.7GB !!</p>
<p>/**************************************************************************************<br />
*<br />
*  BigTables.sql<br />
*  Bill Graziano (SQLTeam.com)<br />
*  graz@sqlteam.com<br />
*  v1.1<br />
*<br />
**************************************************************************************/</p>
<p>declare @id	int<br />
declare @type	character(2)<br />
declare	@pages	int<br />
declare @dbname sysname<br />
declare @dbsize dec(15,0)<br />
declare @bytesperpage	dec(15,0)<br />
declare @pagesperMB		dec(15,0)</p>
<p>create table #spt_space<br />
(<br />
objid		int null,<br />
rows		int null,<br />
reserved	dec(15) null,<br />
data		dec(15) null,<br />
indexp		dec(15) null,<br />
unused		dec(15) null<br />
)</p>
<p>set nocount on</p>
<p>&#8211; Create a cursor to loop through the user tables<br />
declare c_tables cursor for<br />
select	id<br />
from	sysobjects<br />
where	xtype = &#8216;U&#8217;</p>
<p>open c_tables</p>
<p>fetch next from c_tables<br />
into @id</p>
<p>while @@fetch_status = 0<br />
begin</p>
<p>/* Code from sp_spaceused */<br />
insert into #spt_space (objid, reserved)<br />
select objid = @id, sum(reserved)<br />
from sysindexes<br />
where indid in (0, 1, 255)<br />
and id = @id</p>
<p>select @pages = sum(dpages)<br />
from sysindexes<br />
where indid &lt; 2<br />
and id = @id<br />
select @pages = @pages + isnull(sum(used), 0)<br />
from sysindexes<br />
where indid = 255<br />
and id = @id<br />
update #spt_space<br />
set data = @pages<br />
where objid = @id<br />
/* index: sum(used) where indid in (0, 1, 255) &#8211; data */<br />
update #spt_space<br />
set indexp = (select sum(used)<br />
from sysindexes<br />
where indid in (0, 1, 255)<br />
and id = @id)<br />
- data<br />
where objid = @id</p>
<p>/* unused: sum(reserved) &#8211; sum(used) where indid in (0, 1, 255) */<br />
update #spt_space<br />
set unused = reserved<br />
- (select sum(used)<br />
from sysindexes<br />
where indid in (0, 1, 255)<br />
and id = @id)<br />
where objid = @id</p>
<p>update #spt_space<br />
set rows = i.rows<br />
from sysindexes i<br />
where i.indid &lt; 2<br />
and i.id = @id<br />
and objid = @id</p>
<p>fetch next from c_tables<br />
into @id<br />
end<br />
select top 25<br />
Table_Name = (select left(name,25) from sysobjects where id = objid),<br />
rows = convert(char(11), rows),<br />
reserved_KB = ltrim(str(reserved * d.low / 1024.,15,0) + &#8216; &#8216; + &#8216;KB&#8217;),<br />
data_KB = ltrim(str(data * d.low / 1024.,15,0) + &#8216; &#8216; + &#8216;KB&#8217;),<br />
index_size_KB = ltrim(str(indexp * d.low / 1024.,15,0) + &#8216; &#8216; + &#8216;KB&#8217;),<br />
unused_KB = ltrim(str(unused * d.low / 1024.,15,0) + &#8216; &#8216; + &#8216;KB&#8217;)</p>
<p>from 	#spt_space, master.dbo.spt_values d<br />
where 	d.number = 1<br />
and 	d.type = &#8216;E&#8217;<br />
order by reserved desc</p>
<p>drop table #spt_space<br />
close c_tables<br />
deallocate c_tables</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/satchelmouth.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/satchelmouth.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satchelmouth.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satchelmouth.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satchelmouth.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satchelmouth.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satchelmouth.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satchelmouth.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satchelmouth.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satchelmouth.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=7&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satchelmouth.wordpress.com/2008/07/14/sql-script-25-largest-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f8304542527fc53891aea954a0c45fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">satchelmouth</media:title>
		</media:content>
	</item>
		<item>
		<title>Installing PHP 5.x on Windows 2003 Std with FastCGI</title>
		<link>http://satchelmouth.wordpress.com/2008/07/08/installing-php-5x-on-windows-2003-std-ed-with-fastcgi/</link>
		<comments>http://satchelmouth.wordpress.com/2008/07/08/installing-php-5x-on-windows-2003-std-ed-with-fastcgi/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 01:11:26 +0000</pubDate>
		<dc:creator>satchelmouth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://satchelmouth.wordpress.com/?p=5</guid>
		<description><![CDATA[I couldn&#8217;t find a concise guide on how to install PHP 5.x on Windows 2003 with FastCGI extensions until I found this blog. To summarise, here is what is needed 1. Download FastCGI component and PHP5.x NTS zip ( NTS = non thread safe, and make sure you do NOT download the PHP installer .exe, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=5&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I couldn&#8217;t find a concise guide on how to install PHP 5.x on Windows 2003 with FastCGI extensions until I found this <a href="http://devzone.zend.com/article/2710-FastCGI-and-PHP-A-Users-Story" target="_blank">blog</a>.</p>
<p>To summarise, here is what is needed</p>
<p><strong>1.</strong> <strong>Download FastCGI component and PHP5.x NTS zip ( NTS = non thread safe, and make sure you do NOT download the PHP installer .exe, just the zip file. )</strong></p>
<address><em>Note : The installer seems to do the IIS / OS setup part for you, which is nice, but doesn&#8217;t include the extensions necessary for PHP. Why this is, I don&#8217;t know. I personally think it is better to set it up manually anyway. Someone correct me if I am wrong.<br />
</em></address>
<p><strong>2. Unzip PHP to a directory of your choosing e.g. D:\PHP5.x</strong></p>
<ul>
<li>Once uninstalled, rename the <em>&#8220;php-ini.recommended&#8221;</em> to <em>&#8220;php.ini&#8221;</em>. You can then make your own modifications as per your specifications but at a minmum you probably want to enable PHP error logging</li>
</ul>
<p style="padding-left:60px;"><em>error_reporting = E_ALL<br />
log_errors = On<br />
error_log = &#8221;d:\php\errors\error.log&#8221;&#8217;</em></p>
<p><strong>3. Run the FastCGI installer and let it do its thing.</strong></p>
<p><strong>4. Run the following command from the installation directory for FastCGI c:\windows\system32\inetsrv\</strong></p>
<p style="padding-left:60px;"><em>cscript fcgiconfig.js -add -section:&#8221;PHP&#8221; -extension:php -path:&#8221;C:\PHP\php-cgi.exe&#8221;</em></p>
<p><strong>5. Extra FastCGI configuration. </strong></p>
<ul>
<li>Make the following changes to your PHP.ini</li>
</ul>
<p style="padding-left:60px;"><em>cgi.fix_pathinfo=1</em></p>
<p style="padding-left:60px;"><em>cgi.force_redirect = 0</em></p>
<p style="padding-left:60px;"><em>fastcgi.impersonate =1</em></p>
<ul>
<li> Set the FastCGI configuration settings for the PHP section by running fcgiconfig.js as follows:</li>
</ul>
<p style="padding-left:60px;"><em>cscript fcgiconfig.js -set -section:&#8221;PHP&#8221; -InstanceMaxRequests:10000</em></p>
<ul>
<li> Configure the FastCGI extension to set PHP_FCGI_MAX_REQUESTS environment variables for the PHP process to 10000.This setting instructs php-cgi.exe to recycle itself after it has processed 10000 requests successfully.</li>
</ul>
<p style="padding-left:60px;text-align:left;"><em>cscript fcgiconfig.js -set -section:&#8221;PHP&#8221; -EnvironmentVars:PHP_FCGI_MAX_REQUESTS:10000</em></p>
<p><strong>6. Add appropriate MIME header types to IIS</strong></p>
<p style="padding-left:60px;"><em>Extension = .php   | MIME Type = text/html</em></p>
<p><strong>7. Test with a php page ( e.g phpinfo(); )</strong></p>
<p style="padding-left:30px;"><strong>DONE!!</strong></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/satchelmouth.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/satchelmouth.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satchelmouth.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satchelmouth.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satchelmouth.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satchelmouth.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satchelmouth.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satchelmouth.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satchelmouth.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satchelmouth.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=5&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satchelmouth.wordpress.com/2008/07/08/installing-php-5x-on-windows-2003-std-ed-with-fastcgi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f8304542527fc53891aea954a0c45fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">satchelmouth</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows 2003 FTP ban scripts</title>
		<link>http://satchelmouth.wordpress.com/2008/07/07/windows-2003-ftp-ban-scripts/</link>
		<comments>http://satchelmouth.wordpress.com/2008/07/07/windows-2003-ftp-ban-scripts/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 22:33:18 +0000</pubDate>
		<dc:creator>satchelmouth</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://satchelmouth.wordpress.com/?p=3</guid>
		<description><![CDATA[Anyone who admins a Windows 2003 server with FTP access that must be opened to all ( e.g shared web hosting server ) will have encountered brute force FTP logins to the server. If you are using FTP via IIS ( which as shit as it is, is sometimes the only option ) then you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=3&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Anyone who admins a Windows 2003 server with FTP access that must be opened to all ( e.g shared web hosting server ) will have encountered brute force FTP logins to the server. If you are using FTP via IIS ( which as shit as it is, is sometimes the only option ) then you will be very interested in the great scripting work by other bloggers.</p>
<p>Below are some links to excellent FTP ban scripts.</p>
<p>Instabans in IIS and also nullroutes on any &#8220;administrator&#8221; login attempts. Comments also include how to add extra usernames to instaban. ( tested and working on machines under my control )</p>
<p style="text-align:left;"><em><strong><a href="http://blog.netnerds.net/2006/07/iis-instantly-ban-ips-attempting-to-login-to-ms-ftp-as-administrator/#comments" target="_blank">Netnerds</a><br />
</strong></em></p>
<p>Instabans based on failed logins and/or number of failed attempts.<br />
<em><strong></strong></em></p>
<p><a href="http://cheshire6.livejournal.com/565.html" target="_blank"><em><strong>Cheshire6</strong></em></a></p>
<p>Enjoy</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/satchelmouth.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/satchelmouth.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satchelmouth.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satchelmouth.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satchelmouth.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satchelmouth.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satchelmouth.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satchelmouth.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satchelmouth.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satchelmouth.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satchelmouth.wordpress.com&amp;blog=4166766&amp;post=3&amp;subd=satchelmouth&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satchelmouth.wordpress.com/2008/07/07/windows-2003-ftp-ban-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9f8304542527fc53891aea954a0c45fc?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">satchelmouth</media:title>
		</media:content>
	</item>
	</channel>
</rss>
