Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

List all IP addresses

$
0
0

I am trying to get all IP addresses on a vm and the associated portgroup.

$vm.Guest.IPAddress

 

I have the Vlan

$vmvlan = Get-VirtualPortgroup -VM $_.Name | %{$_.VlanId}

 

Now if there are more than 1 Vlan I can get it like this

$vmvlan[0]

$vmvlan[1]

 

Does anyone know how can I do the same for the IP addresses?


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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