How to Disable IPv6 on all Network Connections

powershell
powershell

Estimated reading time: 1 minutes

Depending on your environment, you may want to disable IPv6 on all networking connections, including wired and wireless connections.

To do this, you can use a simple PowerShell script:

$nic = Get-NetAdapterBinding | select Name
Foreach ($Name in $nic) { Disable-NetAdapterBinding –InterfaceAlias $nic.Name –ComponentID ms_tcpip6 }

Once you have run this script, you can go ahead and check the IPv6 settings on the target machine and you should see that it is now disabled.

Share this content:

Click to rate this post!
[Total: 1 Average: 5]
Avatar for Andrew Armstrong

About Andrew Armstrong

Founder of TechyGeeksHome and Head Editor for over 15 years! IT expert in multiple areas for over 26 years. Sharing experience and knowledge whenever possible! Making IT Happen.

View all posts by Andrew Armstrong

Leave a Reply

Your email address will not be published. Required fields are marked *