<?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: Helpful scripts of the day: HTML Overview of VMs and Datastores</title>
	<atom:link href="http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/</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: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-4200</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Mon, 04 May 2009 10:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-4200</guid>
		<description>&lt;a href=&quot;#comment-3720&quot; rel=&quot;nofollow&quot;&gt;@Steve &lt;/a&gt; 
Cool! Thank you for taking the time to comment on my website. I appreciate it.
You&#039;re welcome.
Hugo</description>
		<content:encoded><![CDATA[<p><a href="#comment-3720" rel="nofollow">@Steve </a><br />
Cool! Thank you for taking the time to comment on my website. I appreciate it.<br />
You&#8217;re welcome.<br />
Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-3720</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Thu, 16 Apr 2009 14:29:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-3720</guid>
		<description>Thank you so much!  I can&#039;t begin to tell you how significant your work has been in helping me to launch our vmware environment...</description>
		<content:encoded><![CDATA[<p>Thank you so much!  I can&#8217;t begin to tell you how significant your work has been in helping me to launch our <a href="http://www.vmware.com/" target='_blank'>vmware</a> environment&#8230;
<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: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-3438</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Wed, 01 Apr 2009 19:15:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-3438</guid>
		<description>&lt;a href=&quot;#comment-3434&quot; rel=&quot;nofollow&quot;&gt;@Steve &lt;/a&gt; 
Try replacing this:
$output = Read-Host &quot;Output path\file&quot;
With this:
$output = &#039;D:\scripts\output.html&#039; # Use your path here</description>
		<content:encoded><![CDATA[<p><a href="#comment-3434" rel="nofollow">@Steve </a><br />
Try replacing this:<br />
$output = Read-Host &#8220;Output path\file&#8221;<br />
With this:<br />
$output = &#8216;D:\scripts\output.html&#8217; # Use your path here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-3434</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Wed, 01 Apr 2009 15:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-3434</guid>
		<description>Hi Peeters,

Thank you very much for sharing this - One problem I am having is that when I run the script from the VI Toolkit window, I get an &quot;access denied&quot; for the destination output file directory.  Might you be able to tell me what I&#039;m doing wrong?

Thank you,

Steve</description>
		<content:encoded><![CDATA[<p>Hi Peeters,</p>
<p>Thank you very much for sharing this &#8211; One problem I am having is that when I run the script from the <a href="http://www.vmware.com/sdk/vitk_win/index.html" target='_blank'>VI Toolkit</a> window, I get an &#8220;access denied&#8221; for the destination output file directory.  Might you be able to tell me what I&#8217;m doing wrong?</p>
<p>Thank you,</p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-2548</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 17 Feb 2009 07:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-2548</guid>
		<description>&lt;a href=&quot;#comment-2540&quot; rel=&quot;nofollow&quot;&gt;@J. Le &lt;/a&gt; 
Just type the full path to the script file in your Powershell window.</description>
		<content:encoded><![CDATA[<p><a href="#comment-2540" rel="nofollow">@J. Le </a><br />
Just type the full path to the script file in your <a href="http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx" target='_blank'>Powershell</a> window.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Le</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-2540</link>
		<dc:creator>J. Le</dc:creator>
		<pubDate>Mon, 16 Feb 2009 23:55:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-2540</guid>
		<description>what is the syntax to run this script against a Virtual Center?</description>
		<content:encoded><![CDATA[<p>what is the syntax to run this script against a Virtual Center?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sTyLeR_1</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-328</link>
		<dc:creator>sTyLeR_1</dc:creator>
		<pubDate>Wed, 08 Oct 2008 13:51:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-328</guid>
		<description>hi,

for now i got:

$VC = Connect-VIServer (Read-Host &quot;VC Server&quot;)
$VMs = Get-VM &#124; Where {$_.PowerState -eq &quot;PoweredOn&quot;}
$myCol = @()
ForEach ($VM in $VMs)
{
	$myObj = &quot;&quot; &#124; Select-Object Name, OS, DisksGB, MemGB, NumCpu
	$myObj.Name = $VM.Name
	$myObj.OS = $VM.Guest.OSFullName
	$myObj.DisksGB = [Math]::Round((($VM.HardDisks &#124; Measure-Object -Property CapacityKB -Sum).Sum * 1KB / 1GB),2)
	$myObj.MemGB = [Math]::Round(($VM.MemoryMB * 1MB / 1GB),2)
	$myObj.NumCpu = $VM.numCpu
	For ($i=0;$i -lt 4;$i++){Add-Member -InputObject $myObj -MemberType NoteProperty -Name “IP$i” -Value $VM.Guest.IPAddress[$i]}
	$myCol += $myObj
}
$myCol &#124; Sort-Object Name &#124; Export-Csv &quot;VMs.csv&quot; -NoTypeInformation

Can we add the following:
Hostname
ToolsStatus
ToolsVersion

And maybe give a choice menu in the beginning:
1. Report vm&#039;s Powered On
2. Report vm&#039;s Powered Off
3. Report all vm&#039;s

:)</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>for now i got:</p>
<p>$VC = Connect-VIServer (Read-Host &#8220;VC Server&#8221;)<br />
$VMs = Get-VM | Where {$_.PowerState -eq &#8220;PoweredOn&#8221;}<br />
$myCol = @()<br />
ForEach ($VM in $VMs)<br />
{<br />
	$myObj = &#8220;&#8221; | Select-Object Name, OS, DisksGB, MemGB, NumCpu<br />
	$myObj.Name = $VM.Name<br />
	$myObj.OS = $VM.Guest.OSFullName<br />
	$myObj.DisksGB = [Math]::Round((($VM.HardDisks | Measure-Object -Property CapacityKB -Sum).Sum * 1KB / 1GB),2)<br />
	$myObj.MemGB = [Math]::Round(($VM.MemoryMB * 1MB / 1GB),2)<br />
	$myObj.NumCpu = $VM.numCpu<br />
	For ($i=0;$i -lt 4;$i++){Add-Member -InputObject $myObj -MemberType NoteProperty -Name “IP$i” -Value $VM.Guest.IPAddress[$i]}<br />
	$myCol += $myObj<br />
}<br />
$myCol | Sort-Object Name | Export-Csv &#8220;VMs.csv&#8221; -NoTypeInformation</p>
<p>Can we add the following:<br />
Hostname<br />
ToolsStatus<br />
ToolsVersion</p>
<p>And maybe give a choice menu in the beginning:<br />
1. Report vm&#8217;s Powered On<br />
2. Report vm&#8217;s Powered Off<br />
3. Report all vm&#8217;s</p>
<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-161</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Thu, 28 Aug 2008 10:03:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-161</guid>
		<description>Great! 
It works!!! THX for your help!

Have a nice day!</description>
		<content:encoded><![CDATA[<p>Great!<br />
It works!!! THX for your help!</p>
<p>Have a nice day!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-159</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 28 Aug 2008 08:58:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-159</guid>
		<description>Matthias, see my corrections in other comments. Put the code from comment 9 in the script before $myCol+=$myObj

Hugo</description>
		<content:encoded><![CDATA[<p>Matthias, see my corrections in other comments. Put the code from comment 9 in the script before $myCol+=$myObj</p>
<p>Hugo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthias</title>
		<link>http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/comment-page-1/#comment-158</link>
		<dc:creator>Matthias</dc:creator>
		<pubDate>Thu, 28 Aug 2008 08:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peetersonline.nl/index.php/vmware/helpful-scripts-of-the-day-html-overview-of-vms-and-datastores/#comment-158</guid>
		<description>Hugo,
Yes that&#039;s working! Good Job ! THX for your help! Any prefered position for *FOR* routine? So far it works, but I get only one IP Adress :-( 
Matthias
BTW: it&#039;s called ==&gt; InputObject</description>
		<content:encoded><![CDATA[<p>Hugo,<br />
Yes that&#8217;s working! Good Job ! THX for your help! Any prefered position for *FOR* routine? So far it works, but I get only one IP Adress :-(<br />
Matthias<br />
BTW: it&#8217;s called ==&gt; InputObject</p>
]]></content:encoded>
	</item>
</channel>
</rss>

