Reputation: 1510
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?
Upvotes: 6
Views: 21486
Reputation: 125
Depending of your use case you could also get the VMs if you know the cluster:
Get-Cluster | Get-VM
Upvotes: 0