<?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: PowerCLI: How many VMs on your Datastores ?</title>
	<atom:link href="http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/</link>
	<description>Virtually everything is poshable</description>
	<lastBuildDate>Sat, 11 Feb 2012 14:14:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Alan</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-12785</link>
		<dc:creator>Alan</dc:creator>
		<pubDate>Thu, 19 Jan 2012 09:50:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-12785</guid>
		<description>Yes, there are multiple orphoned VM scripts on the web which you could use.</description>
		<content:encoded><![CDATA[<p>Yes, there are multiple orphoned VM scripts on the web which you could use.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anoop</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-12780</link>
		<dc:creator>Anoop</dc:creator>
		<pubDate>Thu, 19 Jan 2012 08:10:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-12780</guid>
		<description>Hi,

I have a many VMs in my data store that are not added to Vcentre inventory. Is it possible to delete only those VMs through a script as the number is too big to delete manually. The complete setup is in a cluster. 

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have a many VMs in my data store that are not added to Vcentre inventory. Is it possible to delete only those VMs through a script as the number is too big to delete manually. The complete setup is in a cluster. </p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ferry</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-11669</link>
		<dc:creator>Ferry</dc:creator>
		<pubDate>Wed, 21 Dec 2011 14:12:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-11669</guid>
		<description>Al 

nice oneliner 
but it would be better not only to know who many vm&#039;s are running on the datastore ...but also know the amount of used hosts or this ammount of vm for each datastore.

regards 
Ferry Limpens</description>
		<content:encoded><![CDATA[<p>Al </p>
<p>nice oneliner<br />
but it would be better not only to know who many vm&#8217;s are running on the datastore &#8230;but also know the amount of used hosts or this ammount of vm for each datastore.</p>
<p>regards<br />
Ferry Limpens</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: praveen</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-10764</link>
		<dc:creator>praveen</dc:creator>
		<pubDate>Thu, 10 Nov 2011 07:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-10764</guid>
		<description>it helped me lot thank you</description>
		<content:encoded><![CDATA[<p>it helped me lot thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anky</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-3275</link>
		<dc:creator>Anky</dc:creator>
		<pubDate>Mon, 08 Nov 2010 17:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-3275</guid>
		<description>Thanks Guys , its a good one-liner script.

However I am calling this script in my other script to get the output in HTML format , however the issue is while using this 
$TotalVM = Get-Datastore Sharepoint_Datastore2 &#124; Select Name ,@{N=&quot;TotalVM&quot;;E={@($_ &#124; Get-VM).Count}}&#124; select totalvm

this gives me output as @{TotalVM=1} 

Also I am using below however I am not getting any output if VM count is less than 2

$TotalVM =   (Get-VM -DataStore $datastore).count

Since I am new to Powercli , Can someone help me out on this..

Thanks in Advance</description>
		<content:encoded><![CDATA[<p>Thanks Guys , its a good one-liner script.</p>
<p>However I am calling this script in my other script to get the output in HTML format , however the issue is while using this<br />
$TotalVM = Get-Datastore Sharepoint_Datastore2 | Select Name ,@{N=&#8221;TotalVM&#8221;;E={@($_ | Get-VM).Count}}| select totalvm</p>
<p>this gives me output as @{TotalVM=1} </p>
<p>Also I am using below however I am not getting any output if VM count is less than 2</p>
<p>$TotalVM =   (Get-VM -DataStore $datastore).count</p>
<p>Since I am new to Powercli , Can someone help me out on this..</p>
<p>Thanks in Advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-2731</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Tue, 21 Sep 2010 15:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-2731</guid>
		<description>Hi Folks,
I would like to have a script for complete datastore information such as datastore total size &amp; free size, how many # of VMs per datasore currently running that can be run as schedule task and send an email upcon completion the script with the report.

awaiting your positive response.

Thank you all in advance,</description>
		<content:encoded><![CDATA[<p>Hi Folks,<br />
I would like to have a script for complete datastore information such as datastore total size &amp; free size, how many # of VMs per datasore currently running that can be run as schedule task and send an email upcon completion the script with the report.</p>
<p>awaiting your positive response.</p>
<p>Thank you all in advance,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virtu-Al</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-1888</link>
		<dc:creator>Virtu-Al</dc:creator>
		<pubDate>Fri, 26 Feb 2010 13:57:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-1888</guid>
		<description>Thats strange, the only thing I can think of is that it is an issue with copying the code from my site, are you using the &quot;copy Source&quot; button that appears when you hover over the code ?

Yes, it definately does work on SAN datastores</description>
		<content:encoded><![CDATA[<p>Thats strange, the only thing I can think of is that it is an issue with copying the code from my site, are you using the &#8220;copy Source&#8221; button that appears when you hover over the code ?</p>
<p>Yes, it definately does work on SAN datastores</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DCJim</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-1887</link>
		<dc:creator>DCJim</dc:creator>
		<pubDate>Fri, 26 Feb 2010 02:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-1887</guid>
		<description>Al,

I admit I am new to PowerCLI scripting (very new, even), but after running this against my cluster, I see a list of the DataStores, but no heading for &quot;NumVM&quot; and no vm count.

Is it possible I cannot type this one line correctly?  Or perhaps this does not work on SAN DataStores?  

Thanks very much for the assistance.</description>
		<content:encoded><![CDATA[<p>Al,</p>
<p>I admit I am new to PowerCLI scripting (very new, even), but after running this against my cluster, I see a list of the DataStores, but no heading for &#8220;NumVM&#8221; and no vm count.</p>
<p>Is it possible I cannot type this one line correctly?  Or perhaps this does not work on SAN DataStores?  </p>
<p>Thanks very much for the assistance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FAQ &#187; PowerCLI: How many VMs on your Datastores ?</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-1842</link>
		<dc:creator>FAQ &#187; PowerCLI: How many VMs on your Datastores ?</dc:creator>
		<pubDate>Fri, 12 Feb 2010 18:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-1842</guid>
		<description>[...] nice oneline script to show the total VM&#8217;s on your datastore: Get-Datastore &#124; Select Name, [...]</description>
		<content:encoded><![CDATA[<p>[...] nice oneline script to show the total VM&#8217;s on your datastore: Get-Datastore | Select Name, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/#comment-1063</link>
		<dc:creator>John</dc:creator>
		<pubDate>Fri, 25 Sep 2009 14:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.virtu-al.net/?p=923#comment-1063</guid>
		<description>Al,

This is great!  I agree with Chris, this would be a perfect addition to the Daily Report (especially if it was set to report based on a custom threshold)</description>
		<content:encoded><![CDATA[<p>Al,</p>
<p>This is great!  I agree with Chris, this would be a perfect addition to the Daily Report (especially if it was set to report based on a custom threshold)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

