IPv6 Internet Protocol enable or disable in Windows PowerShell
Internet Protocol version 6 (IPv6) is the new standard protocol for the network layer of the Internet. IPv6 is designed to solve many of the problems of the current version of the Internet Protocol (known as IPv4) in terms of address depletion, security, automatic configuration, extensibility, etc. IPv6 expands the capabilities of the Internet to enable new types of applications, including peer-to-peer and mobile applications.
IPv6 is enabled by default in Windows, but often IPv6 may need to be disabled. For example, when adding a PC to an Active Directory domain.
This tutorial shows how to enable or disable IPv6 for all or specific network adapters in Windows 8.1, Windows 10, and Windows 11.
To enable IPv6 for a specific network adapter in PowerShell
Copy paste the following command into PowerShell with elevated privileges to run the Command with the Enter key, which will output the current IPv6 status for all network adapters.
Get-NetAdapterBinding -ComponentID ms_tcpip6
The IPv6 status information of the network adapters might look something like the this.
Name DisplayName ComponentID Enabled ---- ----------- ----------- ------- Ethernet Internetprotokoll, Version 6 (TCP/IPv6) ms_tcpip6 True WLAN Internetprotokoll, Version 6 (TCP/IPv6) ms_tcpip6 True Bluetooth-Netzwerkverbindung Internetprotokoll, Version 6 (TCP/IPv6) ms_tcpip6 True OpenVPN Wintun Internetprotokoll, Version 6 (TCP/IPv6) ms_tcpip6 True
If the IPv6 protocol is to be deactivated for the WLAN adapter, the following command can be executed in PowerShell with elevated rights.
Enable-NetAdapterBinding name "WLAN" -ComponentID ms_tcpip6
How to disable IPv6 in PowerShell for all network adapters
Copy the following command and paste it into PowerShell with elevated privileges to run it with the Enter key.
Disable-NetAdapterBinding -Name "*" -ComponentID ms_tcpip6
IPv6 is disabled for all network adapters.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?