Automation

 View Only
  • 1.  VM is with VMDK or RDM!

    Posted Feb 20, 2017 07:22 AM

    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



  • 2.  RE: VM is with VMDK or RDM!

    Posted Feb 20, 2017 07:33 AM

    Something like this?

    Get-VM | Get-HardDisk |

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