请帮我查询WMI [英] Please help me querying the WMI

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

问题描述



这是克里斯图.我正在做一个网络维护项目.我需要查询WMI.

我成功查询了WMI.但是我必须连接到不同名称空间的不同类.当我连接到远程系统时,我正在使用IP,用户名和密码创建一个连接对象.为了查询每个类,我连接了远程系统.连接对象需要时间才能连接.如果一个或两个类或名称空间没有问题.但是我正在连接到不同名称空间中的100个类.我只想连接一次到远程系统以查询不同的名称空间.可能吗?请帮助我提出您的想法.

Hi,

This is Christhu. I am doing a network maintanence Project. I am in the need of quering the WMI.

I am succeeded in querying WMI. But I have to connect to different classes of different namespaces. When I connect to the remote system I am creating a connection object with IP , username and password. For querying every class I connect the remote system. The connection object takes time to connect. If one or two classes or namespaces no problem.But I am connecting to 100s of classes in different namespace. I want to connect only once to the remote system for querying different namespace. Is it possible? Please help me with your idea.

推荐答案

看看ManagementPath类是否对您有帮助.
See if the ManagementPath class would be of any help to you.


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

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