可以使用多个适配器命名空间实例吗 [英] Is Multiple adapter namespace instance usage possible?

查看:72
本文介绍了可以使用多个适配器命名空间实例吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在将操作系统从windows7移植到windows10。对于以前的命名空间,我们使用root \\ cimv2用于win32_netadapter和win32_netadapterconfiguration,但是现在因为win32_netadapter已被弃用并被
msft_netadapter替换为新的命名空间为root \\ standardcimv2,是否可以使用root \带有win32_netadapter配置的\standardcimv2,或者我应该使用root \\cimv2创建一个新实例,以便使用后者。

We are having a situation in porting our Operating system from windows7 to windows10. For namespace previously we were using root\\cimv2 for win32_netadapter and win32_netadapterconfiguration, but now since win32_netadapter is deprecated and replaced by msft_netadapter with new namespace as root\\standardcimv2, is it okay to use root\\standardcimv2 with win32_netadapterconfiguration or should i create a new instance with root\\cimv2 for using the later one.

是否支持win32_netadapter配置在root \\standardcimv2?如果支持我无法回复"IPEnabled"以前的财产。请告诉我你的建议。

Is win32_netadapterconfiguration supported in root\\standardcimv2? if supported i am unable to retrive "IPEnabled" property as before. Please let me know your suggestions.

谢谢和问候,

Herokiller

Herokiller

推荐答案

你在哪里知道Win32_NetworkAdapter不可用。 它在W10上工作得很好。

Where did you get the idea that Win32_NetworkAdapter was not available.  It works just fine on W10.

它在默认命名空间中,它是root \CimV2

It is in the default namespace which is root\CimV2

它在Windows 10上运行正常:

It works just fine on Windows 10:

PS D:\scripts> Get-WmiObject Win32_NetworkAdapterConfiguration -Filter 'IpEnabled=True'


DHCPEnabled      : True
IPAddress        : {3333, cccccc, dddd,     
DefaultIPGateway : {10.0.0.1, fe80::}
DNSDomain        : test.net
ServiceName      : Netwtw04
Description      : Intel(R) Dual Band Wireless-AC 7265
Index            : 2


这篇关于可以使用多个适配器命名空间实例吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆