In the Windows task manager there is a handy network tab which shows the link speed and network utilization (in percentage of available bandwidth) for connected network adapters:
Is there a way to get this information through the command line?
command linenetwork-adapterwindows
Best Answer
There are a (large?) number of command line options that give information on network usage. This deals with that, and answers there have a significant overlap with the present OP. Many of them do not provide percentage bandwidth usage, as asked in the OP.
The option with Wireshark was given above.
typeperf
(Windows native) is also relevant, with a few options.typeperf -q "Network Interface"
lists all the objects. Then, usetypeperf "\Network Interface(*)\...
with the following options:Note that the formula is
((Total Bytes/Sec * 8)/current bandwidth) * 100
. Other useful options:You can use flag
-sc <samples>
(Specifies the number of samples to collect. The default is to collect data until CTRL+C is pressed), see official documentation.Flag
-o <filename>
(Specifies the path for the output file, or the SQL database. The default is STDOUT (written to the command window).) may also be useful.An interesting script, which may be customized to give various pieces of information and format it, is given here.