Worklet - Disable IPv6 (Windows)

Hi all,

We disable IPv6 in our environment and thought I’d share a quick worklet to disable this.

Evaulation:

exit 1

Remediation:

Get-NetAdapter | foreach { Disable-NetAdapterBinding -InterfaceAlias $_.Name -ComponentID ms_tcpip6 }

Write-Output "Disabled IPv6, running check to report new status"

Get-NetAdapterBinding -ComponentID ms_tcpip6 | select-object Enabled

We disabled IPv6 2-3 years back and ended up switching it back on. Created some unexpected and unwanted behaviour. It may and likely to have changed now but for anyone considering undertaking this be sure you know what it is you are doing other than simply disabling IPv6.

Old post in Spiceworks on the subject

1 Like