Posted in
Windows Powershell,
Windows Server |
No Comment | 2,012 views | 27/09/2013 15:50
You can get VMs with Passthrough disks and vHBA on Hyper-V Cluster via this PowerShell script:
Get-Cluster | Get-ClusterNode | % {Get-VM -ComputerName $_.Name | Where {(($_ | Select -Expand HardDrives).Path -like "Disk*") -or (($_ | Select -expand FibreChannelHostBusAdapters) -ne $Null)}} |
Get-Cluster | Get-ClusterNode | % {Get-VM -ComputerName $_.Name | Where {(($_ | Select -Expand HardDrives).Path -like "Disk*") -or (($_ | Select -expand FibreChannelHostBusAdapters) -ne $Null)}}
You should run your PowerShell as Administrator.