Posted in
Virtual Machine Manager,
Windows Powershell |
2 Comments | 6,053 views | 25/03/2014 16:50
You can get VM list in a VMHostCluster with following command:
1
| ((Get-SCVMHOST -VMHostCluster $Cluster).Name | foreach { Get-VM -VMHost $_ }).Name |
((Get-SCVMHOST -VMHostCluster $Cluster).Name | foreach { Get-VM -VMHost $_ }).Name
That will output all virtual machine names in that cluster.