How to change the bytes in and bytes out value using netsh?

Ayushi Chaudhuri 190 Reputation points
2023-03-31T10:02:36.0233333+00:00

I was monitoring the network traffic of my machine using netsh command. When I have used netsh interface ip show subinterfaces command, it shows all the network interfaces along with other parameters, like "bytes in" and "bytes out". I want to change their value. Does anyone know any commands to do this?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,362 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. MotoX80 31,571 Reputation points
    2023-03-31T12:28:01.7333333+00:00

    Just browse a few web sites and the "bytes" values will change because they report on network activity.

    Run "netsh /?" and it will show the command syntax. Or review the documentation.

    https://learn.microsoft.com/en-us/windows-server/networking/technologies/netsh/netsh-contexts

    What exactly are you trying to accomplish.


  2. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,571 Reputation points Microsoft Vendor
    2023-04-03T02:42:54.5866667+00:00

    Hi,

    The command only displays some statistics for your network interfaces, and it provides no option to change the values.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  3. MotoX80 31,571 Reputation points
    2023-04-04T13:41:49.46+00:00

    I want to change the "bytes in" value so that I can simulate inbound traffic throttling.

    That's not how this works. Netsh is just displaying the statistics of the network traffic on your pc. You could try disabling your NIC, or rebooting, that would reset the statistics, but that won't simulate anything.

    Your question is what I refer to as an XY problem. Please read: https://xyproblem.info/ Especially the "What to do about it?" section.

    You keep asking about "Y". Nine questions in total!

    https://learn.microsoft.com/en-us/answers/questions/1195031/how-to-change-the-bytes-in-and-bytes-out-value-usi

    https://learn.microsoft.com/en-us/answers/questions/1194563/what-is-minbandwidthweightaction-in-netqos-policy

    https://learn.microsoft.com/en-us/answers/questions/1194136/how-to-give-random-bandwidth-value-using-windows-p

    https://learn.microsoft.com/en-us/answers/questions/1193395/how-to-install-smbbandwidthlimit-in-powershell

    https://learn.microsoft.com/en-us/answers/questions/1192461/how-to-assign-a-bandwidth-value-to-the-network-tra

    https://learn.microsoft.com/en-us/answers/questions/1189737/how-to-limit-bandwidth-to-a-certain-value-using-cm

    https://learn.microsoft.com/en-us/answers/questions/1194563/what-is-minbandwidthweightaction-in-netqos-policy

    https://learn.microsoft.com/en-us/answers/questions/1186772/how-to-limit-bandwidth-for-windows-using-command-l

    https://learn.microsoft.com/en-us/answers/questions/1186725/how-to-limit-bandwidth-of-inbound-traffic-using-co

    You still haven't told us what "X" is. Obviously its related to network bandwidth, but we have no background on the issue. You have accepted the answers on several of those questions where other users have tried to help you. Did those answers not work?

    Start at the beginning. Explain what the network problem is. Describe your environment. Explain why you want to limit bandwidth. Explain what you've tried and how you are testing. Explain what doesn't work.

    This forum gives you free access to a lot of users with a lot of experience. But we can't help you if you don't give us the big picture of what your problem is.