2 Replies Latest reply on Aug 22, 2019 10:29 AM by fborges555

    Datastore and Vlan Information

    fborges555 Enthusiast

      Hi gurus

       

      Trying to run a PS that will give me datastore name and Vlan used by all VM in a cluster.

       

      I got this far and sort of work but not entirely

       

      Get-VM | Select Name,

      @{N = "Datastore"; E = {[string]::Join(',', (Get-Datastore -Id $_.DatastoreIdList ))}},

      @{N="Vlan" , E={[string]::join (',',(Get-VMNetworkAdapterVlan))}}

       

      its all screwy, any help appreciated

       

      Thanks