<?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>mike&#039;s place &#187; Tech</title>
	<atom:link href="http://www.michaelgcox.co.uk/category/tech/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelgcox.co.uk</link>
	<description>music, photos and tech</description>
	<lastBuildDate>Sat, 23 Jul 2011 11:58:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Enabling AHCI Mode After Windows 7 Install</title>
		<link>http://www.michaelgcox.co.uk/2010/11/28/enabling-ahci-mode-after-windows-7-install/</link>
		<comments>http://www.michaelgcox.co.uk/2010/11/28/enabling-ahci-mode-after-windows-7-install/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 20:06:35 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Windows7]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=152</guid>
		<description><![CDATA[I recently built a new PC for someone and installed Windows 7. Having got near to the end of the operating system and software install, I realised that I had...]]></description>
			<content:encoded><![CDATA[<p>I recently built a new PC for someone and installed Windows 7. Having got near to the end of the operating system and software install, I realised that I had left the SATA controller in plain old IDE mode. I wanted to use the Advanced Host Controller Interface (AHCI) specification but was wary in case Windows wouldn&#039;t boot after the change. Fortunately (after a quick Google), I discovered it is a trivial thing to modify in Windows 7. Just enable the driver in the registry <strong>before</strong> making the BIOS alteration. All I had to do was change the value of the Start DWORD in the subkey below to 0, reboot and change the controller mode in the BIOS.</p>
<p><code>HKEY_LOCAL_MACHINESystemCurrentControlSetServicesMsahci</code></p>
<p>For detailed instructions, see <a href="http://support.microsoft.com/kb/922976">Microsoft KB Article 922976</a>.</p>
<p>You can check the controller is in AHCI mode through Device Manager:</p>
<div id="attachment_153" class="wp-caption alignnone" style="width: 287px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/11/ahci.png" alt="AHCI Enabled" width="277" height="149" class="size-full wp-image-153" /><p class="wp-caption-text">AHCI Enabled</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/11/28/enabling-ahci-mode-after-windows-7-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search: It has to be like Google!</title>
		<link>http://www.michaelgcox.co.uk/2010/09/29/search-it-has-to-be-like-google/</link>
		<comments>http://www.michaelgcox.co.uk/2010/09/29/search-it-has-to-be-like-google/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 16:10:46 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SharePoint2007]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=143</guid>
		<description><![CDATA[As a SharePoint consultant, I dread hearing those words. I am sure many of you reading this will be sympathetic as you will have listened to countless clients say things...]]></description>
			<content:encoded><![CDATA[<p>As a SharePoint consultant, I dread hearing those words. I am sure many of you reading this will be sympathetic as you will have listened to countless clients say things like, &quot;Why can&#039;t it just work like Google?&quot; or &quot;It&#039;s not as good as Google, is it?&quot; Well, to answer some of these doubters I have decided to do a few posts on Office SharePoint Server Search. At the moment, they will be focused on the 2007 release, but in due course I hope to return and add extra ideas for 2010. Hopefully, these musings will get you thinking about how you can make Search work in your environment for your customers or clients. This is the core of my response to the Google-lovers out there, &quot;No, it isn&#039;t Google, but have you thought about what it could be?&quot;</p>
<p>First, let&#039;s begin with the basics. A lot of people are not aware of the simple syntax rules when performing a SharePoint search. For a full guide, refer to <a href="http://msdn.microsoft.com/en-us/library/ms561536%28office.12%29.aspx">Building Search Queries on TechNet</a>, but for the juicy bits only, read on!</p>
<ul>
<li><strong>Find one or more words:</strong> simply type in the words, separated by spaces. Search will look in content and metadata, giving you the most relevant results first (putting emphasis on closeness of the words and number of occurrences etc.).</li>
<li><strong>Search for a phrase:</strong> type in at least two words, separated with spaces and enclosed by quotation marks e.g. <em>&quot;sharepoint server&quot;</em></li>
<li><strong>Include or exclude terms:</strong> if you must have a word included in your results, prefix it with a plus symbol. Similarly, if it must be excluded, prefix with a minus sign. For example: <em>+sharepoint -exchange</em> would return results with sharepoint in the content but not exchange.</li>
<li><strong>Property filters:</strong> any crawled or managed properties can be used in queries with the syntax <em>property:value</em>. Many are available out of the box (OOTB), such as filetype or author. With property filters inclusion is implicit so <em>property:value</em> is the same as <em>+property:value</em>. Here is an example, the search <em>SharePoint backup filetype:doc author:&quot;Mike Cox&quot;</em> returns Word documents containing the words SharePoint and/or backup in the content or metadata, authored by Mike Cox. The screenshot below illustrates this. Since the include is explicit you only need to prefix a <em>property:value</em> search term with a sign if you want to exclude results.</li>
</ul>
<div id="attachment_145" class="wp-caption alignnone" style="width: 510px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/09/search_results.png" alt="Search Results" width="500" height="288" class="size-full wp-image-145" /><p class="wp-caption-text">Search Results</p></div>
<p>By simply knowing the above, users can search in a much more intelligent fashion. Exact phrases is the obvious one, but the include and exclude as well as the property filters are very powerful. There is also nothing wrong with searching again once your result set is displayed. I might search for a couple of words then realise I only want to see the newer Excel formats. No problem, just add <em>filetype:xlsx</em> to the terms into the search box and go again!</p>
<p>Now the basics are out of the way, here are a few ideas of what you can do to really make Search work in your environment. It also holds possible clues as to future posts!</p>
<ul>
<li>Create new Managed Properties for property:value searches or, better still, to use in custom Scopes and Advanced Search Box Web Parts.</li>
<li>Add Best Bets with synonyms so that users immediately see relevant internal and external links for queries they search often.</li>
<li>Create different search results pages for different scopes. Why not federate a Google Blog Search with a scope designed to include technical articles written in house?</li>
<li>Be inventive with Federated Search. How about creating a media search of your internal library and sending it to a results page that shows photos from Flickr in a Federated Search Results Web Part? Remember to take care over copyright, though!</li>
<li>Heavily customise Advanced Search to meet the needs of your business. If you align Advanced Search with your own taxonomy it will become much more powerful.</li>
</ul>
<p>I hope this post has got you thinking about Office SharePoint Server 2007 Search. As a final thought, monitor the keywords users are searching for. Search shouldn&#039;t be &lsquo;fire and forget&rsquo;, it has to be constantly monitored, nurtured and improved. Hey, maybe one day those same people will say, &#8220;I wish finding things on the Internet was as easy as our Intranet.&#8221; Ok, perhaps that is a bit ambitious <img src='http://www.michaelgcox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/09/29/search-it-has-to-be-like-google/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use PowerShell to Change SharePoint Logging Database</title>
		<link>http://www.michaelgcox.co.uk/2010/09/13/use-powershell-to-change-sharepoint-logging-database/</link>
		<comments>http://www.michaelgcox.co.uk/2010/09/13/use-powershell-to-change-sharepoint-logging-database/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 15:38:28 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Server2008]]></category>
		<category><![CDATA[SharePoint2010]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=135</guid>
		<description><![CDATA[I had a little head scratching today changing the database used by SharePoint Foundation for logging of usage data. This is because, at the time of writing, the Microsoft Article...]]></description>
			<content:encoded><![CDATA[<p>I had a little head scratching today changing the database used by SharePoint Foundation for logging of usage data. This is because, at the time of writing, the <a href="http://technet.microsoft.com/en-us/library/ee663473.aspx">Microsoft Article</a> (scroll to the bottom) doesn&#039;t mention you need to supply the identity of the Usage Application you are changing.</p>
<p>If you want to log to a non&ndash;default database then simply open the SharePoint 2010 Management Shell (Start &gt; All Programs &gt; Microsoft SharePoint 2010 Products &gt; SharePoint 2010 Management Shell) and run:</p>
<p><code><br />
$spUsageAppName = (Get-SPUsageApplication).DisplayName<br />
Set-SPUsageApplication -Identity $spUsageAppName -DatabaseServer yourServer  -DatabaseName newDBName -Verbose<br />
</code></p>
<p>All this does is retrieves and stores the DisplayName property for the Usage Application in a variable (first line) then configures the Usage Application with the new database name. Adding Verbose makes my output (shown below) a little more helpful and interesting!</p>
<div id="attachment_136" class="wp-caption alignnone" style="width: 510px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/09/set-usage-app.png" alt="PowerShell output" width="500" height="112" class="size-full wp-image-136" /><p class="wp-caption-text">Output of Set-SPUsageApplication</p></div>
<p>A few things to note:</p>
<ul>
<li>These instructions were tested on SharePoint Foundation RTM, but should also work on SharePoint Server 2010.</li>
<li>This was on a new install of SharePoint Foundation so part of my post&ndash;installation configuration. If your environment is already up and running, it may not be so simple.</li>
<li>The account you run this as must be a local admin on the SharePoint server and also be a member of the fixed server roles dbcreator and securityadmin on your SQL server (the install account is a good choice).</li>
<li>I actually used a SQL Alias instead of server name (see screenshot) and it works fine. This isn&#039;t a production system so I am not giving anything confidential away <img src='http://www.michaelgcox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>The old database is not deleted; if you want rid of it then you will have to do it yourself!</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/09/13/use-powershell-to-change-sharepoint-logging-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Site Maintenance</title>
		<link>http://www.michaelgcox.co.uk/2010/09/01/site-maintenance/</link>
		<comments>http://www.michaelgcox.co.uk/2010/09/01/site-maintenance/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 19:40:33 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[WebDev]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=128</guid>
		<description><![CDATA[I have been busy tonight upgrading WordPress and the plugins I use on this site. The theme has been altered, too. If you notice anything majorly wrong with the site...]]></description>
			<content:encoded><![CDATA[<p>I have been busy tonight upgrading WordPress and the plugins I use on this site. The theme has been altered, too. If you notice anything majorly wrong with the site or would just like to provide some feedback on the changes then please leave a comment below &#8211; thanks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/09/01/site-maintenance/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install NVIDIA Display Drivers: Ubuntu 10.04, Sony VAIO F Series</title>
		<link>http://www.michaelgcox.co.uk/2010/07/26/installing-nvidia-display-drivers-on-ubuntu-10-04-with-sony-vaio-f-series/</link>
		<comments>http://www.michaelgcox.co.uk/2010/07/26/installing-nvidia-display-drivers-on-ubuntu-10-04-with-sony-vaio-f-series/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 17:25:28 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NVIDIA]]></category>
		<category><![CDATA[SonyVAIO]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=118</guid>
		<description><![CDATA[I recently bought a Sony VAIO F Series laptop (VPCF11Z1E, to be precise). It has a GeForce GT 330M installed and I decided I wanted to dual boot with Ubuntu...]]></description>
			<content:encoded><![CDATA[<p>I recently bought a Sony VAIO F Series laptop (VPCF11Z1E, to be precise). It has a GeForce GT 330M installed and I decided I wanted to dual boot with Ubuntu 10.04. I thought that enabling the 3D acceleration would be as simple as turning on the restricted driver, but I was sadly mistaken. Here&#8217;s how to get it working.</p>
<p>Head over to the <a href="http://www.nvidia.co.uk/Download/index.aspx?lang=en-uk">download section on NVIDIA&#039;s web site</a> and obtain the appropriate driver. Place it somewhere you can easily find it; the Downloads folder in my home area worked fine for me. The way I got the driver installed was to (broadly speaking) following the instructions found in a <a href="http://ubuntuforums.org/showthread.php?p=9234321#post9234321">post on the Ubuntu Forums</a>, specifically <a href="http://ubuntuforums.org/showpost.php?p=9234321&amp;postcount=7">TheRawGod&#039;s post</a> (thanks <img src='http://www.michaelgcox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<p>First I blacklisted some drivers. To do this open a terminal and use the following commands. Note that I like to use vim (Vi&ndash;IMproved) but you will need to install this (sudo aptitude install vim). If you want something really straightforward, just use nano. I also tend to kick off with a sudo su so I can just do everything as root.</p>
<p><code><br />
sudo su<br />
cd /etc/modprobe.d/<br />
vim blacklist.conf<br />
</code></p>
<p>Add the following to the end of the file:</p>
<p><code><br />
blacklist vga16fb<br />
blacklist nouveau<br />
blacklist rivafb<br />
blacklist nvidiafb<br />
blacklist rivatv<br />
</code></p>
<div id="attachment_119" class="wp-caption alignnone" style="width: 457px"><img class="size-full wp-image-119 " src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/07/blacklist.png" alt="Drivers to blacklist" width="447" height="87" /><p class="wp-caption-text">Drivers to blacklist</p></div>
<p>Once completed, save the file. The next step is to update GRUB so it will prevent the nouveau driver from loading automatically at startup. To do this, perform the following:</p>
<p><code><br />
cd /etc/default<br />
vim grub<br />
</code></p>
<p>Now add GRUB_CMDLINE_LINUX=&#8221;nouveau.modeset=0&#8243; at the bottom of the file.</p>
<div id="attachment_122" class="wp-caption alignnone" style="width: 457px"><img class="size-full wp-image-122 " src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/07/disable_nouveau.png" alt="Disable nouveau driver" width="447" height="36" /><p class="wp-caption-text">Disable nouveau driver</p></div>
<p>Save the file and invoke update-grub. Reboot and you should be presented with a horrible looking low-res login (which is good, for now!).</p>
<p>Next you will need to install the NVIDIA driver you downloaded earlier. Press Ctrl-Alt-F1 to bring up a Teletype terminal and login. Then run the following commands (replace the location for that of your download) to get the driver installed.</p>
<p><code><br />
sudo su<br />
service gdm stop<br />
cd /home/mike/Downloads<br />
sh NVIDIA-Linux-{driver version}.run<br />
</code></p>
<p>Follow the on&ndash;screen prompts to install the NVIDIA driver (just accept the defaults and always choose to continue). If you are told that you have an X server running and have definitely stopped gdm, try the following:</p>
<p><code><br />
rm /tmp/.X0-lock<br />
</code></p>
<p>Once the driver is installed, there is a final step to make sure the Sony display panel is properly recognised by NVIDIA&#039;s driver. Run the following commands:</p>
<p><code><br />
cd /etc/X11<br />
vim xorg.conf<br />
</code></p>
<p>Add the following lines to the bottom of the file, immediately before the &#8220;Display&#8221; SubSection:</p>
<p><code><br />
Option    "ConnectedMonitor" "DFP-0"<br />
Option    "CustomEDID" "DFP-0: /proc/acpi/video/NGFX/LCD/EDID"<br />
</code></p>
<p>Note that I originally added this to the end of the &#8220;Device&#8221; Section, but a subsequent reinstall of the NVIDIA driver after a kernel update caused it to be placed in the section referenced above.</p>
<div id="attachment_124" class="wp-caption alignnone" style="width: 413px"><img class="size-full wp-image-124 " src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/07/screen_section.png" alt="Edited Screen Section" width="403" height="130" /><p class="wp-caption-text">Edited Screen Section</p></div>
<p>Please remember that you will need to be root or use sudo to execute most of the above commands. I also found that after a kernel update, it is necessary to repeat the driver install from the point where I stop the Gnome Display Manager (run Ubuntu in low&ndash;graphics mode one time only, switch to a Teletype terminal, stop the Display Manager and reinstall the driver).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/07/26/installing-nvidia-display-drivers-on-ubuntu-10-04-with-sony-vaio-f-series/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>PowerShell SharePoint Site Collection Backup Script</title>
		<link>http://www.michaelgcox.co.uk/2010/03/14/powershell-sharepoint-site-collection-backup-script/</link>
		<comments>http://www.michaelgcox.co.uk/2010/03/14/powershell-sharepoint-site-collection-backup-script/#comments</comments>
		<pubDate>Sun, 14 Mar 2010 19:43:24 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint2007]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WSS3.0]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=105</guid>
		<description><![CDATA[I have been meaning to write a script in PowerShell to do SharePoint Site Collection backups for a while but not got round to it. I did do a quick...]]></description>
			<content:encoded><![CDATA[<p>I have been meaning to write a script in PowerShell to do SharePoint Site Collection backups for a while but not got round to it. I did do a quick and functional one at the tail end of last year, but it wasn&#39;t particularly elegant. This script I am much happier with: it will backup all Site Collections at the specified Web Application and place them at the given location in a folder constructed from the day&#39;s date. It also writes to a log file and can clean up folders containing backups that are older than a predetermined number of days.</p>
<p>Simply copy the script below and save it to a .ps1 file of your choice. Please retain my comments at the top and, as always, use at your own risk! The deletion portion is quite destructive <img src='http://www.michaelgcox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . You may also have to set your Execution Policy to a less strict setting, such as RemoteSigned, e.g.:</p>
<p><code><br />
Set-ExecutionPolicy RemoteSigned<br />
</code></p>
<p>I have tested the script with Microsoft Office SharePoint Server 2007 SP2 and Windows SharePoint Services 3.0 SP2 running on Windows Server 2003 R2 SP2 (PowerShell 1.0). It should work fine for MOSS and WSS running on different Windows Server operating systems.</p>
<p>Here is the script:</p>
<pre style="width: 560px;overflow: scroll">
# SharePoint Site Collection Backup Script
# Author: Michael Cox
# Version: 1.0
# Date: March 2010
# Contact: http://www.betteritsolutions.co.uk/
# Use at own risk, please retain these comments

# Create alias for STSADM
Set-Alias -Name exeStsadm -Value ($Env:CommonProgramFiles + "Microsoft SharedWeb Server Extensions12BINstsadm.exe") -Option Constant
# Specify maximum age in days for backup files
New-Variable -Name maxFileAge -Value 14 -Option Constant
# Get todays date, formatting as yyyyMMdd e.g. 20100224
New-Variable -Name todaysDate -Value (Get-Date -Format yyyyMMdd) -Option Constant
# Specify backup location and set log file location, folder must exist and be writable by account running script
New-Variable -Name backupLoc  -Value "S:Backups" -Option Constant
New-Variable -Name logFileLoc -Value "$backupLocsite_collection_backups.log" -Option Constant
# Specify Web Application
New-Variable -Name webApplication -Value "http://mossintranet/" -Option Constant

# Change to backup location and create folder, suppressing notification
Set-Location $backupLoc
New-Item $todaysDate -type directory | Out-Null
Set-Location $todaysDate

# Record backup start
Out-File -FilePath $logFileLoc -Append -InputObject $("Backup started at: " + (Get-Date -Format HH:mm` dd/MM/yyyy) + "`n")

# Enumerate Site Collections within chosen Web Application and store in a variable
[xml]$sitesXml = exeStsadm -o enumsites -url $webApplication

# Enumerates each site collection and performes an stsadm sitecollection backup against each site
$sitesXml.Sites.Site | ForEach-Object -Process {$backupFile = $_.Url.Replace('http://','').Replace('/','_') + ".bak"; exeStsadm -o backup -url $_.Url -filename $backupFile; Write-Host "Finished writing: $backupFile"; Out-File -FilePath $logFileLoc -Append -InputObject "Finished writing: $backupFile"}

# Remove folders that are older than the maxFileAge value
Set-Location $backupLoc
$tooOld = (Get-Date).addDays(-$maxFileAge)
Get-ChildItem | Where-Object {$_.PSIsContainer -and ($_.lastWriteTime -le $tooOld)} | ForEach-Object -Process {Remove-Item $_ -force -recurse; Write-Host "Folder $_ was deleted."; Out-File -FilePath $logFileLoc -Append -InputObject "Folder $_ was deleted."}

# Record backup end
Out-File -FilePath $logFileLoc -Append -InputObject $("`n" + "Backup ended at: " + (Get-Date -Format HH:mm` dd/MM/yyyy) + "`n")
</pre>
<p>Here is a screenshot of files created following a backup of a Web Application with two Site Collections and also the contents of the log file:</p>
<div id="attachment_108" class="wp-caption alignnone" style="width: 462px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2010/03/site_col_backup.gif" alt="Screenshot after running script" width="452" height="261" class="size-full wp-image-108" /><p class="wp-caption-text">Screenshot after running script</p></div>
<p>Please let me know if this is useful and also feel free to make suggestions for improvements or bug fixes, if you find any.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/03/14/powershell-sharepoint-site-collection-backup-script/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Windows XP AHCI Mode Install Hangs</title>
		<link>http://www.michaelgcox.co.uk/2010/01/10/windows-xp-ahci-mode-install-hangs/</link>
		<comments>http://www.michaelgcox.co.uk/2010/01/10/windows-xp-ahci-mode-install-hangs/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 21:14:45 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[WindowsXP]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=98</guid>
		<description><![CDATA[Recently I decided to reinstall Windows XP Pro on my home desktop. Yes, I know, Windows 7 is out and far superior but I have some music software that only...]]></description>
			<content:encoded><![CDATA[<p>Recently I decided to reinstall Windows XP Pro on my home desktop. Yes, I know, Windows 7 is out and far superior but I have some music software that only runs well on XP as well as having already paid for XP&#8230; just bear with me!</p>
<p>I won&#39;t go overboard, but here are the relevant technical details: ASUS P5B Deluxe motherboard with Intel ICH8R onboard SATA controller and 3 x 250GB SATA HDDs. I used to have two of these in RAID 0 (yes, I have backups) but I decided that the performance benefits vs. just sensibly placing things on different drives wasn&#39;t worth the extra risk. So, for my reinstall I would be moving from RAID mode in the BIOS to AHCI mode.</p>
<p>I backed up everything, flashed the BIOS with the latest version (good time to do it when I am reinstalling anyway), set all my settings and flipped the ICH8R to AHCI mode. As I expected, my old XP install no longer booted as it was configured for RAID mode with the appropriate driver. Linux coped fine, though <img src='http://www.michaelgcox.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . I popped in the XP Pro SP2 CD, hit a key when prompted and watched the message: Setup is inspecting your computer&#39;s hardware configuration. After that, nothing. No chance to hit F6 or anything. Just a black screen. I even left it for ages in case it would finally realise it couldn&#39;t read the disks yet. No joy. Hmmm.</p>
<p>Basically, there seemed to be some issue with the fact that the setup CD could understand that there was an operating system installed but not properly read it and it was getting stuck. OK, no bother, whack in a Linux live CD and nuke the disks. In case you are interested, I like using badblocks in write mode but anything that destroys the partitions would do I expect.</p>
<p>Right, attempt number 2 (well actually a much higher number, but if you are reading this you don&#39;t need to follow my mistakes!): this time I get to the F6 prompt, add the AHCI driver from a floppy (drive hanging out of the side of the PC &ndash; why would I have a floppy drive on a modern PC?) and Windows sees the disks. Great! Actually, no. This time it sees 1 x 250GB disk and a 500GB disk that it cannot access (the old RAID array). Having selected AHCI in the BIOS and the AHCI driver this did surprise me. No problem, back in the BIOS and enable RAID then into the RAID BIOS and delete the array. Back in the BIOS again, enable AHCI.</p>
<p>Attempt number 3 and we have success! 3 x 250GB disks detected (after using the F6 option to add the driver) and I install Windows XP.</p>
<p>So in summary, if you want to reinstall Windows XP and go from one SATA controller mode to another, my tips would be:</p>
<ul>
<li>Break any RAID arrays in the RAID BIOS</li>
<li>Delete any existing partitions on your disks</li>
<li>Make the BIOS changes you require</li>
<li>Boot to the setup CD and slipstream the correct driver</li>
</ul>
<p></p>
<p>Simple when you know how! As an aside, I was installing from a SATA DVD drive and that caused no issues (I saw some people report that this is a problem). I know this wasn&#39;t part of the problem because I even had another &#39;donor&#39; machine next to my desktop at one point so I could try installing from an IDE optical drive&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2010/01/10/windows-xp-ahci-mode-install-hangs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install VMware Tools on Windows Server 2008 R2 Core</title>
		<link>http://www.michaelgcox.co.uk/2009/12/03/install-vmware-tools-on-windows-server-2008-r2-core/</link>
		<comments>http://www.michaelgcox.co.uk/2009/12/03/install-vmware-tools-on-windows-server-2008-r2-core/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 16:51:09 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[Server2008]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=91</guid>
		<description><![CDATA[I was surprised to discover that it&#39;s very easy to install the VMware Tools on Windows Server 2008 R2 Core today. Simply select the VM in VMware Infrastructure Web Access...]]></description>
			<content:encoded><![CDATA[<p>I was surprised to discover that it&#39;s very easy to install the VMware Tools on Windows Server 2008 R2 Core today. Simply select the VM in VMware Infrastructure Web Access (assuming you are using VMware Server 2, if not use the appropriate interface) and click the Install VMware Tools link. The iso won&#39;t autorun, but all you have to do is change to the virtual CD&ndash;ROM drive within the VM (probably D:) and run:</p>
<p><code><br />
msiexec /i "VMware Tools64.msi"<br />
</code></p>
<div id="attachment_94" class="wp-caption alignnone" style="width: 535px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2009/12/vmware_tools_scaled.png" alt="VMware Tools Installed" width="525" height="415" class="size-full wp-image-94" /><p class="wp-caption-text">VMware Tools Installed</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2009/12/03/install-vmware-tools-on-windows-server-2008-r2-core/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Search Server Express 2008 Requires SP2 on Windows Server 2008 R2</title>
		<link>http://www.michaelgcox.co.uk/2009/11/30/search-server-express-2008-requires-sp2-on-windows-server-2008-r2/</link>
		<comments>http://www.michaelgcox.co.uk/2009/11/30/search-server-express-2008-requires-sp2-on-windows-server-2008-r2/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 21:23:13 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[SearchServer]]></category>
		<category><![CDATA[Server2008]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[WSS3.0]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=85</guid>
		<description><![CDATA[I recently installed Windows SharePoint Services (WSS) 3.0 with SP2 on Windows Server 2008 R2, with the intention of adding Search Server Express 2008 for enterprise search functionality. However, when...]]></description>
			<content:encoded><![CDATA[<p>I recently installed Windows SharePoint Services (WSS) 3.0 with SP2 on Windows Server 2008 R2, with the intention of adding Search Server Express 2008 for enterprise search functionality. However, when I tried to run the Search Server install I was greeted with the following unfriendly message:</p>
<div id="attachment_87" class="wp-caption alignnone" style="width: 490px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2009/11/program_blocked1.png" alt="Program Compatibility Assistant" width="480" height="232" class="size-full wp-image-87" /><p class="wp-caption-text">Program Compatibility Assistant</p></div>
<p>After some digging around and Googling, I discovered that Search Server wouldn&#8217;t install on Server 2008 R2 without Service Pack 2. Unfortunately, it doesn&#39;t appear possible (at this time) to download it with SP2 so what do you do? I did a little experimenting and found out that you can slipstream the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=B7816D90-5FC6-4347-89B0-A80DEB27A082&amp;displaylang=en">The 2007 Microsoft Office Servers Service Pack 2 (SP2)</a> into the install. Note that the download page actually specifies the service pack will update Search Server. Here&#39;s how to slipstream it:</p>
<ol>
<li>Open a command prompt, navigate to the location of the file <code>SearchServerExpress.exe</code> and run <code>SearchServerExpress.exe /extract:SearchServer</code>. This extracts (but doesn&#39;t install) Search Server Express to the folder <code>SearchServer</code>.</li>
<li>Download the 2007 Microsoft Office Servers Service Pack 2 to the same location as the install file for Search Server Express.</li>
<li>From the same command window, run <code>officeserver2007sp2-kb953334-x64-fullfile-en-us.exe /extract:SearchServerUpdates</code> (you will have downloaded the 64&ndash;bit version as Windows Server 2008 R2 is 64&ndash;bit only). This extracts the service pack files into the Updates folder of the Search Server install.</li>
<li>Run <code>setup.exe</code> from within the <code>SearchServer</code> folder</li>
</ol>
<p>&nbsp;</p>
<p>You should find that the Search Server install now runs happily without complaining and pauses for a period of time to apply updates towards the end of the process.</p>
<p>Happy searching!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2009/11/30/search-server-express-2008-requires-sp2-on-windows-server-2008-r2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install PowerShell on Windows Server 2008 R2 Core</title>
		<link>http://www.michaelgcox.co.uk/2009/11/18/install-powershell-on-windows-server-2008-r2-core/</link>
		<comments>http://www.michaelgcox.co.uk/2009/11/18/install-powershell-on-windows-server-2008-r2-core/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 17:17:08 +0000</pubDate>
		<dc:creator>Mike</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Server2008]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.betteritsolutions.co.uk/?p=78</guid>
		<description><![CDATA[Today I installed Windows Server 2008 R2 Standard Core, expecting to be presented with PowerShell. Wrong. I was presented with good old cmd.exe. It took me a while to find...]]></description>
			<content:encoded><![CDATA[<p>Today I installed Windows Server 2008 R2 Standard Core, expecting to be presented with PowerShell. Wrong. I was presented with good old cmd.exe. It took me a while to find this information, so I thought I&#39;d blog it here. To install PowerShell, you need to run the following commands:</p>
<p><code><br />
DISM /Online /Enable-Feature /FeatureName:NetFx2&ndash;ServerCore<br />
DISM /Online /Enable-Feature /FeatureName:MicrosoftWindowsPowerShell<br />
</code></p>
<p>Now you can launch <code>powershell.exe</code> from <code>C:WindowsSystem32WindowsPowerShellv1.0</code>. Although the path would suggest PowerShell 1.0, a quick <code>Get-Host</code> indicates PowerShell 2.0:</p>
<div id="attachment_81" class="wp-caption alignnone" style="width: 542px"><img src="http://www.michaelgcox.co.uk/wp-content/uploads/2009/11/get-host.png" alt="Get-Host output" width="532" height="264" class="size-full wp-image-81" /><p class="wp-caption-text">Get-Host output</p></div>
<p>A little more about DISM, for those that are interested. DISM is the &quot;Deployment Image Servicing and Management tool&quot; and can be used to perform various configuration tasks on offline or running images. Hence the /Online switch is used to tell DISM it must target the running operating system. The following command will list all features and their status (suggest you pipe it through more):</p>
<p><code><br />
DISM /Online /Get-Features | more<br />
</code></p>
<p>Note that PowerShell requires .NET Framework 2.0, hence the first DISM command.</p>
<p>Thanks to Vincent Hu for his <a href="http://social.technet.microsoft.com/Forums/en/windowsserver2008r2management/thread/83b7d33b-ee27-45ae-8e68-ab5e63cd7274">post on TechNet</a>, which I finally found. There is a slight mistake, though, as there should be no space between /FeatureName: and the feature you want to install.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelgcox.co.uk/2009/11/18/install-powershell-on-windows-server-2008-r2-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

