I would like to report the default gateway of a host. Currently my script is:
$esxi = Get-VMHost -Name $name | Get-View
$esxi | Select-Object @{N="ESXi";E={$_.Name}},@{N="CPU";E={$_.Summary.Hardware.CpuModel}}
How can I add a third property of the default gateway to the output of this?
Thanks!