Skip to content

Instantly share code, notes, and snippets.

@CandyMi
Created October 11, 2024 10:28
Show Gist options
  • Save CandyMi/5c9801f4a1919c8894bd2a3782387715 to your computer and use it in GitHub Desktop.
Save CandyMi/5c9801f4a1919c8894bd2a3782387715 to your computer and use it in GitHub Desktop.
Windows 11 开启 BBR 的 PowerShell 脚本
# 变更为BBR2
netsh int tcp set supplemental Template=Internet CongestionProvider=bbr
netsh int tcp set supplemental Template=Datacenter CongestionProvider=bbr
netsh int tcp set supplemental Template=Compat CongestionProvider=bbr
netsh int tcp set supplemental Template=DatacenterCustom CongestionProvider=bbr
netsh int tcp set supplemental Template=InternetCustom CongestionProvider=bbr
# 恢复为CUBIC
# netsh int tcp set supplemental Template=Internet CongestionProvider=cubic
# netsh int tcp set supplemental Template=Datacenter CongestionProvider=cubic
# netsh int tcp set supplemental Template=Compat CongestionProvider=newreno
# netsh int tcp set supplemental Template=DatacenterCustom CongestionProvider=cubic
# netsh int tcp set supplemental Template=InternetCustom CongestionProvider=cubic
Get-NetTCPSetting | Select SettingName, CongestionProvider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment