File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "registry" : [
3+ {
4+ "Path" : " HKLM:\\ SYSTEM\\ CurrentControlSet\\ Services\\ Tcpip6\\ Parameters" ,
5+ "Name" : " DisabledComponents" ,
6+ "Value" : " 255" ,
7+ "OriginalValue" : " 0" ,
8+ "Type" : " DWord"
9+ }
10+ ]
11+ }
Original file line number Diff line number Diff line change @@ -188,3 +188,21 @@ 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' ) {
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+ }
204+
205+ if ((Test-Path - Path $TempFolder ) -and ($configdir -eq $TempFolder )) {
206+ Write-Output " Cleaning up..."
207+ Remove-Item - Recurse - Force $TempFolder
208+ }
You can’t perform that action at this time.
0 commit comments