Monday, 24 August 2020

Setting Bandwidth Controls on Windows devices via PowerShell

 You will need to use NetQos in Powershell for this but you can script it to make time profiles too by using Task Scheduler and the set command.

This is just a simple command that does it by destination IP but if you read the documentation you can do more with it.

  1. Run PowerShell as Admin
  2. Type "New-NetQosPolicy -Name "<NAME>" -IPDstPrefixMatchCondition "<IPADDRESS OR NETWORK ADDRESS>" -ThrottleRateActionBitsPerSecond 10MB
To make changes too the new policy use "Set-NetQosPolicy -Name "<NAME>"" with the option you wish to change.

No comments:

Post a Comment