Created
July 12, 2022 21:03
-
-
Save TimLeitch/8662fb9d0e4f0b6268df00e08e2f3820 to your computer and use it in GitHub Desktop.
Dialpad QoS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| try { | |
| new-NetQosPolicy -Name "Dialpad RTP" -AppPathNameMatchCondition "Dialpad.exe" -IPProtocolMatchCondition UDP -IPSrcPortStartMatchCondition 16384 -IPSrcPortEndMatchCondition 32768 -DSCPAction 46 -NetworkProfile All | |
| } | |
| catch { | |
| {1: New-Item -Path "C:\IT" -Name "log.txt" -ItemType file -Value "Qos policy for port 16384 failed" <#Do this if a terminating exception happens#>} | |
| } | |
| try { | |
| new-NetQosPolicy -Name "Dialpad SIP" -AppPathNameMatchCondition "Dialpad.exe" -IPProtocolMatchCondition TCP -IPSrcPortStartMatchCondition 443 -IPSrcPortEndMatchCondition 443 -DSCPAction 26 -NetworkProfile All | |
| } | |
| catch { | |
| {1:New-Item -Path "C:\IT" -Name "log.txt" -ItemType file -Value "Qos policy for port 443 failed" <#Do this if a terminating exception happens#>} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment