IPv6 & company – sometimes cool…sometimes not

Posted by: Justin

I’ve been in an automating mood lately – old school, batch script style.

Here’s another one I cooked up to relieve you of tedious steps needed to turn off all advanced networking features in
Windows 2008/Vista/7.

As a bonus, I added before and after logging for fun.

As a side note, I was not able to cook up a way to dynamically enumerate network connections and uncheck the IPv6 protocol for you…this is still done manually. Perhaps with more time, I could fix this.

Regardless, this little batch file has saved me a bit of time already.

Again, use all but the asterisks for the batch file…

***

rem http://support.microsoft.com/kb/951037

rem Information about the TCP Chimney Offload, Receive Side Scaling, and Network Direct Memory Access features in Windows Server 2008

rem this batch file disable all three advanced settings….

echo ************************** >> c:\pre-disable.txt

echo %date% >> c:\pre-disable.txt

netsh int tcp show global >> c:\pre-disable.txt

netsh int tcp set global chimney=disabled

netsh int tcp set global rss=disabled

netsh int tcp set global autotuninglevel=disabled

netsh int tcp set global congestionprovider=none

netsh int tcp set global ecncapability=disabled

netsh int tcp set global timestamps=disabled

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v EnableTCPA /t REG_DWORD /d 0 /f

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents /t REG_DWORD /d 0xffffffff /f

echo ************************* >> c:\post-disable.txt

echo %date% >> c:\post-disable.txt

netsh int tcp show global >> c:\post-disable.txt

reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /v EnableTCPA >> c:\post-disable.txt

reg query HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters /v DisabledComponents >> c:\post-disable.txt

echo …RESTART REQUIRED… >> c:\post-disable.txt

echo …verify ipv6 is unchecked in all interfaces… >> c:\post-disable.txt

start c:\pre-disable.txt

start c:\post-disable.txt

pause

***

Comments are closed.