Disable IPv6 Connections: Turning It Off in Windows

How to Disable IPv6 on All Network Connections Disabling IPv6 across every network adapter is a common troubleshooting step or hardening measure in environments that don’t route IPv6, and PowerShell makes it easy to apply to every connection at once rather than clicking through each adapter’s properties individually. The script: Get-NetAdapter | ForEach-Object { Disable-NetAdapterBinding […]

How To Disable Ipv6 On All Network Connections

How to Disable IPv6 on All Network Connections

Disabling IPv6 across every network adapter is a common troubleshooting step or hardening measure in environments that don’t route IPv6, and PowerShell makes it easy to apply to every connection at once rather than clicking through each adapter’s properties individually. The script:
Get-NetAdapter | ForEach-Object { Disable-NetAdapterBinding -InterfaceAlias $_.Name -ComponentID ms_tcpip6 }
In practice, the simplest reliable one-liner is:
Get-NetAdapter | Disable-NetAdapterBinding -ComponentID ms_tcpip6
This disables the IPv6 binding on every adapter Windows currently sees, equivalent to unticking “Internet Protocol Version 6 (TCP/IPv6)” in each adapter’s properties dialog, but applied in one pass. To re-enable it later, swap Disable-NetAdapterBinding for Enable-NetAdapterBinding with the same parameters. Worth noting: fully disabling IPv6 (rather than just deprioritising it) is a step Microsoft generally advises against unless you have a specific compatibility reason, since some Windows components assume IPv6 is at least present. If your goal is simply to prefer IPv4 without breaking anything that expects IPv6 to exist, adjusting binding order via the registry’s IPv6 prefix policies is the less disruptive alternative.

Still Current Guidance in 2026 (Updated for 2026)

Microsoft’s own troubleshooting documentation (last updated Feb 2026) hasn’t changed its position here: it still explicitly states it doesn’t recommend disabling IPv6 or its components, since some Windows components may not function correctly without it, and continues to recommend the “Prefer IPv4 over IPv6” prefix policy as the safer alternative when the real goal is just favouring IPv4 traffic rather than removing IPv6 entirely. If you do need to fully disable it, the Disable-NetAdapterBinding -ComponentID ms_tcpip6 commands above remain the current, Microsoft-documented way to do it on Windows 10 and Windows 11 alike.
🛠️

Gear We Recommend

Firewall rules are only half the story. Here’s the networking hardware we recommend for a properly segmented setup.

Browse our Networking Equipment picks on Amazon

As an Amazon Associate, TechyGeeksHome earns from qualifying purchases.


Discover more from TechyGeeksHome

Subscribe to get the latest posts sent to your email.

Andrew Armstrong

Andrew Armstrong is a UK-based IT professional with 26+ years of hands-on experience in Windows, Windows Server, SCCM/ConfigMgr, Active Directory, PowerShell, and enterprise infrastructure.

He founded TechyGeeksHome in 2010 and has published over 1,500 practical guides covering real-world IT problems and solutions. When not solving IT problems,

Andrew develops free Windows utilities including Ultimate Settings Panel, which has been downloaded over 850,000 times.