使用WMI查询远程系统 [英] Querying with WMI for a remote system

查看:58
本文介绍了使用WMI查询远程系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai ALL:

ManagementScope msMonitor =新的System.Management.ManagementScope(("//" +服务器名称+"/root/cimv2"),oConn);

上面的代码是连接到\\ root \\ cimv2命名空间.我只能查询该名称空间中可用的类,拥有此连接,我可以单独更改名称空间以查询其他类.通过c#代码帮助我

Hai ALL:

ManagementScope msMonitor = new System.Management.ManagementScope(("//" + servername + "/root/cimv2"), oConn);

The above code is to connect to \\root\\cimv2 namespace. I can query only the classes available in this namespace, Having this connection can I change the namespace alone to query other classes. Help Me through c# code

推荐答案

希望 ^ ]可能会为您提供帮助.
Hope this[^] might help you.


这篇关于使用WMI查询远程系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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