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

Re: Cleaning up output from calculated property

$
0
0

Use the ExpandProperty parameter on the Select-Object cmdlet, that way you only get the value.

@{N="vmk1 IP Address";E={Get-VMHostNetworkAdapter -vmhost $_ -Name vmk1 | select -ExpandProperty "IP"}}

Viewing all articles
Browse latest Browse all 219257

Trending Articles



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