<?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>Colin's IT, Security and Working Life blog</title>
	<atom:link href="http://colinchaplin.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://colinchaplin.wordpress.com</link>
	<description>IT and Security - hopefully I won't have to kill you afterwards</description>
	<lastBuildDate>Tue, 12 Apr 2011 12:03:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='colinchaplin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Colin's IT, Security and Working Life blog</title>
		<link>http://colinchaplin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://colinchaplin.wordpress.com/osd.xml" title="Colin&#039;s IT, Security and Working Life blog" />
	<atom:link rel='hub' href='http://colinchaplin.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Load Balancing VPN connections over multiple ADSL lines.</title>
		<link>http://colinchaplin.wordpress.com/2011/04/12/load-balancing-vpn-connections-over-multiple-adsl-lines/</link>
		<comments>http://colinchaplin.wordpress.com/2011/04/12/load-balancing-vpn-connections-over-multiple-adsl-lines/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 12:03:56 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/?p=130</guid>
		<description><![CDATA[Here&#8217;s the scenario: You have a site that has local servers, and for reason outside your control, you cannot get a decent MPLS link in quickly, or similar. However, you can get a number of ADSL connections in quickly, and users can use their corporate VPN client to reach head office. But how to balance [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=130&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario: You have a site that has local servers, and for reason outside your control, you cannot get a decent MPLS link in quickly, or similar.</p>
<p>However, you can get a number of ADSL connections in quickly, and users can use their corporate VPN client to reach head office.</p>
<p>But how to balance users across the ADSL lines? You could subnet the network and have each ADSL router as the default gateway. But that&#8217;s a lot of network change. You could also use my little technique described below.</p>
<p>The VBScript will read an XML file, throw a dice, and setup some static routes randomly based on the XML file. The static routes will refer to the IP addresses of your VPN endpoints.</p>
<p>The program then drops to shell to use a ROUTE ADD command &#8211; note it doesn&#8217;t set it permanently. Thus, the program should be set to run via a login script, or similar. Users will need to be a member of  the &#8220;Network Configuration Operators&#8221; Group.</p>
<p>&nbsp;</p>
<p>The syntax of the XML is as shown:</p>
<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial} --></p>
<pre>&lt;routerandom&gt;</pre>
<pre>&lt;rtr&gt;</pre>
<pre>&lt;gateway&gt;IP.OF.FIRST.ADSL&lt;/gateway&gt;</pre>
<pre>&lt;route&gt;ROUTE.OF.VPN.ENDPOINT1 MASK 255.255.255.255&lt;/route&gt;</pre>
<pre>&lt;route&gt;ROUTE.OF.VPN.ENDPOINT2 MASK 255.255.255.255&lt;/route&gt;</pre>
<pre>&lt;/rtr&gt;</pre>
<pre>&lt;rtr&gt;</pre>
<pre>&lt;route&gt; IP.OF.2ND.ADSL MASK 255.255.255.255&lt;/route&gt;</pre>
<pre>
<pre>&lt;route&gt;ROUTE.OF.VPN.ENDPOINT1 MASK 255.255.255.255&lt;/route&gt;
&lt;route&gt;ROUTE.OF.VPN.ENDPOINT2 MASK 255.255.255.255&lt;/route&gt;</pre>
</pre>
<pre>&lt;gateway&gt;IP.OF.2ND.ADSL&lt;/gateway&gt;</pre>
<pre>&lt;/rtr&gt;</pre>
<pre>&lt;/routerandom&gt;</pre>
<p>The tool is quite flexible and reliable. Unfortunately, it&#8217;s not as fault-tolerant as I would like,  because (certainly with the cisco VPN client), the software doesn&#8217;t fail over to the next-lowest-cost route if an ADSL router fails. So, if an ADSL router dies, the only option is to remove it from the XML file.</p>
<p>&nbsp;</p>
<p>Code is here, forgive me for it being inside a word doc. <a href="http://colinchaplin.files.wordpress.com/2011/04/routerandom-vbs.doc">RouteRandom.vbs</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/130/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/130/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/130/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=130&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2011/04/12/load-balancing-vpn-connections-over-multiple-adsl-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>
	</item>
		<item>
		<title>Using a Mac as a Windows Guy</title>
		<link>http://colinchaplin.wordpress.com/2010/11/11/using-a-mac-as-a-windows-guy/</link>
		<comments>http://colinchaplin.wordpress.com/2010/11/11/using-a-mac-as-a-windows-guy/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 11:57:13 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/?p=126</guid>
		<description><![CDATA[A few months ago, I needed a new laptop. I wanted something that was fast, sturdy, looked good, good screen and had a good keyboard. I also wanted 8GB of RAM to do virtualisation, which was unusual at the time. I ended up choosing a mac; when I specced it as I want (an i7 processor, the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=126&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few months ago, I needed a new laptop. I wanted something that was fast, sturdy, looked good, good screen and had a good keyboard. I also wanted 8GB of RAM to do virtualisation, which was unusual at the time.</p>
<p>I ended up choosing a mac; when I specced it as I want (an i7 processor, the high res anti glare screen and faster HD) it wasn&#8217;t that much more expensive than an equivalent dell. Of course, I need to run windows on it, however, I have dabbled with the Mac side of things and have spent more time in OSX than Win7 at present. This is just a random collection of thoughts based on a few months usage.</p>
<p>&nbsp;</p>
<p>The hardware itself is excellent &#8211; I don&#8217;t know if it&#8217;s actually more sturdy than any other laptop, but it feels better put together. I do miss the ability to have an internal 3G card, and the USB ports being too close together is annoying, but overall its easily the best hardware I&#8217;ve used. It&#8217;s quite small which is handy as I usually carry two laptops.</p>
<p>OSX itself I&#8217;m not especially blown away with; it&#8217;s been a few years since I used a mac in anger. I picked it up quite quickly, and the multi-touch trackpad is excellent, but the rest of it doesn&#8217;t blow me away with its super-user-friendliness or anything special. I still struggle to cope with the &#8220;menu at the top, application in a window&#8221; model of operation, and dislike the windowing maximising (or lack, thereof!)</p>
<p>Being able to drop into unix and find standard unix commands lurking under the surface has been quite handy. Even accounting for the fact I&#8217;m more familiar with windows, I think Windows 7 has it in the usability stakes.</p>
<p>As far as reliability goes, I would say they are both equal. I&#8217;ve had apps crash on both, and two kernel panics during my use.</p>
<p>I&#8217;m finding OSX as a good base to run Virtualbox, I have no evidence but VMs do feel quicker running in OSX rather than windows.</p>
<p>In terms of apps, I&#8217;ve found everything I need, apart from Office and Visio. I haven&#8217;t invested in MS Office for mac yet, and I think open office &amp; Neo office are lousy handling word documents (I&#8217;ve timed it at over a minute to open a word document &#8211; unacceptable. I&#8217;ll look carefully at office for mac before making my choice but for now continue to get into Windows and Office/ Visio 2010</p>
<p>I&#8217;m dealing with the odd keyboard layout easily, my brain seems quite comfortable leaping between the mac keyboard and a normal keyboard.</p>
<p>Overall, what has surprised me is how little the difference is between the two. Any dev work I do is in VMs, and other than the office issues discussed above, I struggle to have a compelling reason to use one over the other. Im sticking with OSX just now, more for the novelty factor but think long term I&#8217;ll find myself in Win7 more.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/126/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/126/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/126/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=126&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/11/11/using-a-mac-as-a-windows-guy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>
	</item>
		<item>
		<title>Thinking the unthinkable – changes to government IA security architecture</title>
		<link>http://colinchaplin.wordpress.com/2010/08/06/thinking-the-unthinkable-%e2%80%93-changes-to-government-ia-security-architecture/</link>
		<comments>http://colinchaplin.wordpress.com/2010/08/06/thinking-the-unthinkable-%e2%80%93-changes-to-government-ia-security-architecture/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 12:42:49 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Government IT Security]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/?p=122</guid>
		<description><![CDATA[I’ve said before, government information security is pretty good. We’ve had leaks and data losses in the past – noticeably “low tech” problems. In terms of issues in the public domain involving technology, there’s a pretty good story to tell. However, times are different now, there is no money left. There’s a lot of security [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=122&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I’ve said before, government information security is pretty good. We’ve had leaks and data losses in the past – noticeably “low tech” problems. In terms of issues in the public domain involving technology, there’s a pretty good story to tell.</p>
<p>However, times are different now, there is no money left. There’s a lot of security controls in place to mitigate against risks. Is it time to accept some of these risks and pare down the controls ? Let’s look at what can be done, comparing against a normal large business as our “sanity control”. Similarly, most businesses do not have to deal with “life and death” information, so I’m not considering that classification of information.</p>
<p>Government policy will not allow a wide area network to be run without complex encryption over the top. So, whilst most companies buy MPLS from the likes of Cable and Wireless and BT, government will do the same, then overlay a complex and expensive VPN. Removing this as a mandatory requirement would reduce costs in future, and even for currently deployed networks there’s a need to support all these extra boxes (and give them power, cooling). Plus, removing the extra encryption would improve speeds! As long as the migration cost is less than the support cost, everyone wins!</p>
<p>There’s a requirement for hard-disk encryption. Most corporates have woken up to this as an issue, and central government is no different. However, rather than effectively mandating a few, expensively approved products, perhaps the use of common commercial alternatives would save tens of pounds per machine.</p>
<p>VPN is another common business operation. Again, common in Government but mainly done with exotic VPN products you’ve never heard of. Ditch this, and go with Juniper and Cisco that everyone else uses. Many corporates will provide webmail for their employees. This will allow employees to access their email, probably from their home PC. This might alleviate the need for a blackberry, laptop and so on. You just won’t see this on a central government system. So, provide this and see mobile comms costs tumble.</p>
<p>Each government department is an autonomous organisation. They are joined up via the “Government Secure intranet”. This is a private WAN used to ship email and allow access to each others private websites. For email, if you’re feeling bold you could enforce TLS between your partners, or have a select few use PGP. But use the internet like everyone else. And when business want to share information, they setup VPNs over the internet. Do all this, and scrap the GSi</p>
<p>You’ll note none of these suggestions are fundamental. I’m not suggesting everyone run linux, or some sort of single, unified IT system. Mainly because change == cost, and drastic change == lots of cost.</p>
<p>However, there has to be a downside, and that is risk. Our attackers will have an easier ride, and those who seek to get at our information will have more success. As cyber-terrorism becomes a reality, would we be setting ourselves us for attack? At the more trivial end there’s bound to be stories about Nigerian scammers getting into government accounts.</p>
<p>The controls that are in place are not there because some security nerd wanted to install the latest gizmo. The question is therefore, is there anyone senior enough to take these decisions and also genuinely accept the risks and guaranteed issues?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/122/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/122/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/122/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=122&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/08/06/thinking-the-unthinkable-%e2%80%93-changes-to-government-ia-security-architecture/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting IT experience &#8211; self-taught exercises</title>
		<link>http://colinchaplin.wordpress.com/2010/06/28/getting-it-experience-self-taught-exercises/</link>
		<comments>http://colinchaplin.wordpress.com/2010/06/28/getting-it-experience-self-taught-exercises/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 11:47:57 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://colinchaplin.wordpress.com/2010/06/28/getting-it-experience-self-taught-exercises/</guid>
		<description><![CDATA[I often get asked “how do I get into IT” or “what’s the best route”. Here’s some advise along these lines, but different from the usual guidance on certs and training. Below are a series of suggested tasks to get you up-and-running in the IT infrastructure world. Intentionally I’ve not explained every step in great [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=120&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I often get asked “how do I get into IT” or “what’s the best route”. Here’s some advise along these lines, but different from the usual guidance on certs and training.</p>
<p>Below are a series of suggested tasks to get you up-and-running in the IT infrastructure world. Intentionally I’ve not explained every step in great detail, nor included everything you have to do. Nor will performing these tasks make you an expert in these technologies. In fact, one of the goals of the exercise is to get to comfortable and familiar with new technology, googling for information, doing some “try and see” in a safe environment</p>
<p><b>1. Build yourself a PC</b>    <br />In years gone by, building a PC from components was a good way to get a cheap PC. These days, less so. However, we have particular needs from this PC, and the actual building and fault-finding process will help us along the path. Exact spec is up-to-you, but we need:    <br />• As much RAM as possible (suggest 8GB)    <br />• Processor capable of 64 bit OS and virtualisation    <br />• DVD Drive    <br />Otherwise, it needn’t be the highest spec. You should check all drivers are available in 64 bit versions, however happily it’s very unusual these days for this not to be the case    <br /><b></b></p>
<p><b>2. Microsoft Technet Direct</b>    <br />A Microsoft Techet Direct subscription is something every windows techie should have. For just over a hundred pounds a year, it gives you full access to all Microsoft business software, and is great for testing and evaluating –just as we’re doing here. So get yourself a subscription and make the first thing you download Windows 2008R2 as we’re going to build a ..    <br /><b></b></p>
<p><b>3. Virtual environment</b>    <br />Now we’ve got a shiny new PC, lets start to do something with it. Burn your Windows 2008 R2 to a DVD and pop it in your machine. Build the OS as you see fit, and have the Hyper-V role installed. We’re going to use that as our virtualisation software. Other than basic software you need to manage the server (I’d also suggest 7-zip is a good tool), you shouldn’t modify the base server. That’s what VMs are for!    <br />First things first, let’s build a basic server image VM. Fire up the Hyper V console and configure it up with settings you think make sense. Copy the Windows 2008 R2 ISO file to the machine and mount that. Turn on your virtual machine and install Windows 2008 R2. When it was finished building, ensure you install the Hyper-V tools.    <br />Close the virtual machine down, and take a copy of the VHD. We’ll use that as a “gold” image to build other hyper-V machines.    <br /><b></b></p>
<p><b>4. Build an Active Directory</b>    <br />Our first server is going to be an Active Directory server – this is used by almost all other windows server system components so makes sense to build first. Copy the Gold VM VHD and configure a new VM – I’d give it say 4GB of RAM whilst we’re using the machine and when it’s just running in a steady state reduce the amount of RAM.    <br />Use the NEWSID tool to ensure the machine has a unique identifier.    <br />Installing this will also install DNS – setup forwarding so that it forwards to your ISPs DNS servers.    <br />Decide on the structure of your OUs, where you will put users, computers and servers    <br />Create some users and groups called    <br />• Admins    <br />• Managers    <br />• Staff    <br /><b></b></p>
<p><b>5. Install WSUS</b></p>
<p>This might be a learning environment, but we want to follow best practise! So download WSUS from Microsoft. I’ll leave it for you to decide if you want to install it on the Active Directory Sever, or build a new server to host it.   <br />The next thing to do is to build a GPO to ensure all machines refer to the local WSUS server for updates. Decide on your update strategy both in terms of WSUS approvals and application of patches. I’d be included to have automated approvals and install as much as possible as this is only a trial environment.    <br /><b></b></p>
<p><b>6. PC Image</b>    <br />If possible, this should be on a “real PC”. If we don’t have the kit, then a virtual machine will have to do. I’ll leave the operating system choice up to you, but XP is still a valid choice as it’s still used everywhere – although it might have added complexity with your automated deployment tool.    <br />What we’re doing here is building a PC in the anticipation that it’s going to be rolled out to thousands of desktops. So we want the initial install scripted (i.e. automated input of user details, serial number and so on).     <br />Include any drivers that your target machines are likely to need, service packs and patches. Don’t install any software (that will follow)    <br />Then, follow the instructions for preparing the machine for imaging, which will include resetting the SID, wiping the swap files and so on.    <br />You need to decide on a deployment method: RIS or WDS. WDS is the newer technology but there might be a reason you want to choose RIS especially if you have XP as your OS.    <br />Once you have that up-and-running, image a few PCs (virtual or real) and see how you get on.    <br /><b></b></p>
<p><b>7. Install Software</b>    <br />Most big companies will have a heavyweight deployment tool to package and deploy software, here we’re going to keep It simple and use the builtin windows software deployment.    <br />Download some Microsoft software (suggest Office and Visio) and configure these packages so AD will deploy it to all PCs (not servers though!)    <br /><b></b></p>
<p><b>8. File and Print Server</b>    <br />We want to setup a file share with particular access rights..     <br />This should be    <br />• Admins – Full Control    <br />• Managers – Change    <br />• Staff – Read only    <br />Also, all users should have this drive mapped as their “X: Drive” upon login automatically.    <br />It’s your choice whether to setup another dedicated file server VM or “piggy back” upon another one.    <br />Your next task is to setup a network printer. This should be     <br />configured so that users can connect to \\servername\printername and have drivers for that printer automatically installed. Note if you have a USB printer it may well be easier to share this from the &quot;real&quot; server    <br /><b></b></p>
<p><b>9. Exchange</b>    <br />This is a big one! I would actually suggest installing Exchange 2003 as many companies still use it, and migrating away from it is a useful exercise in itself. However, your gold VM image will not be sufficient as Exchange 2003 needs a 32 bit OS.    <br />Build a new VM, Install Exchange 2003 and create exchange mailboxes for your users.    <br />Now here comes the clever bit. We’re going to setup email routing to and from the internet. Go to a provider of dynamic DNS services like dyndns.com and setup a DNS name for your organisation that’s registered against your current connections IP address. Now, also setup an MX record to the same address. You now need to configure your ADSL router/ Cable modem/ etc/ to forward port 25 traffic from the internet to the IP address of your Exchange Server    <br />Automatically create email addresses for your users in the format of <a href="mailto:name@your-dynamic-dns-entry">name@your-dynamic-dns-entry</a>    <br />Finally you should configure outlook so that it automatically creaes a profile for end users to connect to the their new mailbox.    <br /><b></b></p>
<p><b>10. Document</b>    <br />Now that we’ve got a cracking IT infrastructure, let’s have a go at documenting it (OK, we should probably do that first, but hey, this is only an exercise. Fire up visio (downloaded from your technet subscription) and describe your environment. Your diagram should include    <br />• All your servers, names, IP address, function    <br />• Active Directory    <br />• Exchange    <br />• Internet connection    <br />• How mail is routed in an out    <br />• Virtual versus real machines</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/120/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/120/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/120/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=120&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/06/28/getting-it-experience-self-taught-exercises/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>
	</item>
		<item>
		<title>Inventory Audit of a complex IT network</title>
		<link>http://colinchaplin.wordpress.com/2010/06/03/inventory-audit-of-a-complex-it-network/</link>
		<comments>http://colinchaplin.wordpress.com/2010/06/03/inventory-audit-of-a-complex-it-network/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 17:49:01 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://colinchaplin.wordpress.com/2010/06/03/inventory-audit-of-a-complex-it-network/</guid>
		<description><![CDATA[I’ve been spending some time doing a complete inventory of a rather complex IT environment, with more firewalls, servers, weird networking and all-round oddness that imaginable. The network has around 10,000 IP devices and has grown fairly organically, with various organisations having been responsible for it’s upkeep – to various levels of quality. The need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=119&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I’ve been spending some time doing a complete inventory of a rather complex IT environment, with more firewalls, servers, weird networking and all-round oddness that imaginable. The network has around 10,000 IP devices and has grown fairly organically, with various organisations having been responsible for it’s upkeep – to various levels of quality.</p>
<p>The need was for a “point in time” inventory of what’s out there. A we didn’t have use of a big tool like centinel nor wish to use the existing network management tools (to provide an independent result). Oh, and I had limited admin access rights.</p>
<p> Here’s how I did it</p>
<p>Largely, the work was split into two pieces, a Wintel Audit and an “non Wintel” – encompassing networks, printers, switches, SANs…</p>
<p>The Wintel Audit was fairly easy – I cobbled together a VBScript to query machines using WMI and pull back installed software, machine spec, and so on – just the basic in you might want if you need to take migration decisions. I’ll post the script up in my next blog entry.</p>
<p>The Non-Wintel was more involved. Firstly, i used nmap to scan every IP device. It takes an “educated guess” as to what the device is, and does a reasonable job. The most surprising fact was there was quite a lot wintel kit in here I hadn’t picked up. This was because machines were in different domains and workgroups. These were then added to the wintel audit.</p>
<p>This gave me an outline of what to look for and how to investigate.</p>
<p>There was hundreds of printers on the estate, almost all HP. The nmap tool had done a reasonable job of guessing the type, but it wasn’t precise. To do this,&#160; I fired up HP Jet Direct tools, which is a little light-weight tool that HP no longer provide in this basic form. Shame, because it’s all that’s needed. I just gave the IP addresses relating to HP printers and it went off an queried them. Minutes later, I had netbios names and proper printer models. Lovely.</p>
<p>I didn’t have full access to networking devices, but I did have the SNMP community strings. Therefore I used Billy the Kid’s cisco SNMP tool.</p>
<p>I simply fired in the switches IP address, the community string and the tool got the switches CDP neighbours, helpfully giving me the model names and IP addresses of Layer-2 connected switches. From this, I was not only able to build a network map,&#160; I was able to make the inventory far more accurate.</p>
<p>However, there was an area that was, by design, hidden from view. The client has multiple connections to multiple systems, so has a myriad of firewalls and DMZ’s. I peered through the firewall rulesets to see if I could find equipment on the network that was hidden from ICMP scans. Easy on the Cisco ASDM, Checkpoint FW1 and the Juniper &#8211; slightly more complex reading the config of an old PIX! Doing this enabled me to find servers, switches and more Firewalls behind Firewalls.</p>
<p>Then is was just a case of manually picking off the oddities. The nmap scan found lots of Sun boxes, helpfully for me they all revealed their machine name when I FTPd to them,&#160; or finger @machinename. Almost all other devices tell me enough to be useful by connecting via Telnet, SSH, http or https – APC power strips and specialised printers. I even found an plasma screen that talks IP!</p>
<p>The result? An asset list that’s about double the previous list…. and a lot of “must improve housekeeping” to do !</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=119&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/06/03/inventory-audit-of-a-complex-it-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>
	</item>
		<item>
		<title>Making Live Messenger work with 3 3G Service</title>
		<link>http://colinchaplin.wordpress.com/2010/04/26/making-live-messenger-work-with-3-3g-service/</link>
		<comments>http://colinchaplin.wordpress.com/2010/04/26/making-live-messenger-work-with-3-3g-service/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 20:16:42 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://colinchaplin.wordpress.com/2010/04/26/making-live-messenger-work-with-3-3g-service/</guid>
		<description><![CDATA[For some reason, I never have got Live Messenger to work on my laptop (Dell XPS M1530, Windows 7 x64) using “3” 3G connection via a built in 3G card and the Dell Mobile Broadband Card utility. It wasn’t really a concern, until now! It would try to login, try for a while.. Before dying [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=118&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For some reason, I never have got Live Messenger to work on my laptop (Dell XPS M1530, Windows 7 x64) using “3” 3G connection via a built in 3G card and the Dell Mobile Broadband Card utility. It wasn’t really a concern, until now!</p>
<p>It would try to login, try for a while..</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb.png?w=160&#038;h=358" width="160" height="358" /></a> </p>
<p> Before dying with Error Code: 8000402a:</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image1.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb1.png?w=451&#038;h=198" width="451" height="198" /></a> </p>
<p>&#160;</p>
<p>Clicking “Get more information” was final insult as all the results were in French. Sacre-Bleu!</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image2.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb2.png?w=462&#038;h=269" width="462" height="269" /></a> </p>
<p>3 supply a private IP address and there’s been a number of occasions where the web has been dead, but TCP/IP connectivity is fine, therefore I assume they use a “transparent proxy”.&#160; Which I suspected of being at fault. Not much I could do about that, and didn’t fancy calling the call centre whilst I was on the train</p>
<p>Googling was difficult&#160; &#8211; When you are a company selling 3G services, calling it “3” isn’t helpful!</p>
</p>
</p>
<p>The diagnostics built into messenger wasn’t very helpful, apparently I have a Invalid IP address. Works OK for the web.</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb3.png?w=451&#038;h=425" width="451" height="425" /></a> </p>
<p>And, in fairness, the IP address arrangement handed down by the 3G connection do seem a <em>bit odd..</em></p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image4.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb4.png?w=532&#038;h=271" width="532" height="271" /></a> </p>
<p>&#160;</p>
<p>But this lead to to a dead end.. so what now ?</p>
<p>&#160;</p>
<ul>
<li> Firewall… Tried that, no difference</li>
<li>Windows Event log – nothing</li>
<li>Diagnostics in Live Messenger – too cryptic for me to decypher</li>
</ul>
<p>My next steps were to fire up wireshark and try and understand what’s going on. But, sometimes inspiration comes from funny places</p>
<p>I decided to see what would happen if I run Live messenger in Admin mode. No difference.</p>
<p>Then I tried compatibility mode, changing it to Windows XP SP3:</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb5.png?w=349&#038;h=491" width="349" height="491" /></a> </p>
<p>A UAC pops up, I select “YES”</p>
<p>&#160;</p>
<p>&#160;</p>
<p>And…..drumroll….. SUCESS!!</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/04/image6.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/04/image_thumb6.png?w=292&#038;h=523" width="292" height="523" /></a> </p>
<p>&#160;</p>
<p>All I need to do now is configure UAC not to complain when messenger Launches!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/118/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/118/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/118/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=118&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/04/26/making-live-messenger-work-with-3-3g-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/04/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>VB Script to delete files older than a few days</title>
		<link>http://colinchaplin.wordpress.com/2010/02/18/vb-script-to-delete-files-older-than-a-few-days/</link>
		<comments>http://colinchaplin.wordpress.com/2010/02/18/vb-script-to-delete-files-older-than-a-few-days/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 17:35:04 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/2010/02/18/vb-script-to-delete-files-older-than-a-few-days/</guid>
		<description><![CDATA[I had a client that for a variety of reasons moved the Outlook Temporary files to a different folder from the default. It was noticed that outlook wouldn’t always delete it’s tempoary files, so someone had hacked together a little VB script to do the job. However, it appeared to be buggy and didn’t delete [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=100&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a client that for a variety of reasons moved the Outlook Temporary files to a different folder from the default. It was noticed that outlook wouldn’t always delete it’s tempoary files, so someone had hacked together a little VB script to do the job.</p>
<p>However, it appeared to be buggy and didn’t delete all files. No obvious reason why. Also, if the temp area wasn’t available when it was run, it would error to the screen.</p>
<p>To help, I concocted this script. I’m no VBScript guru, but with looking at examples on the web pulled this together. It majors on letting the user know what it’s doing and trapping errors. The program style isn’t perfect, but it works.</p>
<p>Most importantly of all, we found the bugs in the previous effort; some outlook attachments were marked as read only and therefore not deleted; this script gets round that by forcing deletion – only stopped by permissions problems.</p>
<p>Here it is in all its glory..</p>
<p><font size="2" face="Courier New">Option Explicit </font></p>
<p><font size="2" face="Courier New">&#8216; Path to delete      <br />const FolderName =&quot;d:\Temp&quot;       <br />&#8216; Age of file (last modified) in days before it is deleted       <br />const Days=7 </font></p>
<p><font size="2" face="Courier New">&#8216;Set debug to 1 for screen pops with helpful messages      <br />const debugmode=0 </font></p>
<p><font size="2" face="Courier New">const SUCCESS=0      <br />const ERROR=1       <br />const WARNING=2       <br />const INFORMATION=4       <br />dim result       <br />logit &quot;Begining process to delete temp files in &quot; &amp; FolderName &amp; &quot; older than &quot; &amp; Days &amp; &quot; Days&quot;,INFORMATION       <br />result = delFiles(FolderName,Days) </font></p>
<p><font size="2" face="Courier New">Function delFiles(strDir,strDays)      <br />&#8216; Take in the path to delete and the number of days old a file has to be       <br />&#8216; Then delete the files in that path if they are older than that date </font></p>
<p><font size="2" face="Courier New">&#160; dim fso,file,folder,individualFile,foldercontains      <br />&#160; dim strComments       <br />&#160; dim intDeleted, intNotDeleted       <br />&#160; intDeleted=0       <br />&#160; intNotDeleted=0       <br />&#160; Set fso = CreateObject(&quot;Scripting.FileSystemObject&quot;)       <br />&#160; on error resume next </font></p>
<p><font size="2" face="Courier New">&#160; Set folder = fso.GetFolder(strDir)      <br />&#160; if err = 0 then       <br />&#160;&#160;&#160; strComments = strComments &amp; strDir &amp; &quot; exists.&quot; &amp; VBCRLF       <br />&#160; else       <br />&#160;&#160;&#160; strComments = strComments &amp; &quot;. **ERROR** Accessing folder &#8211; cannot find &quot; &amp; strDir &amp; VBCRLF &amp;&#160; err.description &amp; &quot; (&quot; &amp; err.source &amp; &quot;)&quot; &amp; VBCRLF </font></p>
<p><font size="2" face="Courier New">&#160;&#160;&#160; intNotDeleted=intNotDeleted+1      <br />&#160; end if       <br />&#160; err.Clear&#160; </font></p>
<p><font size="2" face="Courier New">&#160; Set foldercontains = folder.Files      <br />&#160; dim intDifferenceinDays       <br />&#160; strComments = strComments &amp; &quot;Deleting Files older than &quot; &amp; strDays &amp; &quot; days&quot; &amp; VBCRLF       <br />&#160; For Each individualFile in folderContains       <br />&#160;&#160; &#8216; Loop through each file in the folder and check its date       <br />&#160;&#160;&#160; if debugmode=1 then       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; wscript.echo (&quot;Looking at &quot; &amp; individualfile &amp; VBCRLF &amp; &quot;Which has date last modified of: &quot; &amp; individualFile.datelastmodified _ </font></p>
<p><font size="2" face="Courier New">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &amp; VBCRLF &amp; &quot;To see if its &quot; &amp; strDays &amp; &quot; days older than &quot; &amp; Now)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; End if       <br />&#160;&#160;&#160; strComments = strComments &amp; VBCRLF &amp; &quot;Analysed &quot; &amp; individualfile &amp; &quot;: &quot;       <br />&#160;&#160;&#160; intDifferenceinDays = DateDiff(&quot;d&quot;, individualFile.datelastmodified, Now)       <br />&#160;&#160;&#160; If intDifferenceinDays &gt; strDays Then       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; if debugmode=1 then       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; wscript.echo (&quot;We&#8217;ve decided to delete&quot; &amp; file &amp;&quot;&#8230; Datediff is&quot; &amp; intDifferenceinDays )       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; End if&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160; strComments = strComments &amp; &quot; Deleting&#8230;.&quot;       <br />&#160;&#160;&#160;&#160;&#160; on error resume next       <br />&#160;&#160;&#160;&#160;&#160; fso.DeleteFile individualFile,TRUE       <br />&#160;&#160;&#160;&#160;&#160; if err = 0 then       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; intDeleted=intDeleted+1       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; strComments = strComments &amp; &quot;. SUCCESS&quot;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; else       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; intNotDeleted=intNotDeleted+1       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; strComments = strComments &amp; &quot;. **ERROR** &quot; &amp; err.description &amp; &quot; (&quot; &amp; err.source &amp; &quot;)&quot;       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; end if       <br />&#160;&#160;&#160;&#160;&#160; err.Clear&#160; <br />&#160;&#160;&#160;&#160; Else       <br />&#160;&#160;&#160;&#160;&#160;&#160; if debugmode=1 then       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; wscript.echo (&quot;We&#8217;ve decided to spare&quot; &amp; file &amp;&quot;&#8230; DiD: &quot; &amp; intDifferenceinDays &amp; &quot;&#160; Required: &quot; &amp; strDays) </font></p>
<p><font size="2" face="Courier New">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; End if      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; strComments = strComments &amp; &quot;Not Deleted. Only &quot; &amp; intDifferenceinDays &amp; &quot; days old&quot;       <br />&#160;&#160;&#160; End If       <br />&#160; Next       <br />&#160; strComments = strComments &amp; VBCRLF &amp; &quot;No of Files Deleted: &quot; &amp; intDeleted &amp; VBCRLF &amp; &quot;ERROR in deleting: &quot; &amp; intNotDeleted </font></p>
<p><font size="2" face="Courier New">&#160; if intNotDeleted &gt; 0 then      <br />&#160;&#160;&#160; logit strComments, ERROR       <br />&#160; else       <br />&#160;&#160;&#160; logit strComments,INFORMATION       <br />&#160; end if       <br />&#160; delFiles=1       <br />End Function </font></p>
<p><font size="2" face="Courier New">Function logit(text,level)      <br />&#8216; Writes a simple message to the windows event log       <br />&#160; dim Wshshell       <br />&#160; set WshShell = CreateObject(&quot;WScript.Shell&quot;)       <br />&#160; WshShell.LogEvent level, text       <br />&#160; logit=1 </font></p>
<p><font size="2" face="Courier New">end Function</font></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/100/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/100/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/100/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=100&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/02/18/vb-script-to-delete-files-older-than-a-few-days/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>
	</item>
		<item>
		<title>Design for an Exchange 2010 Backup</title>
		<link>http://colinchaplin.wordpress.com/2010/01/28/design-for-an-exchange-2010-backup/</link>
		<comments>http://colinchaplin.wordpress.com/2010/01/28/design-for-an-exchange-2010-backup/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:41:16 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Documentation]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/2010/01/28/design-for-an-exchange-2010-backup/</guid>
		<description><![CDATA[Like most, I’ve been coming to terms with the storage performance requirements (or, lack thereof) in Exchange 2010. For any previous Exchange deployment (certainly 2003) you’d start with a SAN and use features like snapping to ensure you can backup without affecting performance. To my mind SANs remain stubbornly expensive for what’s actually delivered (I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=98&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p> Like most, I’ve been coming to terms with the storage performance requirements (or, lack thereof) in Exchange 2010.</p>
<p>For any previous Exchange deployment (certainly 2003) you’d start with a SAN and use features like snapping to ensure you can backup without affecting performance.</p>
<p>To my mind SANs remain stubbornly expensive for what’s actually delivered (I was just quoted over £3500 for a single 15K 600GB SAS disk which is certified to run in a SAN!). </p>
<p>So the fact I really don’t need one for Exchange 2010 is perfect.</p>
<p>But how do I back up?</p>
<p>Microsoft will tell you they don’t back up at all, just rely on the native protection and deleted items retention.</p>
<p>I’m a little – just a little- less gung-ho than that and I suspect many of my customers are, too.</p>
<p>There’s very little product choice on the market, or indeed much Microsoft collateral about how to backup Exchange 2010, so I thought I’d take a stab at a possible solution myself!</p>
<p>My objectives:</p>
<ul>
<li>Don’t “waste” the genuine data protection tools native to Exchange 2010</li>
<li>Prepare for the day when an exchange corruption is replicated to ALL databases (however impossible that might be)</li>
<li>Provide a longer-term archive.</li>
</ul>
<p>&#160;</p>
<p>Consider the following environment:</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image4.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb4.png?w=420&#038;h=470" width="420" height="470" /></a> </p>
<p>&#160;</p>
<p>We’ve got a single DAG with four copies of every database. Let’s say for argument sake we’ve got 5000 users with a 1GB mailbox. Of course, our disks are directly attached and we’re using nice-and-cheap SATA storage on JBOD. Let’s use 1TB because smaller disks are beer money less.</p>
<p>So far, so good, so like every other Exchange 2010 design piece. We’re leveraging the native protection and we’ve got four copies of the data.</p>
<p>But how to protect against the replicated corruption scenario?</p>
<p>&#160;</p>
<p>&#160;</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image5.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb5.png?w=450&#038;h=263" width="450" height="263" /></a></p>
<p>&#160;</p>
<p>I’m using another new feature of Exchange 2010; lagged replication. So this server in question is always behind the other servers; in theory then should the “replicated corruption” scenario occur, we can take action before it plays into our time delayed mailbox server.</p>
<p>But how long? Too short a delay and the corruption might get missed and played into the lagged database anyway Too long and and invocation of the lagged server might risk losing mail.</p>
<p>My best-guess figure was about 24 hours; this is comparable to a normal restore if we don’t have logfiles.</p>
<p>Now, observant types will have noticed there’s extra disk arrays attached to the lagged mailbox server. To break with custom, these will be RAID5 and their purpose is to act as a file share area to perform backup-to-disk operations. I’m doing disk-to-disk backups because:</p>
<p>I can, at very little infrastructure cost</p>
<p>Having recent backups online is always useful. </p>
<p>At the time of writing, the choice of backup products is underwhelming so I’m going to use the built-in tool. The real downside to this is that I can only backup from the active node, thus I need to be real careful about what I’m backing up, when. Pumping the data across the network in good time might be tricky without the right network setup.</p>
<p>Most likely, one or two databases will get backed up every night with all databases having at least an incremental backup</p>
<p>Now to the final part of the plan; the long-term archive. Hopefully never needed, but your operation might need to keep archives of data (this, probably isn’t the solution for this, you need to check out other new exchange features). But it’s most likely needed when the CEO needs an email he deleted 12 months ago.</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image6.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb6.png?w=437&#038;h=412" width="437" height="412" /></a> </p>
</p>
</p>
<p>Backup-to-tape is therefore meets my need. I’m only going to backup to tape the files produced by the disk-to-disk backup process, and I’m going to choose my timings wisely.</p>
<p>So there-we-have-it. A fairly robust backup architecture? I’m hoping as time progresses and products fill the void (like DPM2010) this solution will look archaic, but for now it’s my best shot at what backup could look like.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=98&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/01/28/design-for-an-exchange-2010-backup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Search entire domains for service accounts</title>
		<link>http://colinchaplin.wordpress.com/2010/01/11/search-entire-domains-for-service-accounts/</link>
		<comments>http://colinchaplin.wordpress.com/2010/01/11/search-entire-domains-for-service-accounts/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 18:29:54 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Programs and Scripts]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/2010/01/11/search-entire-domains-for-service-accounts/</guid>
		<description><![CDATA[&#160; Have you ever been in a scenario where you need to change a password on a service account but don&#8217;t know what service on what servers use the account? You could pick through audit logs and it still might not tell you if a service hasn&#8217;t been restarted recently. Regscan will visit all machines [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=87&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Have you ever been in a scenario where you need to change a password on a service account but don&#8217;t know what service on what servers use the account? You could pick through audit logs and it still might not tell you if a service hasn&#8217;t been restarted recently. Regscan will visit all machines in your domain and give you a list of machines that use that account</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image3.png"><img style="border-bottom:0;border-left:0;display:inline;border-top:0;border-right:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb3.png?w=450&#038;h=212" width="450" height="212" /></a> </p>
<p>Usage</p>
<p>Simply enter</p>
<p>regscan <em>account</em> <strong>domain</strong> [textfile.txt]</p>
<p>where:</p>
<ul>
<li><em>account</em> is the account you are searching for. Don&#8217;t put the domain name first, regscan will pick out either notation from the service list </li>
<li><strong>domain</strong> is the netbios domain name to search </li>
<li>textfile.txt (optional, but reccommended) Specifies a list of servers to search, one per line. In large domains, this is a more reliable method than leaving the program to scan the domain to find machines.</li>
</ul>
<p>Download</p>
<p>Grab the program <a href="http://www.chaplin.me.uk/regscan.zip">here</a>. <a href="mailto:colin@chaplin.me.uk">Let us know</a> how you get on with it. </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/87/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/87/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/87/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=87&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/01/11/search-entire-domains-for-service-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing Windows Update error 80244021</title>
		<link>http://colinchaplin.wordpress.com/2010/01/01/fixing-windows-update-error-80244021/</link>
		<comments>http://colinchaplin.wordpress.com/2010/01/01/fixing-windows-update-error-80244021/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 20:11:03 +0000</pubDate>
		<dc:creator>chaplic</dc:creator>
				<category><![CDATA[Fault Finding]]></category>

		<guid isPermaLink="false">http://colinchaplin.wordpress.com/2010/01/01/fixing-windows-update-error-80244021/</guid>
		<description><![CDATA[&#160; Spotted on a couple of my machines, windows update was not working, with the above error: &#160; &#160; The Microsoft TechNet article is pretty unhelpful, suggesting the windows update service is having trouble connecting, possibly an on-machine firewall stopping it. Nothing that should be stopping this springs to mind, so my first concern is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=84&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>Spotted on a couple of my machines, windows update was not working, with the above error:</p>
<p>&#160;</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb.png?w=431&#038;h=306" width="431" height="306" /></a> </p>
<p>&#160;</p>
<p>The Microsoft TechNet article is pretty unhelpful, suggesting the windows update service is having trouble connecting, possibly an on-machine firewall stopping it.</p>
<p>Nothing that should be stopping this springs to mind, so my first concern is malware.&#160; A quick scan by Malwarebytes didn’t show anything; sadly I know that doesn’t guarantee we’re OK. I had a quick look at the host file; nothing changed there. The IP addresses associated with the windowsupdate DNS names appeared to be OK. It did seem as if the PC was being blocked from geting updates.</p>
<p>So, what is actually happening when I click “Get updates” ?</p>
<p>I needed something to let me see behind the lovely chromed update UI. The tool I chose was was <a href="http://www.fiddler2.com/fiddler2/" target="_blank">fiddler</a>. Mainly used by people debugging websites, it also has the useful knack of sniffing all http traffic from the machine. Let’s fire it up and hit the “try again” button:</p>
<p>&#160;</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image1.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb1.png?w=450&#038;h=253" width="450" height="253" /></a> </p>
</p>
<p>&#160;</p>
<p>We can see the update process requesting the <font size="2" face="Courier New">wuident.cab</font> from a server <font size="2" face="Courier New">jelly.dessert.local</font></p>
<p>clearly, the machine in question doesn’t belong to WindowsUpdate. Fortunately, there’s an explanation which is less worrying than some uber-weird virus.</p>
<p>A few weeks ago, I need a couple hundred GBs of disk space for some new VMs in a hurry. Being in a tight spot, I uninstalled WUS which conveniently was taking up about that much space; I then of course changed group policy so that my dozen or so&#160; machines talked to windows update directly</p>
<p>It would appear, however, that a couple of machines have group-policy update issues and never got the update changing from using a local WUS to the microsoft update servers.</p>
<p>So a fairly predictable fix from there on in. But the original fault-finding would be soooo much easier with a <em>little</em> more diagnostic error messages, Microsoft!</p>
<p>&#160;</p>
<p><a href="http://colinchaplin.files.wordpress.com/2010/01/image2.png"><img style="display:inline;border-width:0;" title="image" border="0" alt="image" src="http://colinchaplin.files.wordpress.com/2010/01/image_thumb2.png?w=450&#038;h=320" width="450" height="320" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colinchaplin.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colinchaplin.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/colinchaplin.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/colinchaplin.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colinchaplin.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colinchaplin.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colinchaplin.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colinchaplin.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=colinchaplin.wordpress.com&amp;blog=7669074&amp;post=84&amp;subd=colinchaplin&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://colinchaplin.wordpress.com/2010/01/01/fixing-windows-update-error-80244021/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7afe5270dcbd2b95627b64c0a0af941e?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chaplic</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://colinchaplin.files.wordpress.com/2010/01/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
	</channel>
</rss>
