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

Output Table with VM Name and Network Label

$
0
0

All,

  I am just tinkering trying to get the hang of getting data that I need and I am trying to create an output that would give me VM name and the Network label.

 

This is what i have so far:

Get-VMHost hostname | get-vm |

     Select Name, @{N="NetworkName";E={$_ | Get-NetworkAdapter}}

 

Problem is I am getting the first column of get-networkadapter.

 

Name NetworkName

---- -----------

Adminserver Network adapter 1

 

I'd like to get the network label, but notsure how.  I tried this but it doesn't work. Any help friends?

Get-VMHost hostname | get-vm |

 

     Select Name, @{N="NetworkName";E={$_ | (Get-NetworkAdapter).NetworkName}}

 

 

 

 

 

 

 

 

 


Viewing all articles
Browse latest Browse all 244595

Trending Articles



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