Re: Network send and receive total packet counts

Tech-Archive recommends: Speed Up your PC by fixing your registry



It might be taking a little long because you're connecting to two
different namespaces (root/cimv2 and root/WMI) and also because you're
going through almost every Win32_NetworkAdapter. If you really just
want it to execute quickly, try removing the outer for loop ("select *
from Win32_NetworkAdapter where AdapterType = 'Ethernet 802.3'") and
query root/WMI for all of the MSNdis_TranmitsOk instances. I'm not
positive but you might end up with basically the same information..

.