List all Networks of all VMs on a Cluster

Prerequisites

  • installed and configured PowerCLI

  • existing connection to a vCenter

Command:

Get-VM | Get-NetworkAdapter | Select-Object -Property Parent, NetworkName | group-object -Property Parent | %{"  ", $_.Group} 

Output:

Parent                  NetworkName         
------                  -----------         
VM-Name-1               111-ADM-A1          
VM-Name-1               123-Sync-S4      
  
VM-Name-2               111-ADM-A1          
VM-Name-2               456-Mgmt_Srv-01      
  
VM-Name-3               111-ADM-A1          
VM-Name-3               321-Mgmt_Srv-05      
  
...

Last updated