techthoughts2
6/8/2017 - 10:05 PM

Enable or disable network bindings (ie disable IPv4 or enable IPv6)

Enable or disable network bindings (ie disable IPv4 or enable IPv6)

<#
disable/enable network binding
DisplayName                                     ComponentID
----------- -----------
File and Printer Sharing for Microsoft Networks ms_server
Client for Microsoft Networks                   ms_msclient
Internet Protocol Version 4 (TCP/IPv4)          ms_tcpip
Microsoft Network Adapter Multiplexor Protocol  ms_implat
Internet Protocol Version 6 (TCP/IPv6)          ms_tcpip6
Link-Layer Topology Discovery Responder         ms_rspndr
Link-Layer Topology Discovery Mapper I/O Driver ms_lltdio
Hyper-V Extensible Virtual Switch               vms_pp
QoS Packet Scheduler                            ms_pacer
#>
#disable IPv6
Disable-NetAdapterBinding -Name "Name" -ComponentID ms_tcpip6
#enable IPv4
Enable-NetAdapterBinding -Name "Name" -ComponentID ms_tcpip