Cannot start WMI

A

Attila Tajti

I run into a problem with WMI while trying to find a svchost.exe crash.
I don't use WMI for anything but I think the failing service might try
to use it and it fails because WMI is failing too.

I tried a lot of things to reinstall WMI but my problem is after
deleting the repository WMI doesn't start at all and I can't compile
any mof/mfl files because they can't create namespaces:

C:\WINDOWS\system32\wbem>mofcomp cimwin32.mof
Microsoft (R) 32-bit MOF Compiler Version 5.1.2600.2180
Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.
Parsing MOF file: cimwin32.mof
MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on
lines 8 -
11:
Error code: 0x80080005Compiler returned error 0x80080005
C:\WINDOWS\system32\wbem>
C:\WINDOWS\system32\wbem>net start winmgmt
The Windows Management Instrumentation service is starting.
The Windows Management Instrumentation service could not be started.

A system error has occurred.

System error 126 has occurred.

The specified module could not be found.


C:\WINDOWS\system32\wbem>winmgmt /?

C:\WINDOWS\system32\wbem>winmgmt /register



There were 3 log files in the log dir after clearing it and executing
the above commands:

wbemprox.log

(Sun May 22 12:53:23 2005.6050921) : Using the principal
-RPCSS/AttisPC-
(Sun May 22 12:53:53 2005.6080937) : ConnectViaDCOM, CoCreateInstanceEx
resulted in hr = 0x80080005
(Sun May 22 14:49:47 2005.13100937) : Using the principal
-RPCSS/AttisPC-
(Sun May 22 14:50:17 2005.13130937) : ConnectViaDCOM,
CoCreateInstanceEx resulted in hr = 0x80080005
(Sun May 22 16:47:17 2005.20150937) : Using the principal
-RPCSS/AttisPC-
(Sun May 22 16:47:47 2005.20180937) : ConnectViaDCOM,
CoCreateInstanceEx resulted in hr = 0x80080005
(Sun May 22 17:11:49 2005.21692968) : Using the principal
-RPCSS/AttisPC-
(Sun May 22 17:12:19 2005.21722968) : ConnectViaDCOM,
CoCreateInstanceEx resulted in hr = 0x80080005
(Sun May 22 17:57:36 2005.24440468) : Using the principal
-RPCSS/AttisPC-
(Sun May 22 17:58:06 2005.24470484) : ConnectViaDCOM,
CoCreateInstanceEx resulted in hr = 0x80080005


mofcomp.log:

(Sun May 22 17:57:33 2005.24436828) : Microsoft (R) 32-bit MOF Compiler
Version 5.1.2600.2180
(Sun May 22 17:57:33 2005.24436843) : Copyright (c) Microsoft Corp.
1997-2001. All rights reserved.
(Sun May 22 17:57:33 2005.24436875) : Parsing MOF file: cimwin32.dll
(Sun May 22 17:57:33 2005.24436953) : cimwin32.dll (1): error SYNTAX
0X8004400a: Undefined error
(Sun May 22 17:57:33 2005.24436953) : Compiler returned error
0x8004400a(Sun May 22 17:57:35 2005.24439390) : Microsoft (R) 32-bit
MOF Compiler Version 5.1.2600.2180
(Sun May 22 17:57:35 2005.24439406) : Copyright (c) Microsoft Corp.
1997-2001. All rights reserved.
(Sun May 22 17:57:35 2005.24439437) : Parsing MOF file: cimwin32.mof
(Sun May 22 17:57:36 2005.24440453) : MOF file has been successfully
parsed
(Sun May 22 17:57:36 2005.24440468) : Storing data in the repository...
(Sun May 22 17:58:06 2005.24470531) : An error occurred while opening
the namespace for object 1 defined on lines 8 - 11:
(Sun May 22 17:58:06 2005.24470546) : Error code: 0x80080005(Sun May 22
17:58:06 2005.24470546) : Compiler returned error 0x80080005

winmgmt.log:

(Sun May 22 18:00:10 2005.24594468) :
Starting WinMgmt, ProcID = f0, CmdLine = /?(Sun May 22 18:00:25
2005.24608765) :
Starting WinMgmt, ProcID = a80, CmdLine = /reg



Any ideas what should I do? I googled for hours for fixes but
nothing helped resolve this issue.
 
J

Jim Vierra

I would start by running "SFC /scannow" and see if any files need replacing. This will also re-register fundamental system DLLs that may have become unregistered or have corrupted registry entries.

This is a routine from Eric Sun at MS. It will re-comp all MOFs that are installed on the machine except for MOFs not stored in WBEM
Please continue the following steps to rebuild the WMI repository.

1.. Disable the Windows Management Instrumentation SERVICE in the services console (services.msc)
2.. Back up the contents in the C:\windows\system32\wbem\Repository\
3.. Clearing the contents of C:\windows\system32\wbem\Repository\
4.. Click Start and click Run
5.. In the Run dialog box, please type CMD
6.. In the Command prompt, please just copy and paste the command below. Run it then.
1.. for %1 in (%systemroot%\system32\wbem\*.mof %systemroot%\system32\wbem\*.mfl) do mofcomp %1
7.. Restart the server.
 
A

Attila Tajti

Thanks for your help. I run SFC /scannow which took 10 minutes or so to
complete but it didn't report anything. I restarted my computer to make
sure any overwritten dlls would be read again.

But it didn't help, the simptoms are the same. I still can't start the
WMI service and can't compile the mof/mfl files either.



Jim said:
I would start by running "SFC /scannow" and see if any files need
replacing. This will also re-register fundamental system DLLs that may
have become unregistered or have corrupted registry entries.
This is a routine from Eric Sun at MS. It will re-comp all MOFs that
are installed on the machine except for MOFs not stored in WBEM
Please continue the following steps to rebuild the WMI repository.

1.. Disable the Windows Management Instrumentation SERVICE in the
services console (services.msc)
2.. Back up the contents in the C:\windows\system32\wbem\Repository\
3.. Clearing the contents of C:\windows\system32\wbem\Repository\
4.. Click Start and click Run
5.. In the Run dialog box, please type CMD
6.. In the Command prompt, please just copy and paste the command below. Run it then.
1.. for %1 in (%systemroot%\system32\wbem\*.mof
%systemroot%\system32\wbem\*.mfl) do mofcomp %1
 
J

Jim Vierra

Looks like it could be permissions or DCOM settings are wrong.

Be sure DCOM is se to normal defaults. Easiest way is to compare to working
OS.

At minimum "connect" and impersonate.

launch/acces - administrators,self,system.

WMI provider has custom on . launsh and config with admin,interactive,local
service ,network service, system
 

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