LLI Wiki — My Digital Knowledge Base

Disable IPv6 on network adapters with PowerShell

List and disable the IPv6 binding on Windows network adapters with the NetAdapter PowerShell cmdlets.

Windows exposes IPv6 on each network adapter as a binding named ms_tcpip6. The NetAdapter cmdlets can list these bindings and disable them.

List the IPv6 bindings

Get-NetAdapterBinding
Get-NetAdapterBinding | Where {$_.ComponentID -eq "ms_tcpip6"}
Get-NetAdapterBinding | Where {$_.ComponentID -eq "ms_tcpip6" -and $_.Enabled -eq "True"}

Disable the IPv6 binding

Disable the binding on every adapter where it is currently enabled:

Get-NetAdapterBinding | Where {$_.ComponentID -eq "ms_tcpip6" -and $_.Enabled -eq "True"} | Disable-NetAdapterBinding -ComponentID ms_tcpip6

Loop form, using each adapter's interface description:

Get-NetAdapterBinding | Where {$_.ComponentID -eq "ms_tcpip6" -and $_.Enabled -eq "True"} | % {Disable-NetAdapterBinding -InterfaceDescription $_.InterfaceDescription -ComponentID ms_tcpip6 }
Mastodon LLIMastodon SocialFosstodon