<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Gravo.co.uk &#187; Work</title>
	<atom:link href="http://gravo.co.uk/wordpress/category/work/feed/" rel="self" type="application/rss+xml" />
	<link>http://gravo.co.uk/wordpress</link>
	<description>gravo: to oppress, burden, make suffer.</description>
	<lastBuildDate>Tue, 30 Mar 2010 15:25:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clone a Hyper-V VM</title>
		<link>http://gravo.co.uk/wordpress/2010/03/30/clone-a-hyper-v-vm/</link>
		<comments>http://gravo.co.uk/wordpress/2010/03/30/clone-a-hyper-v-vm/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 14:55:20 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Hyper-v]]></category>

		<guid isPermaLink="false">http://gravo.co.uk/wordpress/?p=190</guid>
		<description><![CDATA[First step build the VM to your liking
Make a cup of tea
Run sysprep i.e. c:\windows\system32\sysprep\sysprep /generalize /oobe /shutdown
Rename the VM in Hyper-V Manager i.e baseline
Export the VM from Hyper-V Manager
Don&#8217;t forget to drink the cup of tea
Rename the VM back to it&#8217;s original name
Copy the exported directory. I&#8217;m using Hyper-V Server R2 so Robocopy is ]]></description>
			<content:encoded><![CDATA[<ul>
<li>First step build the VM to your liking</li>
<li>Make a cup of tea</li>
<li>Run sysprep i.e. c:\windows\system32\sysprep\sysprep /generalize /oobe /shutdown</li>
<li>Rename the VM in Hyper-V Manager i.e baseline</li>
<li>Export the VM from Hyper-V Manager</li>
<li>Don&#8217;t forget to drink the cup of tea</li>
<li>Rename the VM back to it&#8217;s original name</li>
<li>Copy the exported directory. I&#8217;m using Hyper-V Server R2 so Robocopy is easiest i.e. &#8220;robocopy /E d:\Baseline d:\VM\NewVM&#8221;</li>
<li>Rename the VHD file and update the name in config.xml and in the EXP file</li>
<li>Import the Cloned VM in Hyper-V Manager</li>
<li>Rename the Cloned VM and run through the mini-setup</li>
<li>Your Done!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://gravo.co.uk/wordpress/2010/03/30/clone-a-hyper-v-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup Hyper-V</title>
		<link>http://gravo.co.uk/wordpress/2010/02/08/backup-hyper-v/</link>
		<comments>http://gravo.co.uk/wordpress/2010/02/08/backup-hyper-v/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 13:59:00 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[Hyper-v]]></category>

		<guid isPermaLink="false">http://gravo.co.uk/wordpress/?p=163</guid>
		<description><![CDATA[It is possible to backup a Hyper-V server without taking it down using the Hyper-V VSS writer.
The way I do it is with a small batch file that is run as a scheduled task. The command is quite simple.
WBADMIN START BACKUP -backupTarget:&#8221;\\SERVER\BACKUP_SHARE&#8221; -user:DOMAIN\USERNAME -password:PASSWORD -include:C:,D: -vssFull -quiet &#62; c:\Backup\hyperbackup.log
As you can see the command is ]]></description>
			<content:encoded><![CDATA[<p>It is possible to backup a Hyper-V server without taking it down using the Hyper-V VSS writer.</p>
<p>The way I do it is with a small batch file that is run as a scheduled task. The command is quite simple.</p>
<blockquote><p>WBADMIN START BACKUP -backupTarget:&#8221;\\<span style="color: #ff0000;">SERVER\BACKUP_SHARE</span>&#8221; -user:<span style="color: #ff0000;">DOMAIN\USERNAME</span> -password:<span style="color: #ff0000;">PASSWORD</span> -include:C:,D: -vssFull -quiet &gt; c:\Backup\hyperbackup.log</p></blockquote>
<p>As you can see the command is output to a text file located at c:\Backup\hyperbackup.log so that you can check the progress.</p>
<p>As I will always forget to check on it I set another scheduled task to run a VBS file to e-mail the log to me.</p>
<p>This is the vbscript I use.</p>
<blockquote><p>Const cdoSendUsingPickup = 1 &#8216;Send message using the local SMTP service pickup directory.<br />
Const cdoSendUsingPort = 2 &#8216;Send the message using the network (SMTP over the network).</p>
<p>Const cdoAnonymous = 0 &#8216;Do not authenticate<br />
Const cdoBasic = 1 &#8216;basic (clear-text) authentication<br />
Const cdoNTLM = 2 &#8216;NTLM</p>
<p>Dim arrFileLines()<br />
i = 0<br />
Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br />
Set objFile = objFSO.OpenTextFile(&#8220;<span style="color: #ff0000;">LOCATIONOFFILETOEMAIL</span>&#8220;, 1)</p>
<p>Do Until objFile.AtEndOfStream<br />
Redim Preserve arrFileLines(i)<br />
arrFileLines(i) = objFile.ReadLine<br />
i = i + 1<br />
Loop<br />
objFile.Close</p>
<p>Set objMessage = CreateObject(&#8220;CDO.Message&#8221;)<br />
objMessage.Subject = &#8220;<span style="color: #ff0000;">SUBJECT</span>&#8221;<br />
objMessage.From = &#8220;&#8221;"<span style="color: #ff0000;">FROM</span>&#8220;&#8221; &lt;<span style="color: #ff0000;">FROM@DOMAIN.co.uk</span>&gt;&#8221;<br />
objMessage.To = &#8220;<span style="color: #ff0000;">TO@DOMAIN.co.uk</span>&#8221;</p>
<p>For l = Ubound(arrFileLines)-10 to Ubound(arrFileLines)</p>
<p>&#8216; write the output to the file<br />
objMessage.TextBody = objMessage.TextBody + arrFileLines(l) + VbCrLF<br />
Next</p>
<p>&#8216;objMessage.TextBody = &#8220;This is some sample message text..&#8221; &amp; vbCRLF &amp; &#8220;It was sent using SMTP authentication.&#8221;<br />
objMessage.AddAttachment &#8220;<span style="color: #ff0000;">LOCATIONOFFILETOEMAIL</span>&#8221;</p>
<p>&#8216;==This section provides the configuration information for the remote SMTP server.</p>
<p>objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/sendusing&#8221;) = 2</p>
<p>&#8216;Name or IP of Remote SMTP Server<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpserver&#8221;) = &#8220;<span style="color: #ff0000;">SMTPSERVER</span>&#8221;</p>
<p>&#8216;Type of authentication, NONE, Basic (Base64 encoded), NTLM<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&#8221;) = cdoBasic</p>
<p>&#8216;Your UserID on the SMTP server<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/sendusername&#8221;) = &#8220;<span style="color: #ff0000;">U</span><span style="color: #ff0000;">SERNAME</span>&#8221;</p>
<p>&#8216;Your password on the SMTP server<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/sendpassword&#8221;) = &#8220;<span style="color: #ff0000;">PASSWORD</span>&#8221;</p>
<p>&#8216;Server port (typically 25)<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpserverport&#8221;) = 25</p>
<p>&#8216;Use SSL for the connection (False or True)<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpusessl&#8221;) = False</p>
<p>&#8216;Connection Timeout in seconds (the maximum time CDO will try to establish a connection to the SMTP server)<br />
objMessage.Configuration.Fields.Item _<br />
(&#8220;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&#8221;) = 60</p>
<p>objMessage.Configuration.Fields.Update</p>
<p>&#8216;==End remote SMTP server configuration section==</p>
<p>objMessage.Send</p></blockquote>
<p>To save having to open the attachment the last ten lines (or so!) are in the body of the e-mail. This allows you to see if the backup has been successful or failed at a glance.</p>
]]></content:encoded>
			<wfw:commentRss>http://gravo.co.uk/wordpress/2010/02/08/backup-hyper-v/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft Windows Vista SP1</title>
		<link>http://gravo.co.uk/wordpress/2008/09/23/microsoft-windows-vista-sp1/</link>
		<comments>http://gravo.co.uk/wordpress/2008/09/23/microsoft-windows-vista-sp1/#comments</comments>
		<pubDate>Tue, 23 Sep 2008 12:54:55 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://gravo.co.uk/wordpress/?p=44</guid>
		<description><![CDATA[Now that SP1 for Vista has been released  and given some time to settle in, I felt it was time to take the plunge.  I&#8217;d heard good things about how it was now the OS it always should have  been and that manufacturers had actually started releasing drivers for  it.
So with ]]></description>
			<content:encoded><![CDATA[<p>Now that SP1 for Vista has been released  and given some time to settle in, I felt it was time to take the plunge.  I&#8217;d heard good things about how it was now the OS it always should have  been and that manufacturers had actually started releasing drivers for  it.</p>
<p>So with that in mind I jumped in with open arms ready to embrace and  worship it as the next OS overlord and do you know what? I haven’t been  disappointed once.</p>
<p>The problems first started when it wouldn&#8217;t let me run the Aero  theme, one of the key selling points of vista. This wasn&#8217;t down to a  lack of memory (2.5GB) or processing power (P4 3Ghz) but my graphics  card, fair enough its probably pushing 4 years old but there is a proper  vista driver for it at least. The trouble is that Ubuntu had absolutely  no problem giving me visual effects that put Vista to shame.</p>
<p>Next there was User Access Control or UAC for short. The idea is that  most of the time you just run with normal account privileges and get  true admin rights when you really need it. Well done MS you&#8217;ve finally  done what your competitors have been doing for so many years that even  Noah was using the sudo command when he was designing his Ark. While  we’re on the subject of sudo I&#8217;d like to ask MS a question. &#8216;Microsoft,  where the fuck is the sudo equivalent on Vista, because no one can  sodding find it?&#8217; I&#8217;ll answer this one on behalf of MS because I don&#8217;t  think they&#8217;ll get back to me &#8216;There is no sudo command. the work around  is to run the cmd prompt as an administrator&#8217;. So I&#8217;ve either got to  start a new cmd process as an admin when I want &#8216;root&#8217; access or always  run it as an administrator and risk accidently stuffing up my system.</p>
<p>(on a side note wordress has just lost the rest of the post from here  on so you&#8217;ll excuse me if the tone is a bit more pissed off from here)</p>
<p>Now I&#8217;d like to say that I&#8217;m finished with UAC but unfortunately I&#8217;m  not. I can live with it always prompting me to say that what I&#8217;m doing  needs admin rights and do I want to continue, even when I&#8217;ve told it to  run as an administrator and I can just about overlook it taking over  half an hour to install a 5mb program all because it was hiding a &#8216;You  must run this as an admin&#8217; window and I do mean hiding it, so much so  that a new error screen came up telling me that there was a hidden  window that required action and did I want to view it. But the final  straw for UAC was when it wouldn&#8217;t let me rename an empty folder on the  desktop telling me in an endless loop that I needed to be admin to do it  and then telling me I couldn&#8217;t rename it because I needed to be a  member of the administrator group, even though I was. It did however let  me delete it.</p>
<p>So that&#8217;s two of Vista&#8217;s key selling points that don&#8217;t work properly  (UAC and Aero)</p>
<p>Next on the list is Media player 11. This one is quite simple it  doesn&#8217;t work. Yes it will run and play videos but they are jerky and the  audio sync is always out. I initially thought that this was down to  Vista over stretching my machine but Media Player Classic has no such  problem and runs beautifully. Also whenever I go into a folder with  video&#8217;s in I get a big error message popup essentially saying that it&#8217;s  crashed trying to create a preview of the video. Oh and embedded videos  don&#8217;t always display video as well as audio so there goes all of my CBT  nuggets training videos that cost me a fortune.</p>
<p>That&#8217;s three of the main features down now (UAC, Aero and Media  Player 11)</p>
<p>Now I come on to the sidebar which HAS worked flawlessly. You do  however need a lot of screen real estate for it. It&#8217;s OK&#8217;ish on my 17&#8243;  widescreen laptop and as I have three monitors on my work PC (which is  the machine I&#8217;m basing this post on) there&#8217;s loads of room for it. The  problem is hardly anyone has done anything with it, even Microsoft. It  would be amazing if there was a &#8216;gadget&#8217; to monitor the servers from the  side panel or at least some useful status information.</p>
<p>That&#8217;s now 4 fails (UAC, Aero, Media player 11 and the Sidebar)</p>
<p>I&#8217;m going to ignore Vista&#8217;s inability to play any of the games I&#8217;ve  tried to play on it as this is a work machine and I&#8217;d obviously never  play games at work <em><span style="text-decoration: line-through;">cough yeah right cough.</span></em></p>
<p>I shall also pass over the sometimes incredibly slow file copies  simply because I&#8217;m starting to get depressed with all of this  negativity.</p>
<p>I will give you a very good reason why Vista hasn&#8217;t had a good take  up by businesses and it&#8217; not because of the hardware requirements or the  price or because it doesn&#8217;t really offer any thing new. It&#8217;s because  the first people to use a new OS in a business are the IT guys and if  their day to day tools don&#8217;t work properly on it they aren’t going to  use it. The adminpak tools suite for managing Active directory and other  server services doesn&#8217;t work out of the box (TechNet does tell you how  to make it work and even provides a batch file to do all of the work for  you, but good luck on trying to find that article especially if you  didn&#8217;t now to look for it in the first place) The SMS console does  install as long as you do it from the SP3 CD not that they tell you that  either. To get the exchange tabs in active directory users and  computers you have to copy several files from the exchange server and  register dll&#8217;s, this as far as I&#8217;m aware is not documented by Microsoft.  Exchange System manager won&#8217;t work if you have Outlook installed as  well, as they use conflicting protocols.</p>
<p>Best of all do you know what Microsoft’s work around for all of those  problems is? Remote desktop on to the server and do all of the work  from there. That&#8217;s like buying a new car and on discovering that there&#8217;s  no steering wheel the manufacturer telling you to just use the bus.</p>
<p>You&#8217;ll remember that in the second paragraph I said I wasn&#8217;t  disappointed by Vista on a single occasion. This is because I expected  to have all of these problems from the outset. I haven’t even touched on  the normal problems of trying to find drivers (it was actually quicker  to get Mac OS X working than it was to get Vista working on this  machine)</p>
<p>There is an upside to all of this though. There now isn&#8217;t a single  reason that I should carry on using any Microsoft desktop OS. The admin  tools that I mentioned earlier were the thing that kept me a faithful  slave to windows and if the official answer is to remote desktop on to  the server  to use the tools then I&#8217;m free. Free to use almost any OS I  choose. Linux has an RDP client so does OS X, my iPAQ, my XDA and even  my iPhone.</p>
<p>In conclusion I must thank and congratulate Microsoft for creating  such an epically pointless <span style="text-decoration: line-through;">and shite</span> operating system. I could go  on and talk about some of the other problems of vista or that the RDP  solution doesn&#8217;t scale, not without spending more money anyway. I could  also step in front of a moving bus but I won&#8217;t be doing that either.</p>
]]></content:encoded>
			<wfw:commentRss>http://gravo.co.uk/wordpress/2008/09/23/microsoft-windows-vista-sp1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Work</title>
		<link>http://gravo.co.uk/wordpress/2008/02/06/work/</link>
		<comments>http://gravo.co.uk/wordpress/2008/02/06/work/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 08:51:16 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://gravo.co.uk/wordpress/?p=13</guid>
		<description><![CDATA[Anyone else get this feeling?

]]></description>
			<content:encoded><![CDATA[<p>Anyone else get this feeling?</p>
<p><img src="/img/titanic.jpg" alt="rearanging the deck chairs" /></p>
]]></content:encoded>
			<wfw:commentRss>http://gravo.co.uk/wordpress/2008/02/06/work/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
