After some marathon googling I'm still stuck on a simple task. I can write a WMI query to retrieve a WMI class (in this case from HP's provided WBEM classes for ProLiant servers). In this case, I am trying to get the NIC Team type. The object returned contains the code. Looking into the associated MOF file, I can see that the values correspond to a ValueMap, but I can't figure out how to convert the integer I have with the string in the MOF. I have a feeling it's right under my nose, so could someone please show me?
$server = "SERVER1"
$wmiQuery = "SELECT * from HP_EthernetTeam"
$nicTeam = Get-WmiObject -Namespace "root\HPQ" -ComputerName $server -query "$wmiQuery"
Write-Host Current mode $nicTeam.TeamCurrentOperatingMode
Current mode 1011