Skip to content

Instantly share code, notes, and snippets.

@techthoughts2
Created June 8, 2017 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techthoughts2/a0cff117c3243f671feb4680c5d87b38 to your computer and use it in GitHub Desktop.
Save techthoughts2/a0cff117c3243f671feb4680c5d87b38 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment