<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
	>
<channel>
	<title>Comments on: Upgrading to PowerCLI 4.0 Update 1</title>
	<atom:link href="http://www.rtfm-ed.co.uk/2009/11/27/upgrading-to-powercli-40-update-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rtfm-ed.co.uk/2009/11/27/upgrading-to-powercli-40-update-1/</link>
	<description>Beyond the Manual, with Mike Laverick (VCI, VCP, CCI, CCEA, MCT, MCSE)</description>
	<lastBuildDate>Tue, 07 Feb 2012 21:25:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Carter Shanklin</title>
		<link>http://www.rtfm-ed.co.uk/2009/11/27/upgrading-to-powercli-40-update-1/comment-page-1/#comment-41547</link>
		<dc:creator>Carter Shanklin</dc:creator>
		<pubDate>Mon, 30 Nov 2009 04:56:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.rtfm-ed.co.uk/?p=1940#comment-41547</guid>
		<description>The Eager bit is not exposed via Get-HardDisk and can&#039;t be controlled via Set-HardDisk or New-HardDisk in 4.0 U1.

You can get the Eager status as follows:
function Is-Eager {
	param ($hd)

	$vm = Get-VM -id $hd.ParentId
	$vmView = $vm &#124; get-view -property Config
	Write-Output (
		$vmView.config.Hardware.Device &#124;
		Where { $_.Backing.FileName -eq $hd.FileName }
	).Backing.EagerlyScrub
}

And LucD has code to convert a disk to eager: http://lucd.info/?p=918</description>
		<content:encoded><![CDATA[<p>The Eager bit is not exposed via Get-HardDisk and can&#8217;t be controlled via Set-HardDisk or New-HardDisk in 4.0 U1.</p>
<p>You can get the Eager status as follows:<br />
function Is-Eager {<br />
	param ($hd)</p>
<p>	$vm = Get-VM -id $hd.ParentId<br />
	$vmView = $vm | get-view -property Config<br />
	Write-Output (<br />
		$vmView.config.Hardware.Device |<br />
		Where { $_.Backing.FileName -eq $hd.FileName }<br />
	).Backing.EagerlyScrub<br />
}</p>
<p>And LucD has code to convert a disk to eager: <a href="http://lucd.info/?p=918" rel="nofollow">http://lucd.info/?p=918</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

