Network Administrator Knowledgebase

Jan 29 2009   9:53PM GMT

Disable IPv6 over all interfaces and prefer IPv4 to IPv6



Posted by: Michael Khanin
Disable IPv6

Personally, i still prefer use IPv4. In Windows Vista and Windows 2008, IPv6 is enabled by default. I’ve created a small script to disable IPv6. Here is a content of my DisableIPv6.bat:

@Echo off
@ECHO Windows Registry Editor Version 5.00 > %TEMP%\DisableIPv6.reg
@ECHO [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters] >> %TEMP%\DisableIPv6.reg
@ECHO “DisabledComponents”=dword:000000ff >> %TEMP%\DisableIPv6.reg
REGEDIT /S %TEMP%\DisableIPv6.reg

Comment on this Post

Leave a comment:

TessaLP  |   Aug 2, 2010  6:53 PM (GMT)

Thanks for the script. If you were interested, Brien Posey wrote an article on the [A href="http://searchenterprisewan.techtarget.com/tip/0,289483,sid200_gci1348329,00.html"]pros and cons of disabling IPv6 in Windows Vista[/A] on SearchEnterpriseWAN.com.