WMI Error 0x80070005

H

Hursh

Hi,

On a lot of Windows XP SP2 machines in our domain, I am gettting WMI Errors.
I am not able to run any WMI scripts.

When I run wbemtest and click connect and connect using the default settings
(
to root\default,
Using : IWbemLocator (Namespaces)
and no credentials (ie. with logged on user)
)

I get the an error as following
Number: 0x80070005
Facility: Win32
Description: Access is denied.


Then I check using wmimgmt.msc and when I right click WMI Control and
connect to the local computer it gives the following message in General tab.
Failed to connect to <local computer> because "Win32: Access is denied."

Also I tried recompiling the mof files and again I get the errors as
****
Parsing MOF file: c:\windows\system32\wbem\cimwin32.mfl
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on lines
6 - 6:
Error Number: 0x80070005, Facility: Win32
Description: Access is denied.
Compiler returned error 0x80070005
****

I notice by openeing the source files that the error is always around the
lines as following:
Instance of __Namespace
{
Name = "CIMV2";
};

Name = "xxxx" for different mof/mfl files

So I guess there's some problem in namespace, or soe permissions somewhere.
I ran dcomcnfg and checked settings for WMI object and all the settings were
default , ie same as the one on another comp, where WMI is working properly.

I have tried searching the internet but have not been able to comeup with a
solution, not even able to diagnose what is the problem.

Could some one please point out what all I can try to rectify this problem.
This is really becoming a major problem as I am not able to run a lot of WMI
scripts on the machines.

tia
Hursh
 
H

Hursh

Hi,

I have been able to figure out that the problem is due to Group Policy.

As soon as I take out the machine from the domain, the GPOs are removed and
WMI starts working.

So I guess some policy is restricting proper running of WMI. Does anyone
know of any policy which can cause problems with WMI

Regards
Hursh
 
Joined
Jun 1, 2005
Messages
2
Reaction score
0
This is my exact problem, but I have found not cure. Also affects Resultant Set of Policies in Group Policy Management Console. In my case, it happened shortly after installing SP1 on our Windows 2003 Server and then running the Security Wizard. I have chased a ton of rabbit trails. I am brand new to this or any forum. Please send me an email if you have any suggestions. Thanks. Bill ([email protected])
 
Joined
Jun 1, 2005
Messages
2
Reaction score
0
Found an unexpected answer

In our case, it had nothing to do with any of our settings that we could figure out. However, we were able to figure out the culprit. I created a new OU and place it above where the GPs are applied. I then put my own computer into that OU. I ran "gpupdate /force", rebooted, and then tested my computer. It was fine. I then proceeded to add Group Policies one at a time, each time running "gpupdate /force" and rebooting. Eventually, we found the GP causing the problem. Our conclusion is that it somehow got corrupted and had nothing to do with the settings. I think we were barking up the wrong tree.

Anyway, regardless of the actual cause, the process noted in the above paragraph is, I believe, the way to go. Good luck!

Bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top