I am trying to get all my hostname, serial numbers but the cisco host serial is located
{$_.summary.hardware.otheridentifyinginfo[0].identifiervalue}
while the dell is located{$_.summary.hardware.otheridentifyinginfo[1].identifiervalue}
how do I modify the below command to show both?
get-vmhost | get-view | select NAme, @{N="Vendor"; e={$_.summary.hardware.vendor}}, @{N=
"tag"; e={$_.summary.hardware.otheridentifyinginfo[0].identifiervalue}}