пятница, 22 февраля 2019 г.

Prefer IPv4 over IPv6

The easiest and the difficulties solution because you need to know which value to change.
The second line is for demo purposes only.

netsh interface ipv6 show prefixpolicies
netsh interface ipv6 add prefixpolicy 2001:470::/32 3 6

PowerShell method:
Get-ItemProperty -Path hklm:SYSTEM\CurrentControlSet\Services\tcpip6\Parameters -Name "DisabledComponents" | select -exp DisabledComponents Set-Itemproperty -Path hklm:SYSTEM\CurrentControlSet\Services\tcpip6\Parameters -Name "DisabledComponents" -value 32 –

This is a more generic solution which is less compliant and supported but always works.

  • Open RegEdit.
  • Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tcpip6\Parameters
  • Create DisabledComponents DWORD (32-bit value) registry value, set its value to 20 (Hexadecimal).
  • Reboot.
For fully disable IPv6 set the value to ffffffff (Hexadecimal).

Комментариев нет:

Отправить комментарий