Disable IPV6 using Powershell

Although you should be using the IPV6 for future, but System Administrator from time to time, may be required to disable IPV6 for various reasons.

Again, this can be done via GUI. But will require few GUI based steps and repeating the same task on 1000’s of machine will require dedicated person performing a task, which can be automated or done within seconds via Powershell.

Let perform this task – Disabling IPV6

First of all, we need to know the Interface details you are looking to disable it on. To do so, you can either run Get-NetAdapterBinding or Get-DNS client

Get-NetAdapterBinding
Get-DNSClient

After you have Interface Name, Alias or Index, you can then run powershell cmdlet “Disable-NetAdapterBinding” for that Interface and disable the required component.

Component ID for IPV6 is ms_tipconfig /cpip6

So, lets execute the following command to Disable IPV6 protocol on particular interface

Disable-NetAdapterBinding -Name “Ethernet0” -ComponentID “ms_tcpip6”

This will execute and disables the IPV6.

disable-ipv6

 

 

Please feel free to provide feedback. Enjoy Reading.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s