Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 176561

Expanding Multiple Properties

$
0
0

Don't want to hijack the other thread so I'll open this new one.  I am gathering infromation on a Vswitch, but this is really just a general powershell question.

 

This code gives me the information but none of it is expanded out.  I tried to pipe it ot -expandpropety but I could only do one of them.  Is there a way to expand it all out?

get-vmhostvmhost | select @{Name="VirtualSwitch";E={$_ |Get-VirtualSwitch-standard| SelectName}},
@{Name
="PortGroups";E={$_ |Get-VirtualSwitch-standard| Get-VirtualPortGroup|Select Name,VlanId }},
@{Name
="VMNics";E={$_ |Get-VMHostNetworkAdapter-Physical |selectName }},
@{Name
="VMKernel";E={$_ |Get-VMHostNetworkAdapter-Vmkernel |selectName }}

Viewing all articles
Browse latest Browse all 176561

Trending Articles



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