Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 197835

Re: list vms and portgroups

$
0
0

ok did some digging and came up with this. pretty clean but works ....

 

 

get-cluster "xxxxx" | get-vm | Get-NetworkAdapter | Select-Object @{N="VM";E={$_.Parent.Name}},@{N="Network";E={$_.NetworkName}} | where {$_.Network -eq "dvPGName"}

 

 

Also not really understanding what $_.Parent.NAme is

 

please help me improve it

 

thanks


Viewing all articles
Browse latest Browse all 197835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>