Script to disable IPv6 Components
While most documentation you may come across states to not disable IPv6 components on Windows 7 or Windows 2008 servers, you may have instances where disabling IPv6 components may become necessary.
If you have to disable IPv6 components, the procedure is pretty straight forward and is documented in KB929852.
I happened to be working with a customer who had to do the same and working with quite a few servers, it can easily go from being a simple task to a big undertaking from time perspective. Naturally, there had to be a script for that!
You can download the script here - Disable-IPv6Components.ps1.
Comments
Anonymous
January 01, 2003
@toepch, removing checkboxes from LAN adapter are not required as per KB document. While it can be debated, I chose to leave it unchanged as per KB document. IPv6 should still be disabled and server shouldn't communicate over IPv6 if registry changes are in place as described by the article. You can change the script to start transcript and send it via email to desired email address. This will allow you to track script runs, however, they can easily be bypassed by malicious user of the script. Only certain way of tracking changes to registry is by using auditing at OS level.Anonymous
January 01, 2003
Thank's for the script - only one question left... why are the checkboxes in the properties of the lan-adapter (IPv6, and both LinkLayer...) still selected? is this correct? How do another person know if the script was once started or not?Anonymous
January 01, 2003
Thank's for your answer!