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



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?????


.



Relevant Pages

  • Re: Enable inventory of bitlocker drive status
    ... I wondered if i could run mofcomp on Vista, ... MOF file has been successfully parsed ... then be copied to the SMS server?? ...
    (microsoft.public.sms.inventory)
  • Re: Enable inventory of bitlocker drive status
    ... I wondered if i could run mofcomp on Vista, ... MOF file has been successfully parsed ... And, if i successfully compile the MOF-file, should it then be copied to the SMS server?? ... Windows Server System MVP - SMS ...
    (microsoft.public.sms.inventory)
  • Re: WMI Win32_PerfFormattedData hosed - how to fix?
    ... I wonder if the problem is with the MOF file itself or something else. ... Maybe try copying the MOF file from a known good. ... winmgmt /clearadap ...
    (microsoft.public.win32.programmer.wmi)
  • Re: WMI Win32_PerfFormattedData hosed - how to fix?
    ... and it parsed fine and said it was loading the data into the registry. ... I wonder if the problem is with the MOF file itself or something else. ... winmgmt /clearadap ...
    (microsoft.public.win32.programmer.wmi)
  • Re: XP SP2 MOF Failure
    ... Unfortuntely that did not fix things...I am ... wondering how mofcomp can provide more information on why its not compiling ... >> When I try to import the MOF file provided at ...
    (microsoft.public.sms.setup)