WMI无效的类异常 [英] WMI invalid class Exception

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

问题描述



我正在使用WMI查询远程系统.
当我使用登录凭证连接到远程计算机时,我获得了成功的连接,但是当使用WMI从远程计算机中接收值时,它会抛出管理异常-无效的类".

如果我查询其他班不用担心.但是,当我查询Win32_SoftwareFeature时,出现此异常.

请帮助我.

Hi,

I am querying the remote system using WMI.
When I connect to the remote computer with login credential I got the connection succeeded, but while reteriving the values from remote machine using WMI it throws Management Exception-''Invalid Class''.

If I query some other class no worry. But when I query Win32_SoftwareFeature I get this Exception.

Please help me.

推荐答案

您正在谈论的Windows 2003服务器系统吗?然后在这里查看: http://social. msdn.microsoft.com/forums/zh-CN/csharpgeneral/thread/6fb0d3ea-1ccf-4554-bdf1-79c9e24388af [
Is that a Windows 2003 server system you are talking about? Then have a look here: http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/6fb0d3ea-1ccf-4554-bdf1-79c9e24388af[^].

Hope this helps you!


在从远程计算机上实际检索值之前,您可能需要检查此WMI功能的InstallState属性. 请参见此处 [
You might need to check the InstallState property of this WMI feature before you actually retrieve the value from a remote machine.
See here[^] for a description of this WMI.

You can check out msdn as well.


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

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