Last active
May 31, 2024 17:57
-
-
Save jakewdr/9209b46ced042bd21ff513dffdb70949 to your computer and use it in GitHub Desktop.
Nukes your a bunch of network cache and changes a bunch of settings
This file contains 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
@echo off | |
ipconfig /flushdns | |
ipconfig /release | |
ipconfig /renew | |
netsh int ip reset | |
netsh winsock reset | |
arp -d | |
/q/f/s %TEMP%\* | |
rd /s %systemdrive%\$Recycle.bin | |
netsh int tcp set global autotuninglevel=normal && netsh interface 6to4 set state disabled | |
netsh int tcp set global timestamps=disabled | |
netsh int tcp set heuristics disabled | |
netsh int tcp set global chimney=disabled | |
netsh int tcp set global ecncapability=disabled | |
netsh int tcp set global rsc=disabled | |
netsh int tcp set global nonsackrttresiliency=disabled | |
netsh int tcp set security mpp=disabled | |
netsh int tcp set security profiles=disabled | |
netsh int tcp set supplemental internet congestionprovider=ctcp | |
netsh int tcp set security mpp=disabled profiles=disabled | |
netsh int tcp set global dca=enabled | |
netsh int tcp set global netdma=enabled | |
netsh int ip set global icmpredirects=disabled | |
netsh int ip set global multicastforwarding=disabled | |
netsh int ip set global taskoffload=disabled | |
netsh int ip set global neighborcachelimit=4096 | |
netsh interface teredo set state disabled | |
netsh int isatap set state disable | |
powerShell Disable-NetAdapterLso -Name "*" | |
powershell "ForEach($adapter In Get-NetAdapter){Disable-NetAdapterPowerManagement -Name $adapter.Name -ErrorAction SilentlyContinue}" | |
powershell "ForEach($adapter In Get-NetAdapter){Disable-NetAdapterLso -Name $adapter.Name -ErrorAction SilentlyContinue}" | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "EnableICMPRedirect" /t REG_DWORD /d "1" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "EnablePMTUDiscovery" /t REG_DWORD /d "1" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "Tcp1323Opts" /t REG_DWORD /d "0" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpMaxDupAcks" /t REG_DWORD /d "2" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpTimedWaitDelay" /t REG_DWORD /d "32" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "GlobalMaxTcpWindowSize" /t REG_DWORD /d "8760" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "TcpWindowSize" /t REG_DWORD /d "8760" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "MaxConnectionsPerServer" /t REG_DWORD /d "0" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "MaxUserPort" /t REG_DWORD /d "65534" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "SackOpts" /t REG_DWORD /d "0" /f | |
Reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" /v "DefaultTTL" /t REG_DWORD /d "64" /f | |
sc config DiagTrack start=disabled | |
echo. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment