Find VMware Guests with Raw Physical Disks

February 27, 2016
By

VMware vSphere PowerCLI script to find all guests that have RDMs or raw physical disks.

$Servers=”vcenter1″

Connect-VIServer $Servers

$vms = get-cluster | get-vm

Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | out-gridview -PassThru | Export-Csv -Path .\vm-with-rdm.csv

Be Sociable, Share!

Tags:

Leave a Reply