View the same statistics as the "Local Connection" Gui Status from the command line

The first poster is here.

I am trying to get the current bandwidth usage for Windows Server 2008R2 through the command line. I tried netstat -e, but this gives me very different digits than the actual bytes that were transferred.

The statistics that I would like to see are the same indicators that appear when you click "Local Area Connection" (or whatever is indicated in your active Internet connection) in the "Network and General Control Center" section access "in the control panel. In the appeared gui window there is a lower section" Activity ". Sent sent and received data is what I am trying to get through msdos or powershell.

Thanks to everyone who can lend a hand.

+3
source share
1 answer

Try to use get-Counter.

Below is a line that uses my network card:

get-counter "\\jpbhpp2\interface rรฉseau(intel[r] 82567lm gigabit network connection)\total des octets/s"

, , .

, :

get-counter

get-counter Get-counter -ListSet *
0

All Articles