<?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/"
		>
<channel>
	<title>Comments on: Match VM and Windows harddisks using PowerCLI</title>
	<atom:link href="http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/</link>
	<description>About virtualization and more</description>
	<lastBuildDate>Mon, 30 Jan 2012 22:12:35 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Arnim van Lieshout</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-2010</link>
		<dc:creator>Arnim van Lieshout</dc:creator>
		<pubDate>Mon, 30 Jan 2012 21:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-2010</guid>
		<description>Hi Jay,

Might be related to Windows 2008 R2. There is an updated version of this function available in our book: &lt;a href=&quot;http://www.amazon.com/dp/0470890797?tag=arnivanlies-20&amp;camp=14573&amp;creative=327641&amp;linkCode=as1&amp;creativeASIN=0470890797&amp;adid=1Z7SWZ0X65ZV4PYEQ2ER&amp;&quot; rel=&quot;nofollow&quot;&gt;VMware vSphere PowerCLI Reference: Automating vSphere Administration&lt;/a&gt;. Look for listing 7.4; the code is available for download from the Wiley site.</description>
		<content:encoded><![CDATA[<p>Hi Jay,</p>
<p>Might be related to Windows 2008 R2. There is an updated version of this function available in our book: <a href="http://www.amazon.com/dp/0470890797?tag=arnivanlies-20&amp;camp=14573&amp;creative=327641&amp;linkCode=as1&amp;creativeASIN=0470890797&amp;adid=1Z7SWZ0X65ZV4PYEQ2ER&amp;" rel="nofollow">VMware vSphere PowerCLI Reference: Automating vSphere Administration</a>. Look for listing 7.4; the code is available for download from the Wiley site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-1994</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 17 Jan 2012 03:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-1994</guid>
		<description>I&#039;ve been playing with this script and it fails to map any Windows drives, just returns &quot;No matching Windows disk found for SCSI id 0 : 0&quot; etc.

I&#039;m a newbie to scripting so woudl appreciate any help here.
I have vCentre 4.1U2 and PowerCLI 4.1.1 on Windows 2008 R2

I can remote query the disk details with wmi/powercli with the following script no prob....

    # $diskdrive - harddisk related info 
    # $diskpartition - partition related info 
    # $Logicaldrive - Drive related info
    $Srv = Read-Host &quot;Enter Name to list disk details for&quot;
   
    $diskdrives = Get-WmiObject win32_diskdrive -ComputerName $Srv
     
    foreach($diskdrive in $diskdrives){ 
        Write-Host &quot;---------------------------------------------------------&quot; 
        Write-Host &quot;Disk:&quot; $diskdrive.Index  &quot;`n SCSI:&quot;  $diskdrive.SCSIBUS  &quot;`n SCSITargetID:&quot; $diskdrive.SCSITargetID  &quot;`n SCSILU:SCSILogicalUnit&quot; 
        foreach($diskpartition in $diskdrive.getrelated(&quot;win32_diskpartition&quot;)){ 
        Write-Host &quot;Disk Partition:&quot; $diskpartition.NAME 
        FOREACH($LOGICALDRIVE IN $diskpartition.getrelated(&quot;win32_logicaldisk&quot;)){ 
        write-host &quot;Logical drive:&quot; $LOGICALDRIVE.name 
        } 
        } 
         
    }</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been playing with this script and it fails to map any Windows drives, just returns &#8220;No matching Windows disk found for SCSI id 0 : 0&#8243; etc.</p>
<p>I&#8217;m a newbie to scripting so woudl appreciate any help here.<br />
I have vCentre 4.1U2 and PowerCLI 4.1.1 on Windows 2008 R2</p>
<p>I can remote query the disk details with wmi/powercli with the following script no prob&#8230;.</p>
<p>    # $diskdrive &#8211; harddisk related info<br />
    # $diskpartition &#8211; partition related info<br />
    # $Logicaldrive &#8211; Drive related info<br />
    $Srv = Read-Host &#8220;Enter Name to list disk details for&#8221;</p>
<p>    $diskdrives = Get-WmiObject win32_diskdrive -ComputerName $Srv</p>
<p>    foreach($diskdrive in $diskdrives){<br />
        Write-Host &#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8221;<br />
        Write-Host &#8220;Disk:&#8221; $diskdrive.Index  &#8220;`n SCSI:&#8221;  $diskdrive.SCSIBUS  &#8220;`n SCSITargetID:&#8221; $diskdrive.SCSITargetID  &#8220;`n SCSILU:SCSILogicalUnit&#8221;<br />
        foreach($diskpartition in $diskdrive.getrelated(&#8220;win32_diskpartition&#8221;)){<br />
        Write-Host &#8220;Disk Partition:&#8221; $diskpartition.NAME<br />
        FOREACH($LOGICALDRIVE IN $diskpartition.getrelated(&#8220;win32_logicaldisk&#8221;)){<br />
        write-host &#8220;Logical drive:&#8221; $LOGICALDRIVE.name<br />
        }<br />
        } </p>
<p>    }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Match VM and Windows harddisks using PowerShell - part 2 &#124; Arnim van Lieshout</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-521</link>
		<dc:creator>Match VM and Windows harddisks using PowerShell - part 2 &#124; Arnim van Lieshout</dc:creator>
		<pubDate>Wed, 03 Feb 2010 09:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-521</guid>
		<description>[...] 3rd, 2010 by Arnim van Lieshout.    This is a follow up on a post I did a couple of weeks ago to create a mapping table between Windows- and VMware hard disks. In another previous post PowerCLI: Get WMI info from isolated guests, I showed you how to get WMI [...]</description>
		<content:encoded><![CDATA[<p>[...] 3rd, 2010 by Arnim van Lieshout.    This is a follow up on a post I did a couple of weeks ago to create a mapping table between Windows- and VMware hard disks. In another previous post PowerCLI: Get WMI info from isolated guests, I showed you how to get WMI [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PowerCLI: Get WMI info from isolated guests &#124; Arnim van Lieshout</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-458</link>
		<dc:creator>PowerCLI: Get WMI info from isolated guests &#124; Arnim van Lieshout</dc:creator>
		<pubDate>Thu, 21 Jan 2010 09:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-458</guid>
		<description>[...] isolated guests  Jan 21st, 2010 by Arnim van Lieshout.    A few weeks back I posted an article on matching Windows and VMware disks. Unfortunately this would work only if you could remotely query WMI information from that VM. If [...]</description>
		<content:encoded><![CDATA[<p>[...] isolated guests  Jan 21st, 2010 by Arnim van Lieshout.    A few weeks back I posted an article on matching Windows and VMware disks. Unfortunately this would work only if you could remotely query WMI information from that VM. If [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnim van Lieshout</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-441</link>
		<dc:creator>Arnim van Lieshout</dc:creator>
		<pubDate>Sun, 10 Jan 2010 16:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-441</guid>
		<description>Hi dmVI,

I&#039;ve updated my post with a sample output.</description>
		<content:encoded><![CDATA[<p>Hi dmVI,</p>
<p>I&#8217;ve updated my post with a sample output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dmVI</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-425</link>
		<dc:creator>dmVI</dc:creator>
		<pubDate>Wed, 06 Jan 2010 02:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-425</guid>
		<description>Can you post a sample of the output that you receive when running your script?</description>
		<content:encoded><![CDATA[<p>Can you post a sample of the output that you receive when running your script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugo Peeters</title>
		<link>http://www.van-lieshout.com/2009/12/match-vm-and-windows-harddisks-using-powercli/comment-page-1/#comment-410</link>
		<dc:creator>Hugo Peeters</dc:creator>
		<pubDate>Tue, 22 Dec 2009 09:14:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=865#comment-410</guid>
		<description>Cool stuff!</description>
		<content:encoded><![CDATA[<p>Cool stuff!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

