8 Replies Latest reply on Feb 12, 2020 12:31 AM by sivagndl

    Get list of VDPortGroup for each datacenter and cluster

    COS Master

      I need to get a list of VDPortGroups from each datacenter and eac cluster in my vCenter server called "Junkyard".

      I need the output to be formatted in a table like below....





      That's just a sample, there actually a hundred more...…..lol



      Now, I apparently have an old version of PowerCLI, see below.....

      Every time I try and upgrade, PowerCLI prompts for authentication and I can't have that. Will try and fix later.


      Get-Module -Name VMware* -ListAvailable


          Directory: C:\Program Files (x86)\VMware\Infrastructure\PowerCLI\Modules

      ModuleType Version    Name                                ExportedCommands
      ---------- -------    ----                                ----------------
      Binary    VMware.DeployAutomation
      Binary    VMware.ImageBuilder
      Binary VMware.VimAutomation.Cis.Core
      Binary VMware.VimAutomation.Cloud
      Manifest VMware.VimAutomation.Common
      Binary VMware.VimAutomation.Core           HookGetViewAutoCompleter
      Binary    VMware.VimAutomation.HA
      Binary VMware.VimAutomation.HorizonView
      Binary VMware.VimAutomation.License
      Binary VMware.VimAutomation.PCloud
      Manifest VMware.VimAutomation.Sdk            Get-PSVersion
      Binary VMware.VimAutomation.Storage
      Binary VMware.VimAutomation.Vds
      Binary VMware.VimAutomation.vROps
      Binary    VMware.VumAutomation