PowerCli one liner to get the number of VMs per datacenter
April 29, 2010 Leave a Comment
You have to have the snapin loaded and connected to your vcenter.
get-datacenter | sort name | %{$_.name; Get-vm -Location $_ | Measure-object| select Count}
Virtualization is the Future!!!
April 29, 2010 Leave a Comment
You have to have the snapin loaded and connected to your vcenter.
get-datacenter | sort name | %{$_.name; Get-vm -Location $_ | Measure-object| select Count}