This repository has been archived on 2025-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
Apex-Config/Windows Tweaks/Network/Disable-Autotuning.bat
2022-12-10 11:38:23 +03:00

19 lines
549 B
Batchfile

@echo off
setlocal ENABLEDELAYEDEXPANSION
:: CHECK FOR ADMIN PRIVILEGES
dism >nul 2>&1 || (echo This script must be Run as Administrator. && pause && exit /b 1)
:: DISABLE AUTOTUNING
netsh int tcp set global autotuninglevel=disabled
:: RESTART NETWORK ADAPTERS
for /f "tokens=3,*" %%i in ('netsh int show interface^|find "Connected"') do (
netsh int set interface name="%%j" admin="disabled" >nul 2>&1
netsh int set interface name="%%j" admin="enabled" >nul 2>&1
)
echo Network autotuning is now disabled.
pause
exit /b 0