#禁用所有网卡上的IPv6

Disable-NetAdapterBinding -Name * -ComponentID ms_tcpip6 -PassThru

 

#禁用某个网卡上的IPv6

Disable-NetAdapterBinding -Name LocalNetwork -ComponentID ms_tcpip6 -PassThru