Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error Number: 0x8004100e, Facility: WMI, Description: Invalid namespace

1,509 views
Skip to first unread message

Michael Ferris

unread,
Sep 19, 2005, 10:55:20 AM9/19/05
to
We are having significant problems getting a client install on a shop floor
terminal our sister company manufactures. It is a small PC running Windows
2000 Professional. The following errors and different attempts by my
network staff to get the install to work have repeatedly failed. ANY help
would be appreciated since our customer, BMW North America, is going nuts
and has several hundred more terminals to install into their SMS 2003 SP1
controlled network.

HELP............

Here is what we tried:

The problem is a namespace error during mof compilation. This problem has
happened to others. I have tried several remedies listed on the web but none
have helped. I think will have to place a support call in to Microsoft.

Exact Error messages are:
- Unable to compile file SmsClient.mof
- Unable to compile file ccmclasses.mof
- Error 8004100E
- Error 25140
- Error Number: 0x8004100e, Facility: WMI, Description: Invalid namespace

I compiled a list of possible remedies listed on the web and tried each one
one after the other

1. Stopped the WinMgmt service, Deleted the repository in
c:\winnt\system32\wbem
Windows recovered the repository
Result: didn't work

2. Re Registered the wbemupgd.dll file / call its RUNDLLENTRY method
Result: didn't work

3. Manually compile the mof files in question:
Result (NOTE THE ERROR MESSAGES):
C:\>cd winnt

C:\WINNT>cd system32

C:\WINNT\system32>cd CCM

C:\WINNT\system32\CCM>mofcomp -check SmsClient.mof
Microsoft (R) 32-bit MOF Compiler Version 1.50.1085.0007
Copyright (c) Microsoft Corp. 1997-1999. All rights reserved.

Parsing MOF file: SmsClient.mof
MOF file has been successfully parsed
Syntax check complete.
Done!

C:\WINNT\system32\CCM>mofcomp -check ccmclasses.mof
Microsoft (R) 32-bit MOF Compiler Version 1.50.1085.0007
Copyright (c) Microsoft Corp. 1997-1999. All rights reserved.

Parsing MOF file: ccmclasses.mof
MOF file has been successfully parsed
Syntax check complete.
Done!


C:\WINNT\system32\CCM>mofcomp -autorecover SmsClient.mof
Microsoft (R) 32-bit MOF Compiler Version 1.50.1085.0007
Copyright (c) Microsoft Corp. 1997-1999. All rights reserved.

Parsing MOF file: SmsClient.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
47 -
52:
Error Number: 0x8004100e, Facility: WMI, Description: Invalid namespace
Compiler returned error 0x8004100e
C:\WINNT\system32\CCM>mofcomp -autorecover ccmclient.mof
Microsoft (R) 32-bit MOF Compiler Version 1.50.1085.0007
Copyright (c) Microsoft Corp. 1997-1999. All rights reserved.
File 'ccmclient.mof' not found!

4,5,6 Tried some batch files found, Same Results, Batch Files are listed

net stop winmgmt /y
c:
cd %systemroot%\system32\wbem
if exist %systemroot%\system32\wbem\repository.old rmdir /s /q
repository.old
rename %systemroot%\system32\wbem\repository repository.old
for /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
net start winmgmt
wmiprvse /regserver


-----------------------------------------------------------

net stop winmgmt /y
c:
cd %systemroot%\system32\wbem
if exist %systemroot%\system32\wbem\repository.old rmdir /s /q
repository.old
rename %systemroot%\system32\wbem\repository repository.old

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl

for /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s

-----------------------------------------------------------

%systemroot%\system32\wbem\winmgmt /clearadap
%systemroot%\system32\wbem\winmgmt /kill
%systemroot%\system32\wbem\winmgmt /unregserver
%systemroot%\system32\wbem\winmgmt /regserver
%systemroot%\system32\wbem\winmgmt /resyncperf

net stop winmgmt /y

if exist %systemroot\system32\wbem\repository.old rmdir /s /q
repository.old
rename %systemroot\system32\wbem\repository repository.old

regsvr32 -s %systemroot%\system32\scecli.dll
regsvr32 -s %systemroot%\system32\userenv.dll

mofcomp %systemroot%\system32\wbem\cimwin32.mof
mofcomp %systemroot%\system32\wbem\cimwin32.mfl
mofcomp %systemroot%\system32\wbem\rsop.mof
mofcomp %systemroot%\system32\wbem\rsop.mfl


for /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s

net start winmgmt
%systemroot%\system32\wbem\wmiprvse /regserver

Still no success?????


Wesley Fernandes

unread,
Sep 20, 2005, 12:05:09 PM9/20/05
to
Hi,

remove all SMS Client components, regkeys and folders before trobleshooting
WMI.

I´ve this docs:

http://support.microsoft.com/default.aspx?scid=kb;en-us;826842

and

*************************************************
Here's a few sample solutions that I've found:

To initiate an auto recovery, run one of the following commands:

Regsvr32 %Windir%\System32\Wbem\wbemupgd.dll
or
Rundll %Windir%\System32\Wbem\wbemupgd.dll, RUNDLLENTRY

To perform a manual rebuild of the repository, run the following series of
commands:

net stop winmgmt /y
C:
cd %windir%\system32\wbem
if exist %windir%\system32\wbem\repository.old rmdir /s /q repository.old
rename %windir%\system32\wbem\repository repository.old
for /f %s in ('dir /b *.dll') do regsvr32 /s %s
for /f %s in ('dir /b *.mof *.mfl') do mofcomp %s

net start winmgmt
wmiprvse /regserver

To perform a more thorough manual rebuild, then run the following series of
commands:

%windir%\system32\wbem\winmgmt /clearadap
%windir%\system32\wbem\winmgmt /kill
%windir%\system32\wbem\winmgmt /unregserver
%windir%\system32\wbem\winmgmt /reserver
%windir%\system32\wbem\winmgmt /resyncperf
net stop winmgmt /y
if exist %windir%\system32\wbem\repository.old rmdir /s /q
%windir%\system32\wbem\repository.old
rename %windir%\system32\wbem\repository
%windir%\system32\wbem\repository.old

regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll

mofcomp %windir%\system32\wbem\cimwin32.mof
mofcomp %windir%\system32\wbem\cimwin32.mfl
mofcomp %windir%\system32\wbem\rsop.mof
mofcomp %windir%\system32\wbem\rsop.mfl
for /f %s in ('dir /b /s %windir%\system32\wbem\*.dll') do regsvr32 /s %s
for /f %s in ('dir /b /s %windir%\system32\wbem\*.mof') do mofcomp %s
for /f %s in ('dir /b %windir%\system32\wbem\*.mfl') do mofcomp %s
net start winmgmt
%windir%\system32\wbem\wmiprvse /regserver
start other services which were stopped when winmgmt stopped
*******************************************************
Try it. Good luck.

--
Wesley Fernandes


0 new messages