Guv
Enthusiast
Enthusiast

List VM's with RDM's in a Vmware Cluster

Is there a powershell script which we can tell us in a vmware cluster if there are VM's with RDM's, and displays the name of the VM at least.

0 Kudos
1 Reply
LucD
Leadership
Leadership

Try something like this

Get-Cluster -Name MyCluster |

Get-VM |

Where {Get-HardDisk -VM $_ -DiskType RawPhysical,RawVirtual} |

Select Name


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos