Disable IPV6

Spread the words

Disable IPV6 

Sometimes you would like to disable IPV6 on the servers even Microsoft not recommends it.

Get the binding information for a network adapter first.

Use the

cmdlet Get-NetAdapterBinding


As you can see the component ID of IPv6 is ms_tcpip6. So use the Disable-NetAdapterBinding cmdlet as follow.

Disable-NetAdapterBinding –InterfaceAlias “Ethernet0” –ComponentID ms_tcpip6


The result will be



Gets the network adapter binding information first

Get-NetAdapterBinding –InterfaceAlias “Ethernet0”

Then disable the IPv6

Disable-NetAdapterBinding –InterfaceAlias “Ethernet0” –ComponentID ms_tcpip6

Take it easy 😉

3 Comments on "Disable IPV6"

  1. You could also do
    $nic = get-netadapter

    Disable-NetAdapterBinding –InterfaceAlias $nic.name –ComponentID ms_tcpip6

    • Olivier,

      Your 2nd line should be
      Disable-NetAdapterBinding –Name $nic.name –ComponentID ms_tcpip6

  2. Please refer to this Microsoft support article on how to disable IPv6 the right way.


Leave a comment

Your email address will not be published.