查看 Windows 网卡的协议绑定列表
用 Get-NetAdapterBinding 查看网卡上绑定了哪些组件——IPv6、QoS 数据包计划程序、微软文件共享等。
运行 Get-NetAdapterBinding -Name "Ethernet" 即可列出该网卡绑定的所有协议及其启用状态。
01命令
命令
$ Get-NetAdapterBinding -Name "Ethernet" | Format-Table ComponentID,DisplayName,Enabled -AutoSize02作用说明
它以可脚本化的形式展示网卡属性对话框里的那个勾选列表。配套的 Set-NetAdapterBinding -ComponentID ms_tcpip6 -Enabled $false 可以关闭单个绑定,这是在单个接口上禁用 IPv6 的正规方式,比改注册表干净。注重安全的运维常用它确认“Microsoft 网络的文件和打印机共享”(ms_server)没有绑定在公共网络或 VPN 接口上。
03风险
!注意: 禁用系统依赖的绑定(如 ms_tcpip)会导致该网卡失去网络连接,直到重新启用。
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Get-NetAdapterBinding | Microsoft Learn依据: Microsoft documents Get-NetAdapterBinding as displaying the bindings (protocol/component registrations) of a network adapter, including whether each is enabled.
最后验证: 2026-09-17 · 分类: 网络
06相关方案
在 Windows 用 Test-NetConnection 测试 TCP 端口连通性
Windows 自带的 PowerShell 一行命令,直接回答“这个网络的 5432/3389/443 端口通不通”——不再需要安装 telnet 客户端。
用 Get-NetTCPConnection 列出监听端口和占用进程
netstat 的 PowerShell 原生替代品:按状态、端口、进程过滤连接,输出可直接管道处理而不用解析文本。
在 PowerShell 中用 Resolve-DnsName 查询 DNS 记录
nslookup 的现代化、可脚本化替代:查询指定记录类型、指定 DNS 服务器,并把结果当对象处理。