Friday, February 12, 2010

WMI Test fails with error 0x80070005

Hi,

If WMI Test fails with below error.

     \root\cimv2 Remote WMI access test FAILED
     Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

1. Ensure that Windows Management Instrumentation (WMI) Service is running on Remote System
2. Ensure that all Firewalls are turned off (Windows Firewall, Personal Firewall etc) or allow exception for RPC traffic
3. Execute WMI Diag and check for Error Codes, Reasons and solutions for the issue. Most of the times, WMI Diag result itself gives solution to all errors.

For above error, the reason could be as below in WMI Diag result.

32104 00:05:58 (1) !! ERROR: DCOM Status: ................................................................................................. ERROR!
32105 00:05:58 (1) !! ERROR: => The DCOM configuration on this computer is DISABLED

This prevents WMI to work correctly.

You can fix the DCOM configuration by

1. Executing the 'DCOMCNFG.EXE' command.
2. Expanding 'Component Services' and 'Computers' nodes.
3. Editing properties of 'My Computer' node.
4. Editing the 'Default properties' tab.
5. Activate the 'Enable Distributed COM on this computer' checkbox.

From the command line, the DCOM configuration can be corrected with the following command:

'REG.EXE Add HKLM\SOFTWARE\Microsoft\Ole /v EnableDCOM /t REG_SZ

No comments:

Post a Comment