-
Notifications
You must be signed in to change notification settings - Fork 58
/
Disable IPv6.ps1
27 lines (22 loc) · 1.14 KB
/
Disable IPv6.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<#Author : Dean Cefola
# Creation Date: 01-08-2014
# Usage : Disable IPv6
#
#***********************************************************************************************
# Date Version Changes
#------------------------------------------------------------------------
# 01-08-2014 1.0 Intial Version
#
#************************************************************************************************
#>
#------------------------------Disable IPv6------------------------------#
Netsh int teredo set state disabled
Netsh int isatap set state disabled
Netsh int 6to4 set state disabled undoonstop=disabled
Write-Host -ForegroundColor Green "IPv6 Disabled on"
Write-Host -ForegroundColor Yellow -BackgroundColor Black $env:COMPUTERNAME
#------------------------------Change Registry Settings------------------------------#
Push-Location
Set-Location HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters
New-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters -Name "DisabledComponents" -PropertyType "DWord" -Value 4294967295
Pop-Location