May 262009
Getting the Service Console IP addresses of your ESX servers with vSphere PowerCLI (formerly known as the VI Toolkit for Powershell):
Get-VMHost | Select Name, @{N="ConsoleIP";E={(Get-VMHostNetwork).ConsoleNic | ForEach{$_.IP}}}
Related posts:

Correction: You are missing the $_ after …Network
This Works:
Get-VMHost | Select Name, @{N=”ConsoleIP”;E={(Get-VMHostNetwork $_).ConsoleNic | ForEach{$_.IP}}}
VirtualNic not ConsoleNic for me
Hi All,
I am born baby in Powershell scripting. Can any one give me a script to read all the VM`s configuration like (Mem,CPU,DISK, DISK Usage, Disk file Path and Current ESX that the VM powered on etc.) for all the VM`s in a datacenter.
Thanks
Take a look at http://www.thevesi.org if you need a quick, standard way of reporting.
Hugo