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.
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 disables various 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 congestion=none netsh int tcp set global ecncapability=disabled netsh int tcp set global timestamps=disabled netsh int ip set global taskoffload=disabled reg add HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters /v EnableTCPA /t REG_DWORD /d 0 /f reg add HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpip6Parameters /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_MACHINESYSTEMCurrentControlSetServicesTcpipParameters /v EnableTCPA >> c:post-disable.txt reg query HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpip6Parameters /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 ***
-> update 15 Sept 2010
Per SBS 2008 BPA, I see that the tool throws warnings when the autotuning, rss, taskoffload, and congestion are enabled (as they are by default).
I added the line for taskoffload in to the script above for your copy-and-paste pleasure!