Hi guys,
Has anyone managed to Trim Value that is returned when running esxcli via powershell
For example
$myhost = get-vmhost -name esx01
$esxcli = Get-EsxCli -VMHost $myhost
$esxcli.system.coredump.network.get() | FT Enabled
I'm looking for Trim the Enabled ------- true - from the html output.
Any Idea?
Regards
Cliff
Not sure I get the question, but the output of the Get-EsxCli commands are objects.
Can't you just do ?
$myhost = get-vmhost -name esx01
$esxcli = Get-EsxCli -VMHost $myhost
$enabled = $esxcli.system.coredump.network.get() | Select -ExpandProperty Enabled
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Not sure I get the question, but the output of the Get-EsxCli commands are objects.
Can't you just do ?
$myhost = get-vmhost -name esx01
$esxcli = Get-EsxCli -VMHost $myhost
$enabled = $esxcli.system.coredump.network.get() | Select -ExpandProperty Enabled
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Luc,
-ExpandProperty
I wasn't aware of this option. That worked perfectly.
Thank you.
Regards
Cliff