How to give random bandwidth value using Windows Powershell?

Ayushi Chaudhuri 190 Reputation points
2023-03-29T06:20:06.4766667+00:00

I want to assign a random bandwidth value to my Windows machine using Powershell only. 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,512 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 44,221 Reputation points
    2023-03-29T10:50:39.8+00:00

    Hello there,

    You can throttle bandwidth with powershell.

    In the PowerShell window, type “New-NetQosPolicy -Name OneDriveLimits -AppPathNameMatchCondition OneDrive.exe -IPProtocolMatchCondition Both -NetworkProfile All -ThrottleRateActionBitsPerSecond 5000000“ without quotes. This will set the OneDrive.exe process to use a maximum of 5Mbps max from your whole bandwidth.

    You can use any value here like 1000000 for a maximum of 1Mbps.

    You can check whether the value is enforced in the system by typing “Get-NetQosPolicy -Name OneDriveLimits” in the PowerShell.

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer--

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.