Monday, March 3, 2014

How to Disable IPv6 in Windows Server 2012


There are two ways to do this. The first method uses the registry editor (regedit) to add the key and the second uses the command prompt. The command prompt method is a little more prone to error, but if you're comfortable using the command prompt, jump past the regedit method for a more direct and faster method.

Method 1: Regedit


Press the Windows Key and the R key at the same time to bring up the Run dialog box.

Type regedit in the Run dialog box and click OK
Use Registry Editor to expand the registry tree and browse to:

\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters

Right click on Parameters, expand New, and select DWORD (32-bit) Value

Enter DisabledComponents into the Name field

Double click on the new DisabledComponents value, enter ffffffff into the Value data dialog box, and click theOK button

Confirm the new registry value contains the required data.

After restarting the computer, run ipconfig at the command prompt to confirm that IPv6 is disabled.

ipconfig shows nothing but good old reliable IPv4.

Method 2: Command Prompt


Alternately, the required registry key (DisabledComponents) and data can be added to the registry with the Reg Add command.


Start a command prompt with administrative permissions and enter the following command:


reg add hklm\system\currentcontrolset\services\tcpip6\parameters /v DisabledComponents /t REG_DWORD /d 0xFFFFFFFF

If you entered the command correctly, after rebooting, ipconfig should show no IPv6 addresses or 6to4 adapters.

Regardless of what method you've used, if something goes wrong, use the registry editor to verify the new registry key is in the correct spot in the registry, the name is spelled exactly as it should be, and the data is the proper value.

Download this file with Screen Shoot


No comments:

Post a Comment