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

Re: Output Table with VM Name and Network Label

$
0
0

Try it like this

 

Get-VMHostesx1.local.test|Get-VM|
Select
Name,@{N="NetworkName";E={[String]::Join(',',($_|Get-NetworkAdapter|Select-ExpandPropertyNetworkName))}}

 

I used the Join function, because a VM can have more than 1 NIC


Viewing all articles
Browse latest Browse all 244595

Trending Articles