Disable ipv6

Från MM2 Intern WiKI
Hoppa till navigering Hoppa till sök

# Method 1: Using PowerShell

#Check Current IPv6 Status Run the following command to list all network adapters and their IPv6 bindings:

Get-NetAdapterBinding -ComponentID "ms_tcpip6"

#Disable IPv6 for a Specific Adapter Use the following command, replacing "Ethernet" with your adapter name:

Disable-NetAdapterBinding -Name "Ethernet" -ComponentID "ms_tcpip6"

#Verify Changes Confirm that IPv6 is disabled by running:

Get-NetAdapterBinding -ComponentID "ms_tcpip6"

<#

Method 2: Modify the Registry

This method disables IPv6 system-wide.

Open PowerShell as Administrator Ensure you have administrative privileges.

Set Registry Key to Disable IPv6 Run the following command to disable all IPv6 components:

#>

Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" -Name "DisabledComponents" -Value 0xFF

<#

Restart the Server Reboot the server for the changes to take effect.

Verify Changes Check if IPv6 is disabled by running:

Get-NetIPConfiguration

#>

Get-NetIPConfiguration