简体   繁体   English

如何检索网络适配器的绑定协议列表? (用PowerShell或任何语言)

[英]How do you retrieve a list of bound protocols to a network adapter? (in PowerShell or any language )

So in the windows UI, if you right click on a network adapter you see a properties page that has a section labeled "This connection uses the following items" and in this property page is a list of items with a check box beside them such as 因此,在Windows用户界面中,如果右键单击网络适配器,则会看到一个属性页面,其中包含标记为“此连接使用以下项目”的部分,并且在此属性页中是一个项目列表,旁边有一个复选框,例如

  • Client for Microsoft Networks Microsoft网络客户端
  • Qos Packet Scheduler Qos数据包调度程序
  • IP Protocol Version 6 IP协议版本6

etc 等等

I want to programatically get this list, and know whether that protocol is bound (the checkbox) is checked. 我想以编程方式获取此列表,并知道是否已绑定该协议(复选框)。

i can't seem to find any WMI class that shows this, and the closest i've seen is a primitive come interface INetCfg 我似乎找不到任何显示这个的WMI类,而我最接近的是一个原始的接口INetCfg

Its not native PowerShell but there is a tool called nvsbind.exe that was written by someone on the hyper-v team so you can do these operations in Server Core. 它不是本机PowerShell,但有一个名为nvsbind.exe的工具是由hyper-v团队中的某人编写的,因此您可以在Server Core中执行这些操作。 You can find here 你可以在这里找到

http://archive.msdn.microsoft.com/nvspbind http://archive.msdn.microsoft.com/nvspbind

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM