locked
Query Network Interface Counters RRS feed

  • Question

  • Hi All,

    i want to query network interface counters for checking network speed ( bytes out and bytes in ) , i am familiar in writing it down in c++ but i need a script to attach it to our custom app. Please provide me a sample script which can query network interface counters ( one defined in perfmon counters )

    If you any one has a sample script using please do help me

    Wednesday, November 18, 2009 3:01 PM

Answers

  • Hi All,

    i want to query network interface counters for checking network speed ( bytes out and bytes in ) , i am familiar in writing it down in c++ but i need a script to attach it to our custom app. Please provide me a sample script which can query network interface counters ( one defined in perfmon counters )

    If you any one has a sample script using please do help me

    You can use WMI to get almost any of the performance counters.

    To get a list of the key performance counters, try the following in PowerShell:


    Gwmi -list  | where {$_.name -match "perf"}

    Thomas Lee - doctordns@gmail.com
    • Marked as answer by IamMred Friday, January 8, 2010 11:44 PM
    Sunday, November 22, 2009 8:35 PM