<?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: How big is my VM?</title>
	<atom:link href="http://www.van-lieshout.com/2009/07/how-big-is-my-vm/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/</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: yattong</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-846</link>
		<dc:creator>yattong</dc:creator>
		<pubDate>Thu, 29 Jul 2010 11:19:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-846</guid>
		<description>thanks guys,

(Using Nitro updated script)

Tried so many different option, embedding foreach ($vm) into the same script but couldnt get it to work.

In the end, created another script with
$vms = get-vm
  foreach ($vm in $vms)
  {
  C:\getvmsize(&quot;$vm&quot;)
  }
worked for me.

just have to find out how to append the output to a report.
thanks again.</description>
		<content:encoded><![CDATA[<p>thanks guys,</p>
<p>(Using Nitro updated script)</p>
<p>Tried so many different option, embedding foreach ($vm) into the same script but couldnt get it to work.</p>
<p>In the end, created another script with<br />
$vms = get-vm<br />
  foreach ($vm in $vms)<br />
  {<br />
  C:\getvmsize(&#8220;$vm&#8221;)<br />
  }<br />
worked for me.</p>
<p>just have to find out how to append the output to a report.<br />
thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trent</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-827</link>
		<dc:creator>Trent</dc:creator>
		<pubDate>Fri, 23 Jul 2010 13:48:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-827</guid>
		<description>@ yattong

You need to call this function inside a loop (and for each return, add it to a report). 

For instance, mine is modified to only pull snapshot size but I basically do:

Write-Host &quot;`Gathering info on $VIServer...&quot;
$VMWithSnaps = Get-VM &#124; Get-Snapshot
$VMWithSnapsGroup = $VMWithSnaps &#124; Group-Object VM

That gets me an array of VM&#039;s with snapshots. Then I simply call this function from withing a loop and add it to my report array.

$Report1 = @()
$VMWithSnapsGroup &#124; Foreach-Object {
    &quot;do all the things I want it to do&quot;
     $Report1 += $object

Then at the end, I email myself the report. 

$HTMLReport = $Report1 &#124; ConvertTo-Html
send-SMTPmail $EmailTo $EmailFrom &quot;Snapshots Exist&quot; $SMTPSRV $HTMLReport



I&#039;m sure Nitro has a better way ... I&#039;m just a sys admin, not a programmer.</description>
		<content:encoded><![CDATA[<p>@ yattong</p>
<p>You need to call this function inside a loop (and for each return, add it to a report). </p>
<p>For instance, mine is modified to only pull snapshot size but I basically do:</p>
<p>Write-Host &#8220;`Gathering info on $VIServer&#8230;&#8221;<br />
$VMWithSnaps = Get-VM | Get-Snapshot<br />
$VMWithSnapsGroup = $VMWithSnaps | Group-Object VM</p>
<p>That gets me an array of VM&#8217;s with snapshots. Then I simply call this function from withing a loop and add it to my report array.</p>
<p>$Report1 = @()<br />
$VMWithSnapsGroup | Foreach-Object {<br />
    &#8220;do all the things I want it to do&#8221;<br />
     $Report1 += $object</p>
<p>Then at the end, I email myself the report. </p>
<p>$HTMLReport = $Report1 | ConvertTo-Html<br />
send-SMTPmail $EmailTo $EmailFrom &#8220;Snapshots Exist&#8221; $SMTPSRV $HTMLReport</p>
<p>I&#8217;m sure Nitro has a better way &#8230; I&#8217;m just a sys admin, not a programmer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnim van Lieshout</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-826</link>
		<dc:creator>Arnim van Lieshout</dc:creator>
		<pubDate>Fri, 23 Jul 2010 13:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-826</guid>
		<description>Hi Yattong,

You could use:
Get-VM &#124; Select-Object Name,@{N=&quot;Size&quot;; E={Get-VmSize($_)/1GB}}</description>
		<content:encoded><![CDATA[<p>Hi Yattong,</p>
<p>You could use:<br />
Get-VM | Select-Object Name,@{N=&#8221;Size&#8221;; E={Get-VmSize($_)/1GB}}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yattong</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-816</link>
		<dc:creator>yattong</dc:creator>
		<pubDate>Tue, 20 Jul 2010 15:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-816</guid>
		<description>hey,

I have been trying to run this against all vm&#039;s, not just one but its seems to just give me a total of all vm&#039;s rather than individual totals.

any ideas?</description>
		<content:encoded><![CDATA[<p>hey,</p>
<p>I have been trying to run this against all vm&#8217;s, not just one but its seems to just give me a total of all vm&#8217;s rather than individual totals.</p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiTRo</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-367</link>
		<dc:creator>NiTRo</dc:creator>
		<pubDate>Sun, 15 Nov 2009 19:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-367</guid>
		<description>@Trent : i posted the script you need if it may help you : http://www.hypervisor.fr/?p=1379</description>
		<content:encoded><![CDATA[<p>@Trent : i posted the script you need if it may help you : <a href="http://www.hypervisor.fr/?p=1379" rel="nofollow">http://www.hypervisor.fr/?p=1379</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trent</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-351</link>
		<dc:creator>Trent</dc:creator>
		<pubDate>Tue, 27 Oct 2009 21:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-351</guid>
		<description>Thanks for the info ... I was poking in the SDK reference guide to try and find usage on HostDatastoreBrowserSearchSpec for my Snapshot report script. I ended up just modifying yours because you get more info than needed which I might use later.

My modified script just pulls &quot;delta.vmdk&quot; and the vmsn file, then adds them up and divides by 1mb.

I will give you credit if/when I pass mine along to my friends who were also looking for a snapshot size feature!

trentwtaylor at gmail if you want it.</description>
		<content:encoded><![CDATA[<p>Thanks for the info &#8230; I was poking in the SDK reference guide to try and find usage on HostDatastoreBrowserSearchSpec for my Snapshot report script. I ended up just modifying yours because you get more info than needed which I might use later.</p>
<p>My modified script just pulls &#8220;delta.vmdk&#8221; and the vmsn file, then adds them up and divides by 1mb.</p>
<p>I will give you credit if/when I pass mine along to my friends who were also looking for a snapshot size feature!</p>
<p>trentwtaylor at gmail if you want it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arnim van Lieshout</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-284</link>
		<dc:creator>Arnim van Lieshout</dc:creator>
		<pubDate>Tue, 18 Aug 2009 21:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-284</guid>
		<description>Thank you for sharing this NiTRo.
As soon as I have my vSphere4 test rig in place I&#039;ll check out your modifications.

Arnim</description>
		<content:encoded><![CDATA[<p>Thank you for sharing this NiTRo.<br />
As soon as I have my vSphere4 test rig in place I&#8217;ll check out your modifications.</p>
<p>Arnim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NiTRo</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-280</link>
		<dc:creator>NiTRo</dc:creator>
		<pubDate>Tue, 18 Aug 2009 17:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-280</guid>
		<description>Hi Arnim, i made some changes to make it work on vCenter 4.0 : http://www.hypervizor.fr/?p=1034
Thanks a lot for this script !</description>
		<content:encoded><![CDATA[<p>Hi Arnim, i made some changes to make it work on vCenter 4.0 : <a href="http://www.hypervizor.fr/?p=1034" rel="nofollow">http://www.hypervizor.fr/?p=1034</a><br />
Thanks a lot for this script !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quelle taille (totale) fait ma VM ? - Hypervizor.fr</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-279</link>
		<dc:creator>Quelle taille (totale) fait ma VM ? - Hypervizor.fr</dc:creator>
		<pubDate>Tue, 18 Aug 2009 17:46:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-279</guid>
		<description>[...] En cherchant un moyen élégant de remonter dans rapport la taille occupée par les différents snapshots d&#8217;une VM, nous sommes tombés sur un script powershell récemment posté par Arnim van Lieshout : How big is my VM? [...]</description>
		<content:encoded><![CDATA[<p>[...] En cherchant un moyen élégant de remonter dans rapport la taille occupée par les différents snapshots d&#8217;une VM, nous sommes tombés sur un script powershell récemment posté par Arnim van Lieshout : How big is my VM? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Top 5 Planet V12n blog posts week 31 &#124; News, Articles and Analysis about Virtualization</title>
		<link>http://www.van-lieshout.com/2009/07/how-big-is-my-vm/comment-page-1/#comment-228</link>
		<dc:creator>Top 5 Planet V12n blog posts week 31 &#124; News, Articles and Analysis about Virtualization</dc:creator>
		<pubDate>Sun, 02 Aug 2009 11:59:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.van-lieshout.com/?p=522#comment-228</guid>
		<description>[...] van Lieshout - How big is my VM?To make things more complicated, these files can be stored on different datastores. So if you want [...]</description>
		<content:encoded><![CDATA[<p>[...] van Lieshout &#8211; How big is my VM?To make things more complicated, these files can be stored on different datastores. So if you want [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

