Guest User

Reset TCP options to default on Windows 10/11

a guest
Dec 3rd, 2025
67
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.86 KB | None | 0 0
  1. @echo off
  2. title Network Settings Notice
  3.  
  4. echo ==========================================
  5. echo   IMPORTANT NOTICE ABOUT "OPTIMIZATIONS"
  6. echo ==========================================
  7. echo.
  8. echo If you've used random "network optimizers", guides,
  9. echo or videos that promise better ping or FPS, they may
  10. echo have changed low-level network settings in risky ways.
  11. echo.
  12. echo This tool will push advanced TCP network tuning back
  13. echo toward the Windows defaults and undo some of those tweaks.
  14. echo.
  15. echo If you do NOT want that, just close this window now.
  16. echo Otherwise, press any key to continue.
  17. echo.
  18. pause >nul
  19.  
  20. ::--------------------------------------------
  21. :: Check for Administrator privileges
  22. ::--------------------------------------------
  23. net session >nul 2>&1
  24. if %errorlevel% neq 0 (
  25.     echo.
  26.     echo [ERROR] This needs to be run as Administrator.
  27.     echo Right-click the file and choose "Run as administrator".
  28.     echo.
  29.     pause
  30.     exit /b 1
  31. )
  32.  
  33. echo.
  34. echo Working on network settings...
  35. echo.
  36.  
  37. ::--------------------------------------------
  38. :: Reset TCP global parameters toward defaults
  39. ::--------------------------------------------
  40. netsh interface tcp set global ^
  41.   rss=default ^
  42.   autotuninglevel=normal ^
  43.   ecncapability=disabled ^
  44.   timestamps=default ^
  45.   initialrto=3000 ^
  46.   rsc=default ^
  47.   nonsackrttresiliency=default ^
  48.   maxsynretransmissions=2 ^
  49.   fastopen=default ^
  50.   fastopenfallback=default ^
  51.   hystart=default ^
  52.   prr=default ^
  53.   pacingprofile=default >nul 2>&1
  54.  
  55. ::--------------------------------------------
  56. :: Reset heuristics back to their default behavior
  57. ::--------------------------------------------
  58. netsh interface tcp set heuristics wsh=default forcews=default >nul 2>&1
  59.  
  60. echo.
  61. echo Network tuning has been adjusted.
  62. echo It is recommended to restart Windows so everything applies cleanly.
  63. echo.
  64. pause
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment