Skip to content

Commit 3a72116

Browse files
committed
Added disable IPv6
1 parent b3aff21 commit 3a72116

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

optimize.ps1

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,3 +188,16 @@ if ($userinput -eq 'y' -or !$userinput) {
188188
Set-ItemProperty -Path $tele.registry.Path[$i] -Name $tele.registry.Name[$i] -Value $tele.registry.Value[$i] -Type $tele.registry.Type[$i]
189189
}
190190
}
191+
192+
193+
if ($AcceptAllTweaks) {
194+
$userinput = 'y'
195+
} else {$userinput = Read-Host -Prompt "Do you want to disable IPv6? (Not Recommended Unless It's Causing Problems) (y/N)"}
196+
if ($userinput -eq 'y' -or !$userinput) {
197+
$IPv6 = Get-Content $configdir\disable_ipv6.json | ConvertFrom-Json
198+
199+
for ($i = 0; $i -lt $Registry.Count; $i++) {
200+
Set-ItemProperty -Path $IPv6.registry.Path[$i] -Name $IPv6.registry.Name[$i] -Value $IPv6.registry.Value[$i] -Type $IPv6.registry.Type[$i]
201+
}
202+
Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6
203+
}

0 commit comments

Comments
 (0)