I'm trying to use new-viproperty to extract ESX Host physical NIC port information.
There is a lot of info on how to do it using get-view and queryHint but I'm trying to use VIProperty.
I have built the property and can see the physical NIC's but can't seem to figure out how to get the port information. Can anyone help me with some progress?
New-VIProperty -Name PhysNic -ValueFromExtensionProperty config.network.pnic.device
get-vmhost 10.10.20.121 | select physnic
PhysNic
-------
{vmnic0, vmnic1, vmnic2, vmnic3...}