- 浏览: 300530 次
文章分类
- 全部博客 (308)
- Apple (1)
- MAC (6)
- iPhone (1)
- iOS (1)
- Adobe (3)
- Microsoft (23)
- Windows (12)
- WAP (2)
- CMPP (6)
- Eclipse (5)
- .NET (13)
- Router (3)
- ADO.NET (2)
- C# (11)
- WPF (3)
- SqlServer (4)
- Facebook (2)
- JDBC (1)
- Visual Studio (10)
- ActiveMQ (9)
- Java (112)
- Memcached (2)
- NoSQL (7)
- Hadoop (9)
- GlassFish (2)
- Linux (98)
- CentOS (58)
- Spring (10)
- Oracle (17)
- JBOSS (12)
- Webservice (4)
- EJB (7)
- DFS (1)
- Hibernate (9)
- Redis (3)
- Tomcat (5)
- Python (8)
- FastDFS (6)
- Nginx (6)
- RabbitMQ (0)
- Erlang (0)
- Lucene (8)
- Solr (7)
- MySQL (1)
- JavaScript (0)
最新评论
-
zhangy888:
你好,我正好也遇到了这个问题,按照您的设置有如下几个问题,请帮 ...
CXF SOAP 1.2 SOAP 1.1 问题 -
u011493586:
这个SUBMIT写的还不错,只是有的地方没看懂
CMPP发送超长短信息(JAVA版) -
u011493586:
...
CMPP发送超长短信息(JAVA版)
When accessing WMI local or remote data in an application or script, you may encounter errors ranging from missing classes to access denied. Providers also have debugging options and troubleshooting classes available. For more information about troubleshooting problems with WMI scripts and the WMI service, see WMI Isn't Working!
WMI Diagnosis Utility
If WMI returns error messages, be aware that they may not indicate problems in the WMI service or in WMI providers. Failures can originate in other parts of the operating system and emerge as errors through WMI. Under any circumstances, do not delete the WMI repository as a first action because deleting the repository can cause damage to the system or to installed applications.
To obtain more information about the source of the problem, you can download and run the WMI Diagnosis Utility diagnostic command line tool. This tool produces a report that can usually isolate the source of the problem and provide instructions on how to fix it. The report also aids Microsoft support services in assisting you. You can download the WMI Diagnosis Utility at the Download Center.
Provider writers may also encounter debugging issues unless you are writing a decoupled provider. For more information, see Debugging Providers.
Logging and Tracing
Starting with Windows Vista, the WMI log files no longer exist. They are replaced by Event Tracing for Windows (ETW). For more information, see Tracing WMI Activity, Logging WMI Activity, and WMI Log Files.
Troubleshooting in Scripts and Applications
WMI contains a set of classes for troubleshooting client applications that use WMI providers. For more information, see Troubleshooting WMI Client Applications.
How Provider Writers Can Prevent WMI Problems
Provider writers can prevent many problems, which appear in error messages through WMI, by performing the following actions:
- Registering your provider correctly. For more information, see Registering a Provider.
- Adding the #pragma autorecover statement to the Managed Object Format (MOF) file that defines your provider classes.
For more information, see Debugging Providers, Providing Data to WMI, and Provider Configuration and Troubleshooting Classes.
Access Denied
Access Denied errors that are reported by scripts and applications that access WMI namespaces and data generally fall into three categories. The following table lists the three categories of errors along with issues that might cause the errors and possible solutions.
Error | Possible Issues | Solution |
0x800706BA - RPC Server Unavailable Firewall issue or server not available. |
The computer really doesn't exist · The Windows Firewall is blocking the connection | Connecting to Vista: netsh advfirewall firewall set rule group="windows management instrumentation (wmi)" new enable=yes Connecting to downlevel: Allow the "Remote Administration" rule in Windows Firewall. |
0x80070005 – E_ACCESS_DENIED Access denied by DCOM security. |
The user does not have remote access to the computer through DCOM. Typically, DCOM errors occur when connecting to a remote computer with a different operating system version. | Give the user Remote Launch and Remote Activation permissions in dcomcnfg. Right-click My Computer-> Properties Under COM Security, click "Edit Limits" for both sections. Give the user you want remote access, remote launch, and remote activation. Then go to DCOM Config, find "Windows Management Instrumentation", and give the user you want Remote Launch and Remote Activation. For more information, see Connecting Between Different Operating Systems |
0x80041003 – WMI Access Denied Access denied by a provider |
The user does not have permission to perform the operation in WMI. This could happen when you query certain classes as a low-rights user, but most often happens when you attempt to invoke methods or change WMI instances as a low rights user. The namespace you are connecting to is encrypted, and the user is attempting to connect with an unencrypted connection | Give the user access with the WMI Control (make sure they have Remote_Access set to true) Connect using a client that supports encryption. |
-
Typically, DCOM errors occur when connecting to a remote computer with a different operating system version.
-
Providers may also deny access to data in specific namespaces or may require certain levels of connection security. For more information, see Setting Client Application Process Security and Provider Hosting and Security.
- Access denied errors from Internet Connection Firewall (ICF) changes.
The firewall is enabled in the Windows XP with Service Pack 2 (SP2) client, but not in Windows Server 2003 with Service Pack 1 (SP1) or Windows Server 2003 R2. For more information, see Connecting Through Windows Firewall.
Windows Server 2003, Windows XP, Windows 2000, Windows NT, and Windows Me/98/95: ICF does not exist. - An access denied error is returned by DCOM security when a low-integrity client tries to access WMI. For example, an ActiveX control that is running in Internet Explorer, which has the security level set to low, does not have access to perform local WMI operations.
Windows 7: Low-integrity users have read-only permissions for local WMI operations.
Information on Errors
When you get an error message from WMI, you can locate the message in WMI Error Constants or, for scripting, WbemErrorEnum. However, the information supplied by the error alone is typically insufficient to determine what is happening. WMI repository corruption may masquerade as classes or instances "not found".
For more information about WMI errors:
- The WMI logs track events from within the WMI core and from providers. For more information, see Logging WMI Activity.
- Use the WMI Troubleshooting Classes to check WMI internal status or receive notifications of provider or WMI service events. For more information, see Provider Configuration and Troubleshooting Classes and Troubleshooting WMI Client Applications.
Related topics
发表评论
-
C#调用C++的库 P/Invoke工具集
2015-04-28 15:06 1217p/Invoke可以使用工具辅助自动生成,以减少混淆 ... -
vs2010创建ActiveX工程和怎么给ActiveX添加方法
2015-01-13 11:11 799ActiveX控件是注册到电脑上的一个注册库文件,以ocx ... -
VisualSVN 破解
2014-10-08 17:02 1008首先,去VisualSVN官网下载最新版本。 传送门: h ... -
Radius服务器架设
2013-12-06 10:32 726Radius是一种C/S的通讯协议,它使Radius客户端 ... -
发一个扫盲贴,什么是WINSXS文件夹!
2013-06-17 17:56 912从WINDOWS 98用到现在的7,自VISTA ... -
C#的Dictionary值排序和SortedDictionary键排序
2013-03-25 08:43 2832对一个Dictionary<TKey, TValue& ... -
Expression Blend实例中文教程
2013-02-28 10:56 1468随着计算机软件开发分工细节化,微软对已有的产品线进行了调整 ... -
Windows 7下关闭IPV6隧道
2013-01-05 12:37 910IPv6隧道是将IPv6报文 ... -
VS使用中 coloader80.dll异常
2013-01-04 16:29 1116今天在工作的时候由于不小心直接关掉了正在运行程序的Vis ... -
log4net使用详解
2012-12-08 13:26 904说明:本程序演示如何利用log4net记录程序日志信息。log ... -
net中的WMI编程(二):WMI中的WQL语言和WQL的测试工具
2012-09-24 13:41 973今天临晨本人写了一篇有关.net中WMI编程的入门文章,名 ... -
net中的WMI编程(一):WMI介绍及简单应用
2012-09-24 13:40 794前言: 由于.net的某 ... -
Error 29506 while installing SQL Server Management Studio Express
2012-08-19 23:46 764Error 29506 while installing SQ ... -
WPF导航在page中的实现方法
2012-08-15 10:23 1545WPF导航的实现方法有很多种。我们在文章中通过各种代码示例 ... -
enum : C#中的枚举类型,原来有这么多用法
2012-07-26 15:58 1403今天来的时候打开了MSDN扫了一眼C#里的枚举类型~~ 蓦然发 ... -
如何解决Visual Studio 远程调试权限异常System.Security.SecurityException
2012-07-23 13:31 1292如果Visual Studio 远程调试时,host ... -
三步实现Windows 7自动登录
2012-07-15 08:55 731现在很多的用户都已开始转向Windows 7了,对于习惯自 ... -
Visual Studio 编程技巧
2012-06-07 12:08 1311技巧 0 删除文件中的当前行: Home + Shife ... -
如何自动以管理员身份运行.NET程序?
2012-06-07 08:33 1873如何让.net程序自动运行在管理员权限下 VS2010 c# ... -
Visual Studio 远程调试的步骤
2012-05-31 11:59 1424使用场景 常用的主要是在部署的机器上程序出现问题, 而一 ...
相关推荐
修复WMI服务 修复WMI服务 修复WMI服务
WINdows wmi编程 C#实例 里面很清楚的介绍了好几个常见的WMI的查询
WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI WMI v
官方版WMI tools,系统检测工具。
大家平时在用类似鲁大师之类软件的时候,会看到鲁大师之...所以这个时候就要通过WMI编程来获取硬件信息了。WMI是windows操作系统用来管理软件和硬件的核心。其它的不再多讲了,下面来看最主要的,通过WMI获取硬件信息。
WMI信息Class代码生成器WMIclass[WMIclass.rar]-精品源代码
WMI(Windows Management Instrumentation,Windows 管理规范)是一项核心的 Windows 管理技术;用户可以使用 WMI 管理本地和远程计算机。 WMI查询可通过WMI命令查询系统的信息,本文档演示如何使用WMI查询。
Visual C++源代码 87 如何使用WMI查询处理器信息Visual C++源代码 87 如何使用WMI查询处理器信息Visual C++源代码 87 如何使用WMI查询处理器信息Visual C++源代码 87 如何使用WMI查询处理器信息Visual C++源代码 87 ...
windows下的wmi工具, 微软的wmi工具在win7或更高版本无法使用 WmiExplorer可以作为替代作用 辅助wmi相关的开发
利用WMI编程必不可少的辅助工具!最常用它查找WMI函数,及了解使用方法。。。
本资源可以获取WMI信息,生成VB脚本,执行生成的脚本查看本机或远程计算机的信息。 WMI简述:WMI是Windows Management Instrumentation (Windows管理工具)的缩写,是内置在 Windows 2000、Windows XP 和 Windows ...
WMI VB 中文视频 脚本WMI VB 中文视频 脚本
详细演示了C++调用WMI遍历进程的整个过程,有详细注释,代码可以直接复用。
Windows系统WMI查询工具。 WMI强大检索功能。。。非常实用的工具
WMI取主板温度.rar WMI取主板温度.rar WMI取主板温度.rar WMI取主板温度.rar WMI取主板温度.rar WMI取主板温度.rar
Visual C++源代码 84 如何使用WMI查询声音设备信息Visual C++源代码 84 如何使用WMI查询声音设备信息Visual C++源代码 84 如何使用WMI查询声音设备信息Visual C++源代码 84 如何使用WMI查询声音设备信息Visual C++源...
Visual C++源代码 82 如何使用WMI条件查询系统服务Visual C++源代码 82 如何使用WMI条件查询系统服务Visual C++源代码 82 如何使用WMI条件查询系统服务Visual C++源代码 82 如何使用WMI条件查询系统服务Visual C++源...
好用的WMI查询工具 好用的WMI查询工具 好用的WMI查询工具 好用的WMI查询工具
WMI编程工具,便于WMI函数属性、方法查询。