VMware Cloud Community
Mahiee
Enthusiast
Enthusiast

VM is with VMDK or RDM!

Dear All[,

I would like to export all the VMs from inventory with the details which are running with VMDK and which are with RDM.

Can I have a script which will help me to achieve this target.

Thanks in advance.

Rachis

Tags (2)
Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Something like this?

Get-VM | Get-HardDisk |

Select @{N='VM';E={$_.Parent.Name}},Name,@{N='HDType';E={$_.DiskType}}

   


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

Reply
0 Kudos