<?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>ben.hamilton.id.au &#187; Howto</title>
	<atom:link href="http://ben.hamilton.id.au/tag/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://ben.hamilton.id.au</link>
	<description>what I find interesting in tech and CRM</description>
	<lastBuildDate>Sun, 13 Nov 2011 21:37:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to clear the MS Exchange mail queue quickly</title>
		<link>http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-clear-the-ms-exchange-mail-queue-quickly</link>
		<comments>http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly#comments</comments>
		<pubDate>Thu, 02 Dec 2010 06:41:43 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[SPAM]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=332</guid>
		<description><![CDATA[Spent the day dealing with an exchange server that had been compromised. As a result, heaps of spam emails were in the exchange mail queue. Manually removing them is a major pain in the rear. Fortunately, others have shared how &#8230; <a href="http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>Spent the day dealing with an exchange server that had been compromised. As a result, heaps of spam emails were in the exchange mail queue. Manually removing them is a major pain in the rear. Fortunately, others have shared <a title="Clear exchange mail queue of SPAM" href="http://technicians-blog.kingcomputer.com.au/how-to-clear-exchange-queue-when-there-are-hundres-of-spam-messages/">how to clear the Microsoft Exchange mail queue of thousands for spam mails</a>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
<ol>
<li>Stop the SMTP service.</li>
<li>Create a new spam folder for example in<br />
C:\Program Files\Exchsrvr\Mailroot\vsi 1\Spam</li>
<li>With the SMTP service still stopped, move all the messages from the<br />
C:\Program Files\Exchsrvr\Mailroot\vsi 1\Queue<br />
to the spam folder (in case you need to retrieve a message)</li>
<li>Restart the SMTP service.</li>
</ol>
Of course prior to doing that, the instructions at this Microsoft KB <a title="MS KB on SMTP relay diagnosis" href="http://support.microsoft.com/kb/324958/">How to block open SMTP relaying and clean up Exchange Server SMTP queues in Windows Small Business Server</a> is quite helpful in showing how to make sure your exchange server is not an open relay. It also shows how to test if it is an authenticated relay attack that is the problem. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;">
<h1 class="title">How to block open SMTP relaying and clean up Exchange  Server SMTP queues in Windows Small Business Server</h1>
</div> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly#p2">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/how-to-clear-the-ms-exchange-mail-queue-quickly/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using registry values in scripts</title>
		<link>http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=using-registry-values-in-scripts</link>
		<comments>http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#comments</comments>
		<pubDate>Sun, 22 Aug 2010 11:30:10 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Command]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=265</guid>
		<description><![CDATA[I&#8217;m often writing scripts to do stuff. It makes my job easier. I&#8217;ve often wanted to be able to script the discovery of registry values in the Windows Registry. # Thus here is a short example on using the vanilla &#8230; <a href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>I&#8217;m often writing scripts to do stuff. It makes my job easier. I&#8217;ve often wanted to be able to script the discovery of registry values in the Windows Registry. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
Thus here is a short example on using the vanilla windows command line to find the value of a Windows registry key. From my testing these commands are all present by default in Windows XP, Vista, 7, Server 2003 and Server 2008. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
Assume we want to find the Microsoft Windows Common Files directory. Using `Regedit` we can find that here: `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\CommonFilesDir` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
So the first thing we want to do is query the registry, we do that with the command line tool `reg` as follows ([more about reg][]): <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
[more about reg]:http://www.petri.co.il/reg_command_in_windows_xp.htm<br />
&#8220;Read up on how to use the reg command for more than just a query&#8221; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
`reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion /v CommonFilesDir >1.tmp` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
This will spit out the following into the text file `1.tmp`: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p6">#</a><p class="winerlinks-enabled"><a name="p7"></a>
&#8212; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p7">#</a><p class="winerlinks-enabled"><a name="p8"></a>
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion<br />
    CommonFilesDir    REG_SZ    C:\Program Files\Common Files <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p8">#</a><p class="winerlinks-enabled"><a name="p9"></a>
&#8212; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p9">#</a><p class="winerlinks-enabled"><a name="p10"></a>
However, this isn&#8217;t of much use in a script. Really, we just want the value of the folder itself, not all the extra info. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p10">#</a><p class="winerlinks-enabled"><a name="p11"></a>
So what we do is use the command line tool &#8216;findstr&#8217; which essentially is a windows regex tool ([more about findstr][]). We use it to do this: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p11">#</a><p class="winerlinks-enabled"><a name="p12"></a>
[more about findstr]:http://www.netexpertise.eu/en/windows/findstr-an-alternative-to-grep.html<br />
&#8220;Read up on findstr &#8211; regex goodness on windows by default&#8221; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p12">#</a><p class="winerlinks-enabled"><a name="p13"></a>
`findstr /r REG_SZ 1.tmp >2.tmp` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p13">#</a><p class="winerlinks-enabled"><a name="p14"></a>
This spits out just the line that contains REG_SZ and puts it into the text file `2.tmp`. Now that we&#8217;ve just just the one line, we want to strip the first 32 characters off it. We do this by first setting it as an enviroment variale and then trimming it down using the following two commands ([more on set][]): <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p14">#</a><p class="winerlinks-enabled"><a name="p15"></a>
[more on set]:http://www.computing.net/answers/windows-2000/use-file-contents-to-set-variables/63174.html<br />
&#8220;Using file contents to set enviroment variables&#8221; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p15">#</a><p class="winerlinks-enabled"><a name="p16"></a>
`set /p CommFiles=<2.tmp` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p16">#</a><p class="winerlinks-enabled"><a name="p17"></a>
And then we shorten that ([more on trimming][]): <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p17">#</a><p class="winerlinks-enabled"><a name="p18"></a>
[more on trimming]:http://www.dostips.com/DtTipsStringManipulation.php<br />
"Read up on using set to trim environment variables" <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p18">#</a><p class="winerlinks-enabled"><a name="p19"></a>
`set CommFiles=%CommFiles:~32%` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p19">#</a><p class="winerlinks-enabled"><a name="p20"></a>
Then we can echo the result to the screen using: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p20">#</a><p class="winerlinks-enabled"><a name="p21"></a>
`Echo The Common Files directory is: %CommFiles%` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p21">#</a><p class="winerlinks-enabled"><a name="p22"></a>
And here it is all in one easy to copy set: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p22">#</a><p class="winerlinks-enabled"><a name="p23"></a>
--- <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p23">#</a><p class="winerlinks-enabled"><a name="p24"></a>
    Set CommFiles=C:\Temp<br />
    reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion /v CommonFilesDir >1.tmp<br />
    findstr /r REG_SZ 1.tmp >2.tmp<br />
    set /p CommFiles=<2.tmp<br />
    set CommFiles=%CommFiles:~32%<br />
    Echo The Common Files directory is: %CommFiles% <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p24">#</a><p class="winerlinks-enabled"><a name="p25"></a>
&#8212; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p25">#</a><p class="winerlinks-enabled"><a name="p26"></a>
With a little editing I&#8217;m sure that you can turn this to your own uses, pulling out the value of registry keys and using them in script files. You&#8217;re not limited to this registry key, you can use it to access all sorts of registry keys. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p26">#</a><p class="winerlinks-enabled"><a name="p27"></a>
Please do tell me what uses you put this to. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p27">#</a><p class="winerlinks-enabled"><a name="p28"></a>
Enjoy. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts#p28">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/using-registry-values-in-scripts/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding user SID</title>
		<link>http://ben.hamilton.id.au/microsoft/finding-user-sid?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=finding-user-sid</link>
		<comments>http://ben.hamilton.id.au/microsoft/finding-user-sid#comments</comments>
		<pubDate>Sun, 22 Aug 2010 10:13:07 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[SID]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=261</guid>
		<description><![CDATA[Occasionally you may want to know the [SID][] of a windows user. If that made no sense to you, read no futher, this snippet is not for you. # [SID]:http://encyclopedia.thefreedictionary.com/Security+Identifier &#8220;Read a definition of what the SID is&#8221; # Open &#8230; <a href="http://ben.hamilton.id.au/microsoft/finding-user-sid">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>Occasionally you may want to know the [SID][] of a windows user. If that made no sense to you, read no futher, this snippet is not for you. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
[SID]:http://encyclopedia.thefreedictionary.com/Security+Identifier<br />
&#8220;Read a definition of what the SID is&#8221; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
Open up REGEDIT and browse to this key: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
`HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList` <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
Here you will find a list of SID&#8217;s, under each is a subkey containing the name of the user it is associated with. Run through them until you find the username you&#8217;re looking for and bingo, it&#8217;s parent key is that users SID. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
Found via [petri.co.il][] <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
[petri.co.il]:http://www.petri.co.il/forums/showthread.php?t=21332\<br />
&#8220;petri.co.il is a wealth of tech goodness&#8221; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p6">#</a><p class="winerlinks-enabled"><a name="p7"></a>
[Bonus link][] <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p7">#</a><p class="winerlinks-enabled"><a name="p8"></a>
[Bonus link]:https://secure.wikimedia.org/wikipedia/en/wiki/Security_Identifier<br />
&#8220;More explaination of SID&#8217;s, decoding them etc&#8221; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/finding-user-sid#p8">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/finding-user-sid/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up WriteMonkey on WordPress</title>
		<link>http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-up-writemonkey-on-wordpress</link>
		<comments>http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#comments</comments>
		<pubDate>Sun, 25 Jul 2010 12:15:03 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Markdown]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WriteMonkey]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=235</guid>
		<description><![CDATA[This post has been written using [WriteMonkey](http://writemonkey.com/ &#8220;Zenware for full screen distraction free writing&#8221;) as the text editor. Not only that but I&#8217;ve utilised Markdown as the method of text mark-up. All of this has been achieved using WordPress as &#8230; <a href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>This post has been written using [WriteMonkey](http://writemonkey.com/ &#8220;Zenware for full screen distraction free writing&#8221;) as the text editor. Not only that but I&#8217;ve utilised Markdown as the method of text mark-up. All of this has been achieved using WordPress as my CMS, Firefox as my browser and a Firefox plug-in called It&#8217;s All Text. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
My first impressions are actually good. Although its taken a little setup, I&#8217;m actually happy with the result. You see, using WriteMonkey as a text editor is, well, gorgeous. The screen is emptied of all distractions. With typewriter mode enabled, it is a pure joy to use. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
Now to get this to work I did the following: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
+ [disabled the visual editor](http://digwp.com/2010/06/blogging-in-markdown/ &#8220;Article by Chris Coyier on blogging in WordPress with Markdown&#8221;) in [WordPress](http://wordpress.org &#8220;The official WordPress site&#8221;),<br />
+ installed the [It's All Text](https://addons.mozilla.org/en-US/firefox/addon/4125/contribute/roadblock/?src=addondetail &#8220;Firefox add-on page for It&#8217;s All Text&#8221;) Firefox plug-in,<br />
+ installed the [PHP Markdown](http://michelf.com/projects/php-markdown/ &#8220;Download page for PHP Markdown&#8221;) [plug-in for WordPress](http://wordpress.org/support/topic/160189 &#8220;Help getting Markdown working in WordPress&#8221;),<br />
+ started writing :) <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
Not so hard is it? Actually the writing bit is the hardest. But you knew that&#8230; <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
What it now means is that when I begin writing a new post in WordPress, I simple click the little edit button that appears, and WriteMonkey fires up, comes to the foreground and I start writing. To finish up, I press CTRL-Q and I click YES I do want to save it. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
So I can whole-heartedly say that it&#8217;s worth the effort to setup [WriteMonkey](http://writemonkey.com/ &#8220;Zenware for full screen distraction free writing&#8221;). Go do it! It feels good. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p6">#</a><p class="winerlinks-enabled"><a name="p7"></a>
Of course, now the hard bit is about to start, that is, do more writing. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p7">#</a><p class="winerlinks-enabled"><a name="p8"></a>
PS: Only found out about WriteMonkey via [DownloadSquad](http://www.downloadsquad.com/2010/07/23/writemonkey-0-9-9-0-final-version-released-full-screen-text-lov/ &#8220;These guys are on the bleeding edge of shiny&#8221;) <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress#p8">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/how-to/setting-up-writemonkey-on-wordpress/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to: Clear Outlook Location list</title>
		<link>http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-clear-outlook-location-list</link>
		<comments>http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#comments</comments>
		<pubDate>Thu, 22 Jul 2010 22:38:36 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[ACT!]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Outlook]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=230</guid>
		<description><![CDATA[Had an issue yesterday where we wanted to remove some entires from Outlooks location list. # Huh? When you book an appointment in Microsoft Outlooks calendar you can specify a location. If ACT! by Sage has a Resource that is &#8230; <a href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>Had an issue yesterday where we wanted to remove some entires from Outlooks location list. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
Huh? When you book an appointment in Microsoft Outlooks calendar you can specify a location. If ACT! by Sage has a Resource that is designated as a location, when ACT! sync&#8217;s with Outlook that location list gets filled in. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
So, we wanted to edit that list in Outlook. Well, you can&#8217;t. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
But you can clear the list completely, which for our purpose suited us fine, it&#8217;ll get repopulated with the correct values. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
Thus, without further ado, here is how you do this: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
Open up Regedit and remove the value from this key: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
<pre><code>HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Preferences\LocationMRU
</code></pre>
Note that you will need to replace the version number for your version of Microsoft Office (14.0 = MSO2010, 12.0 = MSO2007). <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p6">#</a><p class="winerlinks-enabled"><a name="p7"></a>
Hat tip to <a title="superuser - delete locations from Outlook" href="http://superuser.com/questions/41242/how-to-delete-locations-from-the-location-history-when-creating-a-new-appointment">superuser.com</a>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list#p7">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/how-to/how-to-clear-outlook-location-list/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: discover open files on Microsoft Server</title>
		<link>http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-discover-open-files-on-microsft-server</link>
		<comments>http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#comments</comments>
		<pubDate>Thu, 22 Jul 2010 06:20:22 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[2003]]></category>
		<category><![CDATA[2008]]></category>
		<category><![CDATA[Files]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=225</guid>
		<description><![CDATA[So you&#8217;re working on a Microsoft Server machine, merrily getting stuff done, when you get a message saying that it can&#8217;t continue because files are open. Sound familiar? It happens to me often. # Here is how I find out &#8230; <a href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>So you&#8217;re working on a Microsoft Server machine, merrily getting stuff done, when you get a message saying that it can&#8217;t continue because files are open. Sound familiar? It happens to me often. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
Here is how I find out which files are open and who has them open: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
If you&#8217;re working on a Microsoft Server 2008,<br />
<strong>Start </strong>| <strong>Administrative Tools</strong> | <strong>Share and Storage Management</strong> | <strong>Manage Open Files&#8230;</strong> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
If you&#8217;re working on a Microsoft Server 2003,<br />
<strong>Start </strong>| <em>right click</em> <strong>My Computer</strong> | <strong>Manage </strong>|<strong> Computer management (local)</strong> | <strong>System Tools</strong> | <strong>Shared Folders</strong> |<strong> Open Files</strong> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
Makes it a great deal easier, now you know which file needs closing, and who you need ask to do it. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
Hope that helps you. Anything you&#8217;ve found helpful? Let me know in the comments. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server#p5">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/how-to/how-to-discover-open-files-on-microsft-server/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Port Listening</title>
		<link>http://ben.hamilton.id.au/microsoft/port-listening?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=port-listening</link>
		<comments>http://ben.hamilton.id.au/microsoft/port-listening#comments</comments>
		<pubDate>Mon, 13 Oct 2008 00:08:38 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Utility]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=84</guid>
		<description><![CDATA[If like me you need to test if network traffic is getting through a firewall then this tool will be of use to you as well. # You run it on the target/client system, specify which port you want it &#8230; <a href="http://ben.hamilton.id.au/microsoft/port-listening">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>If like me you need to test if network traffic is getting through a firewall then this tool will be of use to you as well. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/port-listening#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
You run it on the target/client system, specify which port you want it to listen on, a response message and click on listen. Able to listen on multiple ports even. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/port-listening#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
<a href="http://www.allscoop.com/tcp-listen.php">Get listen from here</a>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/port-listening#p2">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/port-listening/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resurrecting Terminal Server</title>
		<link>http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=resurrecting-terminal-server</link>
		<comments>http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#comments</comments>
		<pubDate>Tue, 16 Sep 2008 08:17:34 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Registry]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=52</guid>
		<description><![CDATA[A Terminal Server I was attempting to work on today gave quite a lot of grief. The first hint was that users were unable to login to it. When I then tried to login, it gave an error message of: &#8230; <a href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>A Terminal Server I was attempting to work on today gave quite a lot of grief. The first hint was that users were unable to login to it. When I then tried to login, it gave an error message of:<br />
<code>Login Failed</code><br />
<code>You are connected to the remote computer. Howerver, an error occured while an initial user program was starting, so you are being logged off. Contact the system administrator for assistance.</code> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
So I rebooted it remotely using the command <code>shutdown /r /f /m \\TSERVER1</code> while having a continuous ping running, from the ping results I could see it go down, come back up. However on trying to login now, after entering a username/password I could see the logon script run, but no taskbar, start button appeared. Right clicking the desktop didn&#8217;t give any menu. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
I could however navigate to the hard drive on that machine by pointing <strong>My Computer</strong> to <code>\\tserver1\c$\</code>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
Copying some of the tools at <a href="http://live.sysinternals.com">live.sysinternals.com</a> I was able to view the event logs, no issues apparent, check status of various services, all ok. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
So I connected via RDP once more (<code>mstsc /v:tserver1 /console</code>) and viewed the background (still no start button or taskbar) and pressed <code>CTRL-ALT-END</code> which allowed me to start the Task Manager. This allowed me to run a new task (<code>File | New tas (run...)</code>) so now I was able to copy the sysinternals <code>autoruns</code> program to the root of the C: partition, and run it from the affected terminal server. Running <code>c:\windows\explorer.exe</code> didn&#8217;t work tho. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p4">#</a><p class="winerlinks-enabled"><a name="p5"></a>
Delving into it&#8217;s depths I found an entry for <code>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Explorer</code> &#8211; renaming this entry then allowed Explorer to run. So I&#8217;ve exported the key (in case I do want it sometime) and then deleted it. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p5">#</a><p class="winerlinks-enabled"><a name="p6"></a>
Rebooted the server once more and bingo, it lets everyone log in. Very satisfying after a couple of hours of mad hair tearing. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server#p6">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/resurrecting-terminal-server/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to remove unwanted software</title>
		<link>http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-remove-unwanted-software</link>
		<comments>http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software#comments</comments>
		<pubDate>Sat, 13 Sep 2008 04:16:55 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Symantec]]></category>
		<category><![CDATA[Uninstall]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=45</guid>
		<description><![CDATA[Like Symantec Anti-virus. At a friends house right now, and trying to uninstall the product, it won&#8217;t &#8211; it keeps saying that something else wants to keep it there. Very unhelpful error message by they way (if Symantec is listening). &#8230; <a href="http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>Like Symantec Anti-virus. At a friends house right now, and trying to uninstall the product, it won&#8217;t &#8211; it keeps saying that something else wants to keep it there. Very unhelpful error message by the<span style="text-decoration: line-through;">y</span> way (if Symantec is listening). <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
Found a great page that explains how to remove unwanted software (surprise, they also trying to remove Symantec&#8230; hmmm&#8230;.). <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
Here it is at <a href="http://it.toolbox.com/blogs/locutus/how-to-silently-and-remotely-remove-symantec-antivirus-14625">it.toolbox.com/blogs/locutus</a>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
In a nutshell this is how: <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
<ol>
<li>Open regedit, browse to HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\ WINDOWS\CURRENT VERSION\UNINSTALL</li>
<li>Then do a search for <code>Symantec</code> (or the name of the software you want to be rid of)</li>
<li>Copy the value of <code>UninstallString</code></li>
<li>Open a command prompt (Start | Run | CMD) and paste the UninstallString here and add <code>REMOVE=ALL</code> to the end of that string, press enter.<br />
It will look <em>similar</em> to this: <code>MsiExec.exe /X{DBA4DB9D-EE51-4944-A419-98AB1F1249C8} REMOVE=ALL</code></li>
<li>Done.</li>
</ol> <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software#p4">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/how-to-remove-unwanted-software/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Terminal Server FTP without admin rights</title>
		<link>http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=terminal-server-ftp-without-admin-rights</link>
		<comments>http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights#comments</comments>
		<pubDate>Wed, 09 Jul 2008 08:52:13 +0000</pubDate>
		<dc:creator>Ben Hamilton</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Howto]]></category>

		<guid isPermaLink="false">http://ben.hamilton.id.au/?p=30</guid>
		<description><![CDATA[I&#8217;ve just found myself needing to FTP some files to a clients site. The file are in the data directory on our company&#8217;s terminal server (which I don&#8217;t have admin rights on) and I need them on a SQL Server &#8230; <a href="http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p class="winerlinks-enabled"><a name="p0"></a>I&#8217;ve just found myself needing to FTP some files to a clients site. The file are in the data directory on our company&#8217;s terminal server (which I don&#8217;t have admin rights on) and I need them on a SQL Server for a client. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights#p0">#</a><p class="winerlinks-enabled"><a name="p1"></a>
I do have access to a FTP Server but the first step is to get the files up to the FTP Server then download them to the client site. Yes, I could use the command line tool <code>ftp</code> but that is just too painful at this time of day (read: night). <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights#p1">#</a><p class="winerlinks-enabled"><a name="p2"></a>
Thus a quick google turned up this: <a href="http://www.anyclient.com/applet.html">AnyClient &#8211; The Free No-Install FTP Client</a>. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights#p2">#</a><p class="winerlinks-enabled"><a name="p3"></a>
It is a java applet. What a lifesaver, nice gui (similar to Filezilla, which is my choice of FTP clients). Anyway, AnyClient is quick and easy to use. Just thought I&#8217;d share the find. <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights#p3">#</a><p class="winerlinks-enabled"><a name="p4"></a>
Oh, and of course, no admin rights needed, as there is no program installing. Yay! <a ref="permalink" title="Permalink to this paragraph" class="winerlink" href="http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights#p4">#</a>]]></content:encoded>
			<wfw:commentRss>http://ben.hamilton.id.au/microsoft/terminal-server-ftp-without-admin-rights/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

