List VMs and their cluster
11,550
Try that
Get-VM | Select-Object -Property Name,@{Name=’Cluster’;Expression={$_.VMHost.Parent}}
which I found here
Author by
rafvasq
Updated on June 30, 2022Comments
-
rafvasq almost 2 years
I'd like to be connected to multiple VIservers and list all the VMs + their respective clusters. Is this possible?
I've gotten as far as
Get-VM | Select Name,VMHost
. What property in place of VMHost would list the cluster?