<?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: Get VMware Disk Usage with Powershell</title>
	<atom:link href="http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/</link>
	<description>Using Powershell for (virtually) everything!</description>
	<lastBuildDate>Fri, 03 Feb 2012 11:41:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lisa</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-52917</link>
		<dc:creator>Lisa</dc:creator>
		<pubDate>Thu, 02 Feb 2012 07:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-52917</guid>
		<description>Is there a way to exclude some servers? Because Linux servers will get an error.</description>
		<content:encoded><![CDATA[<p>Is there a way to exclude some servers? Because Linux servers will get an error.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tulk</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-51837</link>
		<dc:creator>tulk</dc:creator>
		<pubDate>Thu, 26 Jan 2012 10:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-51837</guid>
		<description>can someone please post the full script, i cant get it to work</description>
		<content:encoded><![CDATA[<p>can someone please post the full script, i cant get it to work</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ThomasL</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-43093</link>
		<dc:creator>ThomasL</dc:creator>
		<pubDate>Mon, 12 Dec 2011 19:33:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-43093</guid>
		<description>I get the same thing as Molotsi:
&lt;code&gt;
=============================
=============================
Total DS Free:
Total DS Size:
Average DS Free Percentage:
Average Disk Free Percentage:
&lt;/code&gt;

Is this because I tried to add the DiskFileSizeGB object you mentioned in the comments in the Script Repository post?  Your script is what I&#039;m looking for, however, without the DiskFileSizeGB object, it doesn&#039;t give what I need.. Thanks in advance!</description>
		<content:encoded><![CDATA[<p>I get the same thing as Molotsi:<br />
<code><br />
=============================<br />
=============================<br />
Total DS Free:<br />
Total DS Size:<br />
Average DS Free Percentage:<br />
Average Disk Free Percentage:<br />
</code></p>
<p>Is this because I tried to add the DiskFileSizeGB object you mentioned in the comments in the Script Repository post?  Your script is what I&#8217;m looking for, however, without the DiskFileSizeGB object, it doesn&#8217;t give what I need.. Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-37043</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Fri, 21 Oct 2011 08:49:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-37043</guid>
		<description>You need to install powerCLI and either run it from the powerCLI console or add the snapin to you powershell session.</description>
		<content:encoded><![CDATA[<p>You need to install <a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>powerCLI</a> and either run it from the <a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>powerCLI</a> console or add the snapin to you <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target='_blank'>powershell</a> session.
<p style="opacity:0.5;padding:0;margin:0;display:inline;"><sub><a href="http://www.janhvizdak.com/make-donation-cross-linker-plugin-wordpress.php" onclick="window.open('http://www.janhvizdak.com/make-donation-cross-linker-plugin-wordpress.php'); return false;" target="_blank" style="cursor:help;"><b>&#187;crosslinked&#171;</b></a></sub></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-37001</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Thu, 20 Oct 2011 16:28:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-37001</guid>
		<description>I&#039;m getting errors like:
The term &#039;Connect-VIServer&#039; is not recognized as the name of a cmdlet, function
, script file, or operable program. Check the spelling of the name, or if a pat
h was included, verify that the path is correct and try again.
At C:\getdiskspace.ps1:10 char:23
+ $VC = Connect-VIServer &lt;&lt;&lt;&lt;  $VCServer
    + CategoryInfo          : ObjectNotFound: (Connect-VIServer:String) [], Co
   mmandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException</description>
		<content:encoded><![CDATA[<p>I&#8217;m getting errors like:<br />
The term &#8216;Connect-VIServer&#8217; is not recognized as the name of a cmdlet, function<br />
, script file, or operable program. Check the spelling of the name, or if a pat<br />
h was included, verify that the path is correct and try again.<br />
At C:\getdiskspace.ps1:10 char:23<br />
+ $VC = Connect-VIServer <<<<  $VCServer<br />
    + CategoryInfo          : ObjectNotFound: (Connect-VIServer:String) [], Co<br />
   mmandNotFoundException<br />
    + FullyQualifiedErrorId : CommandNotFoundException</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-36441</link>
		<dc:creator>Sam</dc:creator>
		<pubDate>Thu, 13 Oct 2011 15:01:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-36441</guid>
		<description>Hey Man, very good script, thx for sharing!!</description>
		<content:encoded><![CDATA[<p>Hey Man, very good script, thx for sharing!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jon</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-35399</link>
		<dc:creator>Jon</dc:creator>
		<pubDate>Thu, 22 Sep 2011 16:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-35399</guid>
		<description>I also get a bunch of false positives (VM Powered Off) looking through the code now.

Running vCenter 4.1.0 Build 345043, and VMware vSphere PowerCLI 4.1 U1 build 332441</description>
		<content:encoded><![CDATA[<p>I also get a bunch of false positives (VM Powered Off) looking through the code now.</p>
<p>Running vCenter 4.1.0 Build 345043, and <a href="http://www.vmware.com/" target='_blank'>VMware</a> <a href="http://www.vmware.com/products/vsphere/" target='_blank'>vSphere</a> <a href="http://communities.vmware.com/community/developer/windows_toolkit" target='_blank'>PowerCLI</a> 4.1 U1 build 332441</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Molotsi</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-34974</link>
		<dc:creator>Molotsi</dc:creator>
		<pubDate>Thu, 08 Sep 2011 05:03:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-34974</guid>
		<description>I do not get results.

this is the only output i receive.

=============================
=============================
Total DS Free:
Total DS Size:
Average DS Free Percentage:
Average Disk Free Percentage:

Please help.</description>
		<content:encoded><![CDATA[<p>I do not get results.</p>
<p>this is the only output i receive.</p>
<p>=============================<br />
=============================<br />
Total DS Free:<br />
Total DS Size:<br />
Average DS Free Percentage:<br />
Average Disk Free Percentage:</p>
<p>Please help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-34722</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 31 Aug 2011 15:10:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-34722</guid>
		<description>One possible in one scenario: if you are certain you never use more than one SCSI Controller in a vm. Then you can remove the checking of the SCSI Bus ID:
&lt;pre lang=&quot;powershell&quot;&gt;
#REPLACE
$DiskMatch = $Disks &#124; ?{($_.SCSIPort - 1) -eq $VMRef.SCSIController -and $_.SCSITargetID -eq $VMRef.SCSITarget}
#WITH
$DiskMatch = $Disks &#124; ?{$_.SCSITargetID -eq $VMRef.SCSITarget}
&lt;/pre&gt;
Hugo</description>
		<content:encoded><![CDATA[<p>One possible in one scenario: if you are certain you never use more than one SCSI Controller in a vm. Then you can remove the checking of the SCSI Bus ID:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;">#REPLACE</span>
<span style="color: #800080;">$DiskMatch</span> <span style="color: pink;">=</span> <span style="color: #800080;">$Disks</span> <span style="color: pink;">|</span> <span style="color: pink;">?</span><span style="color: #000000;">&#123;</span><span style="color: #000000;">&#40;</span><span style="color: #000080;">$_</span>.SCSIPort <span style="color: pink;">-</span> <span style="color: #804000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$VMRef</span>.SCSIController <span style="color: #FF0000;">-and</span> <span style="color: #000080;">$_</span>.SCSITargetID <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$VMRef</span>.SCSITarget<span style="color: #000000;">&#125;</span>
<span style="color: #008000;">#WITH</span>
<span style="color: #800080;">$DiskMatch</span> <span style="color: pink;">=</span> <span style="color: #800080;">$Disks</span> <span style="color: pink;">|</span> <span style="color: pink;">?</span><span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.SCSITargetID <span style="color: #FF0000;">-eq</span> <span style="color: #800080;">$VMRef</span>.SCSITarget<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: morpheus</title>
		<link>http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/comment-page-2/#comment-34721</link>
		<dc:creator>morpheus</dc:creator>
		<pubDate>Wed, 31 Aug 2011 14:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/get-vmware-disk-usage-with-powershell/#comment-34721</guid>
		<description>Dear Hugo,

I did a test on our big cluster now. I see for some VMs WMI lists the IDs as 2:0, 2:1 and 2:2 but for others it lists the IDs as 1:0, 1:1 and 1:2. The strange thing is these VMs (w2k8R2) were installed with the same image. What could I do to get results from all VMs no matter if their IDs are 1 or 2? Thanks a lot for your help!</description>
		<content:encoded><![CDATA[<p>Dear Hugo,</p>
<p>I did a test on our big cluster now. I see for some VMs WMI lists the IDs as 2:0, 2:1 and 2:2 but for others it lists the IDs as 1:0, 1:1 and 1:2. The strange thing is these VMs (w2k8R2) were installed with the same image. What could I do to get results from all VMs no matter if their IDs are 1 or 2? Thanks a lot for your help!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

