2 Replies Latest reply on Sep 19, 2017 3:09 AM by Sudarshan_Bharti

    PowerCLI: Network Adapter Information

    Sudarshan_Bharti Novice

      Hello All

       

      I am running a script to extract VM Information including vCPU, Memory, OS, Disks, Partition Size, RDM, IP Address, vCenter, VMX, VMDK etc. For PortGroup name, I am using below method

       

      $vm = Get-VM myvm1.domain.com

      $vm | Get-NetworkAdapter | Select -ExpandProperty NetworkName

       

      which is increasing my script output time for an vCenter Server managing 2000+ VMs. I could extract everything else with Get-VM and would like to find out if there any option/way to find out PortGroup name with Get-VM too.

       

      Please suggest.