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