Network utilization data (DataReceived/sec, DataSent/sec) using “wmic” differs from Task Manager information


This Content is from SuperUser. Question asked by Otis Lin

I want to get BytesReceivedPersec and BytesSentPersec from command.

I used this commnad.

wmic path Win32_PerfRawData_Tcpip_NetworkInterface get Name,BytesReceivedPersec,BytesSentPersec

And I got this response.

BytesReceivedPersec  BytesSentPersec  Name
0                    0                Intel[R] Ethernet Controller [3] I225-V
1397496619           51305183         Intel[R] Wi-Fi 6 AX201 160MHz

I saw this result will increase over time, So i try to keep the last value, and using (current – last)/1024 to Kbps.

result like this
in: "4.84473" , out: "1.67578"

But in the Task Manager like

enter image description here

Why the result has very big different?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from SuperUser , is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?