Posted in
Virtual Machine Manager,
Windows Powershell,
Windows Server |
No Comment | 1,348 views | 30/09/2013 15:44
You can get VMs with vHBA on Hyper-V Cluster via this PowerShell script:
Get-Cluster | Get-ClusterNode | % {Get-VM -ComputerName $_.Name | Where {(($_ | Select -expand FibreChannelHostBusAdapters) -ne $Null)}} | ft Name, ComputerName, State |
Get-Cluster | Get-ClusterNode | % {Get-VM -ComputerName $_.Name | Where {(($_ | Select -expand FibreChannelHostBusAdapters) -ne $Null)}} | ft Name, ComputerName, State
You should run your PowerShell as Administrator.