I found a definition of network connection speed and now I'm trying to map data from Win32_PerfRawData_Tcpip_NetworkInterface to Win32_NetworkAdapter (or Win32_NetworkAdapterConfiguration ).
In the Win32_PerfRawData_Tcpip_NetworkInterface class Win32_PerfRawData_Tcpip_NetworkInterface I do not see any index or unique key that I can use to refer to Win32_NetworkAdapterConfiguration or Win32_NetworkAdapter. I tried to use the Win32_NetworkAdapter. I tried to use the Name in Win32_PerfRawData_Tcpip_NetworkInterface and Win32_NetworkAdapter`, but still they look different.
eg.
Name: Intel (R) PRO / 1000 PL Network Connection
against
Name: Intel [R] PRO_1000 PL Network Connection
Any clues?
Thanks in advance,
Milde
===
Perhaps this piece of code will help you help me :)
# I got the DeviceID of a NIC and use it to get the "NetConnection ID": $objWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\root\\CIMV2") or die "Exit: WMI connection failed. \n"; $colNicSetts = $objWMIService->ExecQuery( "SELECT * FROM Win32_NetworkAdapter Where DeviceID = '$ID'", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); foreach my $objItem (in $colNicSetts){ $NetConnID = $objItem->{NetConnectionID}; }
windows perl wmi wmi-query
Milde
source share