查看 Windows 网卡的协议绑定列表

用 Get-NetAdapterBinding 查看网卡上绑定了哪些组件——IPv6、QoS 数据包计划程序、微软文件共享等。

Windows网络安全加固PowerShell低风险
运行 Get-NetAdapterBinding -Name "Ethernet" 即可列出该网卡绑定的所有协议及其启用状态。

01命令

命令
$ Get-NetAdapterBinding -Name "Ethernet" | Format-Table ComponentID,DisplayName,Enabled -AutoSize

02作用说明

它以可脚本化的形式展示网卡属性对话框里的那个勾选列表。配套的 Set-NetAdapterBinding -ComponentID ms_tcpip6 -Enabled $false 可以关闭单个绑定,这是在单个接口上禁用 IPv6 的正规方式,比改注册表干净。注重安全的运维常用它确认“Microsoft 网络的文件和打印机共享”(ms_server)没有绑定在公共网络或 VPN 接口上。

03风险

风险低风险
!注意: 禁用系统依赖的绑定(如 ms_tcpip)会导致该网卡失去网络连接,直到重新启用。

04撤销

✓无需撤销——该命令不会改变持久状态。

05来源

  • Get-NetAdapterBinding | Microsoft Learn
    Microsoft · vendor-doc · 2026-09-17
    依据: Microsoft documents Get-NetAdapterBinding as displaying the bindings (protocol/component registrations) of a network adapter, including whether each is enabled.

最后验证: 2026-09-17 · 分类: 网络

06相关方案