Anyone notice a behavior difference in these two examples? Is this a bug or expected behavior?
This returns nothing
$VMHost = Get-VMHost hostname
$VMHost.ExtensionData.Hardware.systeminfo.OtherIdentifyingInfo | where {$_.IdentifierType.Key -eq "servicetag"})
This returns the object I'm looking for:
$VMHost = Get-VMHost hostname | Get-View
$VMHost.Hardware.systeminfo.OtherIdentifyingInfo | where {$_.IdentifierType.Key -eq "servicetag"})
I have tried both examples. They have both a ')' too many at the end of line 2. After removing the ')' they both give the same result against a HP BL460C G7 ESXi 4.1U1 host.
Regards, Robert
I have tried both examples. They have both a ')' too many at the end of line 2. After removing the ')' they both give the same result against a HP BL460C G7 ESXi 4.1U1 host.
Regards, Robert
Nyargh! I just tried these again. My original lines didn't have the ")". Still weird, I seem to only see this issue from my desktop PC, don't see the issue running in my Mac's Windows VM. Thanks for confirming that I'm crazy. :smileylaugh: