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

List all IP addresses in new line

$
0
0

Hi,

 

Please help to get the list of all the IP Address in new or different lines

 

Get-VM db1 | Select @{N='VM Name';E={$_.Name}}, @{N="IP Address";E={[string]::Join(',',$_.guest.IPAddress)}}

 

Current Output

 

VM Name                                                                                             IP Address
-------                                                                                             ----------
db1                                                                                                 169.254.1.40,192.168.2.99

 

 

I would like to get output as below

 

VM Name                          IP Address
-------                                ----------
db1                                   169.254.1.40

db1                                   192.168.2.99

 

Please help!!!!


Viewing all articles
Browse latest Browse all 178776

Trending Articles



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