search
Categories
Archive
Blogroll

Badges

Microsoft PowerShell MVP
MCSE
Sponsors

VirtualMetric
Cozumpark Bilisim Portali
Getting VMs with Passthrough disks and vHBA on Hyper-V Cluster with PowerShell
Posted in Windows Powershell, Windows Server | No Comment | 407 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)}}

You should run your PowerShell as Administrator.



Leave a Reply