Skip to main content
Jorge Bernhardt Jorge Bernhardt
  1. Posts/

How to disable IPv6 on network adapter using PowerShell

·176 words·1 min· 100 views · 5 likes ·
Disable-NetAdapterBinding Get-NetAdapter Get-NetAdapterBinding Microsoft

IPv6 is enabled by default in Windows, but sometimes you have a reason you need to disable IPv6. In this post, I want to show you how to do it using PowerShell. The cmdlet that we use is: Disable-NetAdapterBinding

Disable-NetAdapterBinding
To disable the ipv6 with PowerShell, use the Disable-NetAdapterBinding cmdlet with the following syntax:

Disable-NetAdapterBinding `
    -Name <String[]> `
    -ComponentID <String[]>

The Get-NetAdapter cmdlet gets the basic network adapter properties.

Get-NetAdapter

Get-NetAdapterBinding `
    -Name Ethernet

Get-NetAdapterBinding `
    -Name Ethernet `
    -ComponentID ms_tcpip6

With the Get-NetAdapterBinding cmdlet, we obtain the list of all components and protocols associated with the network adapter. The “Enabled” column shows us if the component is enabled.

Get-NetAdapterBinding
Using the cmdlet Disable-netadapterBinding with the -ComponentID parameter, we disable the IPv6. Then verify it with the Get-NetAdapterBinding cmdlet. Run the PowerShell console as administrator, and then type:

Disable-NetAdapterBinding `
    -Name Wi-Fi `
    -ComponentID ms_tcpip6
Get-NetAdapterBinding `
    -Name Ethernet `
    -ComponentID ms_tcpip6

Disable-NetAdapterBinding

Thanks for reading my post. I hope you find it useful.

If you want to know more about the Disable-NetAdapterBinding cmdlet, check out this link.