Home » KBArticles » SCRIPT: disable IPv6

SCRIPT: disable IPv6

REM Disables IPv6
‘vbscript
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = “.”
Set objReg=GetObject(“winmgmts:{impersonationLevel=impersonate}!\” & _
    strComputer & “rootdefault:StdRegProv”)

objReg.SetDwordValue HKEY_LOCAL_MACHINE,”SYSTEMCurrentControlSetServicesTcpip6Parameters”,”DisabledComponents”,255

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.