//列出ipv6

Get-NetAdapterBinding -componentID ms_tcpip6

//禁用IPv6

Disable-NetAdapterBinding -Name 10 -ComponentID ms_tcpip6 
Disable-NetAdapterBinding -Name 172 -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name 215 -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name 30 -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name 300 -ComponentID ms_tcpip6
Disable-NetAdapterBinding -Name 200 -ComponentID ms_tcpip6

//启用ipv6

Enable-NetAdapterBinding -Name "Ethernet" -ComponentID ms tcpip6

标签: none