?
Solved

Disable IPv6 Registry Script

Posted on 2011-09-16
7
Medium Priority
?
2,944 Views
Last Modified: 2012-06-27
Hey all!

Just wondering if anyone knew of a good registry script to fully disable IPv6 on Windows 2008 and 2008 R2.

I know you can add a DWORD(32-Bit) key into the registry to disable it but i was wondering if anyone had a script to do this?

Thanks,

Lyon
0
Comment
Question by:LyonJay
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 3

Author Comment

by:LyonJay
ID: 36548713
Basically convert this http://support.microsoft.com/kb/929852 into a script.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 36549043
Do you want deploy through  the gpo? You can export once you have done once on a server in the registry this will create a registry import file you can import in other servers
0
 
LVL 3

Author Comment

by:LyonJay
ID: 36549212
Nope just execute it on a server when I need to.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 36549243
You can go through the registry add these keys

http://www.windowsreference.com/networking/disable-ipv6-in-windows-server-20008-full-core-installation/

You can then right-click on the key and export this out. You can then import on any server after making the changes
0
 
LVL 3

Author Comment

by:LyonJay
ID: 36554086
Excellent!

Removed the bits I didn't need in the script and it worked beautifully!

You know which part in the registry I need to change so that it unticks the IPv6 box in Local Area Connection?

Thanks,

Lyon
0
 
LVL 15

Accepted Solution

by:
Russell_Venable earned 2000 total points
ID: 36554717
You will need to remove the binding GUID for the NIC you wish IPV6 to be turned off under HKLM\Software\CurrentControlSet\Services\TCpip6\Linkage\ from all 3 categories: Bind, Export, and Route.

You can find the GUID for each NIC Adapter in a friendly readable comparison by looking at thr corresponding listing at HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersiion\NetworkCards.

Each item under this key is numbered for a specific NIC installed. If you open one of the items and check it's subkeys, you will see a "Description" value and a "ServiceName".  Take the ServiceName value as your GUID and remove that value for the NIC card you want disabled for IPV6 in each of the 3 linkage subkeys listed.


A example script to read and write this value using vbscript would be

Dim Reg, Read, Write
Set Reg = WScript.CreateObject("WScript.Shell")
Read = Reg.RegRead("HKLM\SYSTEM\CurrentControlSet\Services\Tcpipv6\Parameters\DisabledComponents")
If Read <> 0 Then
'This disables IPV6 on all NIC adapters when "DisabledComponents" is missing
  '1 = On 0 = Off -1 or 0xFF = Disabled
  Write = Reg.RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Tcpipv6\Parameters\DisabledComponents", -1, "REG_DWORD")
Else
   WScript.Echo("Key already exists!")  
End If

Be sure to export the keys your about to change so you change them back by importing them from the saved *.Reg file if something isn't right. You should always have a way to restore back to the way it was since editing the registry is a critical task.
0
 
LVL 59

Expert Comment

by:Darius Ghassem
ID: 36559978
Unchecking IPv6 doesn't fully disable IPv6
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A small collection of useful tips and tricks for Windows 10 users that I decided to write as a result of recent questions that were asked and answered at Experts Exchange. Two short video tutorials included. Enjoy..
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question