<?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>Third Shelf &#187; windows</title>
	<atom:link href="http://thirdshelf.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://thirdshelf.com</link>
	<description></description>
	<lastBuildDate>Sun, 13 May 2012 17:08:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thirdshelf.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Third Shelf &#187; windows</title>
		<link>http://thirdshelf.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thirdshelf.com/osd.xml" title="Third Shelf" />
	<atom:link rel='hub' href='http://thirdshelf.com/?pushpress=hub'/>
		<item>
		<title>MassFlash v1.0</title>
		<link>http://thirdshelf.com/2011/06/26/massflash-v1-0/</link>
		<comments>http://thirdshelf.com/2011/06/26/massflash-v1-0/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 18:03:03 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[productivity]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Disk formatting]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[USB flash drive]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://thirdshelf.com/?p=639</guid>
		<description><![CDATA[Preparing many flash disks with the same data is tedious and might I add very boring. On my quest to learn Powershell, I might just as well put it to good use. With just a few lines of code I managed to cook up a script to do the mind-numbing work of preparing flash disks. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=639&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Preparing many flash disks with the same data is tedious and might I add very boring. On my quest to learn Powershell, I might just as well put it to good use. With just a few lines of code I managed to cook up a script to do the mind-numbing work of preparing flash disks. It does the work and I watch. Perfect!</p>
<p>It is a very simple script that:</p>
<ol>
<li>Formats each flash drive to FAT32;</li>
<li>Copies the contents of the specified directory recursively onto the flash drive;</li>
<li>Dismounts the volume.</li>
</ol>
<p>The script finds all removable drives between 1gb and 64gb in size. We don&#8217;t want to slip up here, now do we?</p>
<p>At the top of the script, a default directory is specified from where all files will be copied if an alternative directory was not specified on the command line.</p>
<p><pre class="brush: plain;">
Write-Host &quot;MassFlash - Version 1.0&quot;
Write-Host &quot;Author: SS du Plooy&quot;
Write-Host &quot;-----------------------&quot;

If($args.Length -eq 0)
{
    $DirectoryToCopy = &quot;c:\DefaultFromCopyLocation&quot;
}
Else
{
    $DirectoryToCopy = $args[0]
}

Write-Host &quot;Preparing flash disks with files from&quot; $DirectoryToCopy
$drives = Get-WmiObject Win32_LogicalDisk -filter &quot;DriveType=2&quot;

Foreach($drive in $drives)
{
    [int] $driveSize = $drive.Size/1073741824 #convert to gigabytes

    If($driveSize -ge 1 -and $driveSize -le 64)
    {
        $driveLetter = $drive.DeviceID
        $volume = Get-WmiObject -Class Win32_Volume -Filter &quot;DriveLetter = '$driveLetter'&quot;
        $label = &quot;TKP&quot;+$(get-date -f ssfff)

        Write-Host Formatting drive $driveLetter [$label] [$driveSize GB]
        $volume.Format(&quot;FAT32&quot;, $true, 4096, $label, $false)
        Write-Host &quot;Copying $DirectoryToCopy to $driveLetter&quot;
        Copy-Item $DirectoryToCopy $driveLetter -recurse
        Write-Host Dismounting drive $driveLetter
        $volume.Dismount($true, $false)
    }
}
Write-Host &quot;Done.&quot;
</pre></p>
<p>Now you can put your time and mind to better use instead of preparing flash drives all day long.</p>
<p><strong>Note: </strong>The script must be run with Administrator privileges.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/639/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/639/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/639/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/639/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/639/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/639/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/639/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/639/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=639&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2011/06/26/massflash-v1-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>
	</item>
		<item>
		<title>Monitoring disk space with Powershell</title>
		<link>http://thirdshelf.com/2011/06/26/monitoring-disk-space-with-powershell/</link>
		<comments>http://thirdshelf.com/2011/06/26/monitoring-disk-space-with-powershell/#comments</comments>
		<pubDate>Sun, 26 Jun 2011 17:53:52 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[management]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Disk Management]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows PowerShell]]></category>

		<guid isPermaLink="false">http://thirdshelf.com/?p=629</guid>
		<description><![CDATA[Running out of disk space all of  a sudden is just not cool. It tends to wake up men in black suits, bring on the gnashing of teeth and frothing at the mouth. I don&#8217;t like that type of drama. So, I knocked up a little Powershell script that can be scheduled to email a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=629&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Running out of disk space all of  a sudden is just not cool. It tends to wake up men in black suits, bring on the gnashing of teeth and frothing at the mouth. I don&#8217;t like that type of drama.</p>
<p>So, I knocked up a little <a href="http://en.wikipedia.org/wiki/Powershell">Powershell </a>script that can be scheduled to email a disk space report everyday. Currently the script is written to send a report on a single drive only. There are many other variations of this type of script that reports on all the drives on a server.</p>
<p><pre class="brush: plain;">
$disk = Get-WmiObject -ComputerName $env:COMPUTERNAME Win32_LogicalDisk | Where-Object {$_.DriveType -eq 3} | Where-Object {$_.DeviceID -eq &quot;:&quot;}

[float]$totalSize = [Math]::Round($disk.Size / 1073740824, 2)
[float]$freeSpace = [Math]::Round($disk.FreeSpace / 1073740824, 2)
$deviceID = $disk.DeviceID
$percentFree = [Math]::Round(($freeSpace / $totalSize) * 100, 2);

$smtpServer = &quot;&quot;
$smtp = New-Object Net.Mail.SmtpClient($smtpServer)
$emailFrom = &quot;$env:COMPUTERNAME&quot;
$emailTo = &quot;&quot;
$subject = &quot;$env:COMPUTERNAME - Disk space report&quot;
$body = &quot;$deviceID | Total: $totalSize GB | Available: $freeSpace GB | $percentFree % disk space available&quot;
$smtp.Send($EmailFrom,$emailTo,$subject,$body)
</pre></p>
<p>When it comes to management, you might just as well only print the precentage of free disk space and perhaps add that to the subject of the email. That will give all the relevant information in one look. The script can be extended to report on multiple servers and multiple drives.</p>
<p>Have fun!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/629/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=629&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2011/06/26/monitoring-disk-space-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>
	</item>
		<item>
		<title>Unit testing with Jenkins</title>
		<link>http://thirdshelf.com/2011/03/21/unit-testing-with-jenkins/</link>
		<comments>http://thirdshelf.com/2011/03/21/unit-testing-with-jenkins/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 15:51:23 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[.net]]></category>
		<category><![CDATA[rants]]></category>
		<category><![CDATA[visual studio]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[.NET Framework]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Jenkins]]></category>
		<category><![CDATA[MbUnit]]></category>
		<category><![CDATA[Microsoft Visual Studio]]></category>
		<category><![CDATA[msbuild]]></category>
		<category><![CDATA[MsTest]]></category>
		<category><![CDATA[NUnit]]></category>
		<category><![CDATA[rant]]></category>
		<category><![CDATA[Unit testing]]></category>
		<category><![CDATA[XUnit]]></category>

		<guid isPermaLink="false">http://thirdshelf.com/?p=511</guid>
		<description><![CDATA[Continuing to setup a build for the first time with Jenkins there is, uh, another challenge. For some reason, I thought it clever to make use of MsTest. This works wonderfully on the development machine. But, of course, when it comes to the build server, you can expect all sorts of weirdness. For example, error CS0246: The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=511&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Continuing to setup a build for the first time with Jenkins there is, uh, another challenge. For some reason, I thought it clever to make use of MsTest. This works wonderfully on the development machine. But, of course, when it comes to the build server, you can <a href="http://thirdshelf.com/2011/03/19/building-a-net-application-with-jenkins/">expect all sorts of weirdness</a>. For example, error CS0246: The type or namespace name &#8216;TestMethodAttribute&#8217; could not be found&#8230;</p>
<p>We&#8217;re sorry, but our testing tools don&#8217;t come standard with the .NET Framework, or in any other way, except TFS and Visual Studio, unless you are willing to follow this <a href="http://www.shunra.com/shunrablog/index.php/2009/04/23/running-mstest-without-visual-studio/">brave soul</a>. I share <a href="http://devlicio.us/blogs/derik_whittaker/archive/2008/09/25/clean-build-server-with-mstest-fail.aspx">Derik Whittaker&#8217;s sentiment on the MsTest and build server</a> issue.</p>
<blockquote><p>This is another issue to me because MSTest is the ONLY test framework (for .Net) that I know of that does not run with a single DLL placed into the bin (or any other output directory).  I just have to ask the genius&#8217; over in Redmond what the hell were they smoking when they decided to build MSTest.  It is pretty clear they had no prior knowledge of how to use the other tools such as NUnit, MBUnit or xUnit (I know, xUnit was not out yet).  I know this because of all the various testing frameworks MSTest is the one that does everything different.  You could argue they were on the cutting edge and were innovating, but I call BS on that.</p></blockquote>
<p>This can be solved. <em>So long MsTest&#8230; Hello NUnit!</em></p>
<p><strong>Converting from MsTest to NUnit</strong></p>
<p>Converting from MsTest is a simple case of find and replace of <a href="http://nunit.org/index.php?p=attributes&amp;r=2.5.9">attributes</a>. NUnit  has the nifty Assert.Catch&lt;T&gt; which beats <a href="http://www.mbunit.com/">MbUnit</a>, MsTest and <a href="http://xunit.codeplex.com">xUnit</a>. xUnit comes with Assert.Throws&lt;T&gt; but cannot assert the exception message whereas NUnit can. No more [ExpectedException] attributes.</p>
<p>Integrating NUnit with the build file (which is MsBuild) is pretty easy:</p>
<p>&lt;Exec Command=&#8221;$(NUnitFolder)\nunit-console-x86.exe [TestAssembly] /framework=net-4.0 /xml=$(TestResultsFolder)\TestResults.xml&#8221; /&gt;</p>
<p>A single Exec statement and out comes an Xml file. To keep the build server clean, I decided to add all the necessary files for unit testing into source control along with the project. The bare minimum files for running NUnit from the command line comes down to the following files:</p>
<ul>
<li>nunit.core.dll</li>
<li>nunit.core.interfaces.dll</li>
<li>nunit.framework.dll</li>
<li>nunit.util.dll</li>
<li>nunit.console-runner.dll</li>
<li>nunit-console-x86.exe</li>
<li>nunit-agent-x86.exe</li>
<li>nunit-agent-x86.exe.config</li>
</ul>
<p>To make it work on .Net Framework 4.0, you have to include the <em>/framework=net-4.0</em> switch on the command line.</p>
<p><strong>Setting up Jenkins with NUnit</strong></p>
<p>Install the NUnit plugin for Jenkins, point it to your test results file and after a build you&#8217;ll get the summarised test results.  It&#8217;s a neat table with all the classes and their respective timings and so on.</p>
<p><a href="http://thirdshelf.files.wordpress.com/2011/03/jenkins-test-results.png"><img class="alignnone size-full wp-image-541" title="Jenkins-Test-Results" src="http://thirdshelf.files.wordpress.com/2011/03/jenkins-test-results.png?w=720" alt=""   /></a></p>
<p>Finally, I have a working build with unit testing. If only it had an installer&#8230;</p>
<p><strong><br />
</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/511/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/511/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/511/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=511&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2011/03/21/unit-testing-with-jenkins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>

		<media:content url="http://thirdshelf.files.wordpress.com/2011/03/jenkins-test-results.png" medium="image">
			<media:title type="html">Jenkins-Test-Results</media:title>
		</media:content>
	</item>
		<item>
		<title>Jenkins and Git</title>
		<link>http://thirdshelf.com/2011/03/16/jenkins-and-git/</link>
		<comments>http://thirdshelf.com/2011/03/16/jenkins-and-git/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 18:09:22 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[reviews]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Git]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[Revision control]]></category>
		<category><![CDATA[Source code]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://thirdshelf.com/?p=477</guid>
		<description><![CDATA[The road split for&#160;Hudson and Jenkins. It happens. Getting the source code&#8230; I don&#8217;t have&#160;Cygwin or&#160;MSysGit installed on the server for&#160;my own perverse reasons.&#160;In order for Jenkins to get hold of the source code from a git repository is usually straight forward. &#160;Well, now comes the time to get the source code from git. I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=477&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://stackoverflow.com/questions/4973981/how-to-choose-between-hudson-and-jenkins/4974032#4974032" target="_blank">road split</a> for&nbsp;<a href="http://www.infoq.com/news/2011/01/hudson-jenkins" target="_blank">Hudson and Jenkins</a>. It happens.</p>
<p><strong>Getting the source code&#8230;</strong></p>
<p>I don&#8217;t have&nbsp;<a href="http://www.cygwin.com" target="_blank">Cygwin </a>or&nbsp;<a href="http://code.google.com/p/msysgit/" target="_blank">MSysGit</a> installed on the server for&nbsp;<a href="http://thirdshelf.com/2011/03/10/git-and-hudson-brothers/" target="_blank">my own perverse reasons</a>.&nbsp;In order for Jenkins to get hold of the source code from a git repository is usually straight forward. &nbsp;Well, now comes the time to get the source code from git. I can clone repository into a local directory using &nbsp;<a href="http://www.eqqon.com/index.php/GitSharp" target="_blank">GitSharp</a>. GitSharp is the .net version of git and very cool, but not quite finished yet. &nbsp;The alternative is a Java application called&nbsp;<a href="http://eclipse.org/jgit/" target="_blank">JGit</a>. GitSharp, by the way, is a derived work of JGit.</p>
<p><strong>Setting up Jenkins&#8230;</strong></p>
<p><a href="http://eclipse.org/jgit/download/" target="_blank">Download the shell script</a> of JGit which, by the way, &nbsp;is a self-contained command line executable.&nbsp;With that, I am able to test the cloning of a repository into a new folder with the following <a href="http://sandeep.wordpress.com/2010/09/13/using-git-on-windows-without-any-of-the-cygwinmsysgit-nonsense/" target="_blank">command line</a>:</p>
<pre>C:\JGit&gt;java -cp org.eclipse.jgit.pgm-0.10.1.sh org.eclipse.jgit.pgm.Main clone&nbsp;
http://dev/git/myproject.git c:\projects\myproject

<span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;line-height:19px;white-space:normal;font-size:13px;">After executing the above command line, &nbsp;I have the source files in the c:\projects\myproject directory. To use this in Jenkins, I need to make use of the batch command execution since the <a href="http://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin">git plugin</a> makes use of git.exe and all the other things I didn't setup.</span></pre>
<p><a href="http://thirdshelf.files.wordpress.com/2011/03/jenkins-git-batch-command.png"><img class="size-full wp-image-482 alignnone" title="Jenkins-Git-Batch-Command" src="http://thirdshelf.files.wordpress.com/2011/03/jenkins-git-batch-command.png?w=720" alt=""   /></a></p>
<pre><span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:small;"><span style="font-size:13px;line-height:19px;white-space:normal;">
After running a build, I have the following console output in Jenkins and the source code in the build factory directory:</span></span>
<span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:small;"><span style="font-size:13px;line-height:19px;white-space:normal;">&nbsp;</span></span>
<span style="font-family:Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;font-size:small;"><span style="font-size:13px;line-height:19px;white-space:normal;">
<pre>Started by user anonymous
[MyProject] $ cmd /c call C:\Windows\TEMP\hudson12048252217381411.bat

d:\builds\factory\MyProject&gt;"C:\Program Files\Java\jre6\bin\java.exe" -cp&nbsp;
c:\jgit\org.eclipse.jgit.pgm-0.10.1.sh&nbsp;org.eclipse.jgit.pgm.Main clone&nbsp;
  http://dev/git/myproject.git d:\Builds\Factory\MyProject

Initialized empty Git repository in d:\Builds\Factory\MyProject\.git
remote: Counting objects: 342, done
From {0}&nbsp;
* [new branch] &nbsp; &nbsp; &nbsp;master &nbsp; &nbsp; -&gt; origin/master

d:\builds\factory\MyProject&gt;exit 0&nbsp;Finished: SUCCESS</pre>
<p>&nbsp;</p>
<p></span></span><br />
by <a title="Sydney" rel="author" href="http://thirdshelf.com/about/">Sydney du Plooy</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/477/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/477/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=477&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2011/03/16/jenkins-and-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>

		<media:content url="http://thirdshelf.files.wordpress.com/2011/03/jenkins-git-batch-command.png" medium="image">
			<media:title type="html">Jenkins-Git-Batch-Command</media:title>
		</media:content>
	</item>
		<item>
		<title>Resizing a virtual hard disk</title>
		<link>http://thirdshelf.com/2010/06/29/resizing-a-vhd/</link>
		<comments>http://thirdshelf.com/2010/06/29/resizing-a-vhd/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 16:00:07 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://thirdshelf.com/?p=420</guid>
		<description><![CDATA[Recently, I had to resize a VHD (virtual hard disk) that I installed Windows Server 2008 on. I soon found out that the size of 10GB is not such a hot idea when installing Team Foundation Server 2010 and SQL Server 2008 on the same instance. Hence, I decided to resize the disk instead of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=420&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently, I had to resize a <a href="http://en.wikipedia.org/wiki/VHD_%28file_format%29">VHD (virtual hard disk)</a> that I installed Windows Server 2008 on. I soon found out that the size of 10GB is not such a hot idea when installing Team Foundation Server 2010 and SQL Server 2008 on the same instance. Hence, I decided to resize the disk instead of re-installing all of the software.</p>
<p>Below is the recipe to resize the virtual hard disk:</p>
<p><strong>Part 1:</strong></p>
<p>The first part is to resize the container of the partition, which is done by means of a sector copy. After the resize completed,  the container will have increased but the partition will not be fully extended yet.<a href="http://thirdshelf.files.wordpress.com/2010/06/vhdresizer.png"><img class="size-medium wp-image-440  alignright" title="VhdResizer" src="http://thirdshelf.files.wordpress.com/2010/06/vhdresizer.png?w=300&h=276" alt="" width="300" height="276" /></a></p>
<ol>
<li>Download <a href="http://vmtoolkit.com/files/folders/converters/entry87.aspx">VHD Resizer</a> from <a href="http://vmtoolkit.com">VMToolkit</a>.</li>
<li>Install and run VHD Resizer.</li>
<li>In the <strong>file open dialog</strong> select the VHD that you want to resize.</li>
<li>Type in the new filename to use for the extended VHD.</li>
<li>Type in the size of the new container to create.</li>
<li>Click on <strong>Resize</strong>. The process takes a few minutes&#8230;</li>
</ol>
<p><strong>Part 2:</strong></p>
<p style="text-align:left;">Now that the container is resized, we must now extend the partition to make use of the full container size.</p>
<ol>
<li><strong>Attach</strong> the new extended VHD as a <strong>non-primary drive</strong> to <em>another<strong> </strong></em>virtual machine. <em>Do not extend the partition using the virtual machine that will make use of it.</em></li>
<li>Start the virtual machine to which the extended VHD was attached as the non-primary drive and <strong>open</strong> a <strong>command prompt</strong>.</li>
<li>Type in <strong>diskpart</strong> and press <strong>Enter</strong>.</li>
<li>Type in <strong>list disk.</strong></li>
<li>Ensure that disk 1 or greater is the extended disk.</li>
<li>Type in <strong>select disk 1</strong>.</li>
<li>Type in <strong>list partition</strong>.<a href="http://thirdshelf.files.wordpress.com/2010/06/diskpart.png"><img class="size-medium wp-image-439  alignright" title="diskpart" src="http://thirdshelf.files.wordpress.com/2010/06/diskpart.png?w=300&h=162" alt="" width="300" height="162" /></a></li>
<li>Ensure that the partition sizes matches the old size.</li>
<li>Type in <strong>extend</strong>.</li>
<li>Wait for the process to complete and type <strong>exit</strong>.</li>
</ol>
<p><em>Remember to change the disk on the original virtual machine to now use the extended disk.</em> The disk is now resized and ready to be used from the original virtual machine.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/420/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/420/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/420/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=420&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2010/06/29/resizing-a-vhd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>

		<media:content url="http://thirdshelf.files.wordpress.com/2010/06/vhdresizer.png?w=300" medium="image">
			<media:title type="html">VhdResizer</media:title>
		</media:content>

		<media:content url="http://thirdshelf.files.wordpress.com/2010/06/diskpart.png?w=300" medium="image">
			<media:title type="html">diskpart</media:title>
		</media:content>
	</item>
		<item>
		<title>AWOL CD-ROM</title>
		<link>http://thirdshelf.com/2009/02/22/awol-cd-rom/</link>
		<comments>http://thirdshelf.com/2009/02/22/awol-cd-rom/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 12:15:39 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://thirdshelf.com/?p=193</guid>
		<description><![CDATA[For the second time now I have had the CD-ROM drive on my HP nw8440 disappear from Windows. The Device Manager reports the following for the CD-ROM drive: &#8220;Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)&#8221;. Why? It was perfect yesterday and today it is [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=193&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For the second time now I have had the CD-ROM drive on my HP nw8440 disappear from Windows. The Device Manager reports the following for the CD-ROM drive: &#8220;Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)&#8221;. Why? It was perfect yesterday and today it is missing or corrupted? Weird. According to the Microsoft Knowledge Base <a href="http://support.microsoft.com/kb/314060">article</a> it can happen after removing a CD or DVD burning program.</p>
<p>Although the error is rather annoying, there is a simple fix for it. I have replicated the steps here for your convenience:</p>
<p><strong>Step 1: Start Registry Editor</strong></p>
<p>Start Registry Editor.</p>
<p><strong>Step 2: Delete the UpperFilters registry entry</strong></p>
<ol>
<li>In Registry Editor, expand <strong class="uiterm">My Computer</strong>, and then expand <strong class="uiterm">HKEY_LOCAL_MACHINE</strong>.</li>
<li>Expand <strong class="uiterm">SYSTEM</strong>, and then expand <strong class="uiterm">CurrentControlSet</strong>.</li>
<li>Expand <strong class="uiterm">Control</strong>, and then expand <strong class="uiterm">Class</strong>.</li>
<li>Under <strong class="uiterm">Class</strong>, click <strong class="uiterm">{4D36E965-E325-11CE-BFC1-08002BE10318}</strong>.</li>
<li>In the details pane of Registry Editor, on the right side, click <strong class="uiterm">UpperFilters</strong>.<strong>Note</strong> You may also see an <strong class="uiterm">UpperFilters.bak</strong> registry entry. You do not have to remove that entry. Click <strong class="uiterm">UpperFilters</strong> only.
<ul>
<li>If you see the UpperFilters registry entry in the details pane of Registry Editor, go to step 6.</li>
<li>If you do not see the UpperFilters registry entry, you still might have to remove the LowerFilters registry entry. To do this, go to &#8220;Step 3: Delete the LowerFilters registry entry.&#8221;</li>
</ul>
</li>
<li>On the <strong class="uiterm">Edit</strong> menu, click <strong class="uiterm">Delete</strong>.</li>
<li>Click <strong class="uiterm">Yes</strong> when you receive the following message:
<div class="message">
<p>Are you sure you want to delete this value?</p></div>
</li>
</ol>
<p>The UpperFilters registry entry is removed.</p>
<p><strong>Step 3: Delete the LowerFilters registry entry</strong></p>
<ol>
<li>In the details pane of Registry Editor, on the right side, click <strong class="uiterm">LowerFilters</strong>.<strong>Note</strong> You might see a <strong class="uiterm">LowerFilters.bak</strong> registry entry. You do not have to remove that entry. Click <strong class="uiterm">LowerFilters</strong> only.
<p>If you do not see the LowerFilters registry entry, unfortunately this content is unable to help you any more. Go to the &#8220;Next Steps&#8221; section for information about how you can find more solutions or more help on the Microsoft Web site.</li>
<li>On the <strong class="uiterm">Edit</strong> menu, click <strong class="uiterm">Delete</strong>.</li>
<li>Click <strong class="uiterm">Yes</strong> when you receive the following message:
<div class="message">
<p>Are you sure you want to delete this value?</p></div>
<p>The LowerFilters registry entry is removed.</li>
<li>Exit Registry Editor.</li>
</ol>
<p>The article recomends restarting the computer after deleting the two registry entries, but I have found that it works fine without restarting.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/193/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/193/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/193/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=193&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2009/02/22/awol-cd-rom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>
	</item>
		<item>
		<title>Rebuilding the COM+ Catalog</title>
		<link>http://thirdshelf.com/2008/08/19/rebuilding-the-com-catalog/</link>
		<comments>http://thirdshelf.com/2008/08/19/rebuilding-the-com-catalog/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 17:41:46 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[windows]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://thirdshelf.wordpress.com/?p=103</guid>
		<description><![CDATA[After my post on rebuilding the WMI Repository, I thought it might be a good thing to write a post on rebuilding the COM+ Catalog. It is unlikely that you&#8217;ll ever have to rebuild a corrupt COM+ Catalog, but it certainly is possible, for example when you get errors such as &#8220;Catalog Error 8008005 &#8211; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=103&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After my <a href="http://thirdshelf.com/2008/08/13/rebuilding-wmi-repository/">post</a> on rebuilding the WMI Repository, I thought it might be a good thing to write a post on rebuilding the COM+ Catalog. It is unlikely that you&#8217;ll ever have to rebuild a corrupt COM+ Catalog, but it certainly is possible, for example when you get errors such as &#8220;Catalog Error 8008005 &#8211; Server Execution failed&#8221;.</p>
<p>This <a href="http://support.microsoft.com/kb/315296">article</a> by Microsoft describes the process to follow when rebuilding the COM+ Catalog. I&#8217;ve duplicated the steps here for ease of reference:</p>
<ol>
<li>Rename the %WinDir%\System32\Clbcatq.dll file to %WinDir%\System32\~Clbcatq.dll. Make sure that you include the tilde (~) at the start of the file name.</li>
<li>Restart the computer.</li>
<li>Start Registry Editor (Regedt32.exe).</li>
<li>Locate and delete the following key in the registry: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3</li>
<li>At a command prompt, type <span class="userInput">cd %windir%</span>, and then press ENTER.</li>
<li>At a command prompt, type <span class="userInput">rmdir /s Registration</span>, and then press ENTER. This is the location folder of the registration database.<strong> </strong><strong>Note</strong>: If you have MS04-012 installed, you must now re-install MS04-012. For more information about security update MS04-012, click the following article number to view the article in the Microsoft Knowledge Base: <a class="KBlink" href="http://support.microsoft.com/kb/828741/">828741</a></li>
<li>Click the Start button, point to Settings, and then click Control Panel.</li>
<li>Double-click Add/Remove Programs, and then click Add/Remove Windows Components.</li>
<li>Click Next to go through the reinstallation process, to reinstall COM+.</li>
<li>If IIS is installed on the computer, IIS creates several COM+ applications. These applications will now be missing. To re-create these applications, run the following command at a command prompt: rundll32 %windir%\system32\inetsrv\wamreg.dll, CreateIISPackage</li>
</ol>
<p>by <a title="Sydney" rel="author" href="http://thirdshelf.com/about/">Sydney du Plooy</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thirdshelf.wordpress.com/103/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thirdshelf.wordpress.com/103/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=103&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2008/08/19/rebuilding-the-com-catalog/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>
	</item>
		<item>
		<title>Rebuilding WMI Repository</title>
		<link>http://thirdshelf.com/2008/08/13/rebuilding-wmi-repository/</link>
		<comments>http://thirdshelf.com/2008/08/13/rebuilding-wmi-repository/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 19:08:02 +0000</pubDate>
		<dc:creator>Sydney du Plooy</dc:creator>
				<category><![CDATA[team foundation server]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[TFS]]></category>

		<guid isPermaLink="false">http://thirdshelf.wordpress.com/?p=85</guid>
		<description><![CDATA[After having a bit of a struggle with Service Pack 1 for Team Foundation Server 2008, I had to restore a previous installation of Team Foundation Server 2005. After restoring the server, which runs on Virtual Server 2005 R2 everything seemed fine. It was only when trying to upgrade Team Foundation Server 2005 to 2008 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=85&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After having a bit of a struggle with <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9e40a5b6-da41-43a2-a06d-3cee196bfe3d&amp;DisplayLang=en">Service Pack 1</a> for Team Foundation Server 2008, I had to restore a previous installation of Team Foundation Server 2005. After restoring the server, which runs on <a href="http://www.microsoft.com/windowsserversystem/virtualserver/">Virtual Server 2005 R2</a> everything seemed fine. It was only when trying to upgrade Team Foundation Server 2005 to 2008 that I received an error complaining about the WMI provider for SQL Server 2005.</p>
<p>Trying to look into this issue, I opened the SQL Server Configuration Manager and then received the following error:</p>
<p>&#8220;Cannot connect to WMI provider. You do not have permission or the server is unreachable. Note that you can only manage SQL Server 2005 servers with SQL Server Configuration Manager.<br />
Initialization failure [0x80041014]&#8220;</p>
<p>This is not pretty. I went to Google the issue and discovered this <a href="http://blogs.msdn.com/echarran/archive/2006/01/03/509061.aspx">post</a>. It seems like the WMI repository corrupted when I did the restore. Nice. So, I followed the instructions detailed in the post, but no luck. It still returned with the same error that I received in the beginning.</p>
<p>The WMI Repository was corrupt in its entirety. How do you rebuild the WMI Repository? Not so easy it seems. Lukcily there is <a href="http://msmvps.com/blogs/lduncan/articles/20217.aspx">post</a> describing the whole process with a neat little batch file that will rebuild the WMI Repository for you, came in very handy.</p>
<p><em><strong>Note:</strong> </em><em>Execute the following commands from this directory: C:\Program Files\Microsoft SQL Server\90\Shared</em></p>
<p>Here is the batch file duplicated for convenience:</p>
<p><span style="font-size:x-small;font-family:Arial;"> </span></p>
<div dir="ltr">
<pre>net stop winmgmt
c:
cd %systemroot%\system32\wbem
rd /S /Q repository</pre>
</div>
<div dir="ltr">
<pre>regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll</pre>
</div>
<div dir="ltr">
<pre>mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl</pre>
</div>
<div dir="ltr">
<pre>for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s</pre>
</div>
<div dir="ltr">
<pre>echo DONE
pause</pre>
</div>
<div dir="ltr">After executing the above batch file, I then proceeded to execute the following statement:</div>
<pre>mofcomp sqlmgmproviderxpsp2up.mof</pre>
<p>After performing the above steps, I rebooted the server and Team Foundation Server upgraded successfully.<br />
by <a title="Sydney" rel="author" href="http://thirdshelf.com/about/">Sydney du Plooy</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thirdshelf.wordpress.com/85/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thirdshelf.wordpress.com/85/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thirdshelf.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thirdshelf.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thirdshelf.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thirdshelf.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thirdshelf.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thirdshelf.wordpress.com/85/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thirdshelf.wordpress.com/85/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thirdshelf.wordpress.com/85/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thirdshelf.com&#038;blog=3179385&#038;post=85&#038;subd=thirdshelf&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thirdshelf.com/2008/08/13/rebuilding-wmi-repository/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Sydney</media:title>
		</media:content>
	</item>
	</channel>
</rss>
