Created
June 8, 2017 22:05
-
-
Save techthoughts2/a0cff117c3243f671feb4680c5d87b38 to your computer and use it in GitHub Desktop.
Enable or disable network bindings (ie disable IPv4 or enable IPv6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment