myITforum and Windows IT Pro Forums

 Help! Unable to compile smsclient.mof

Author Message

  • Total Posts : 6
  • Scores: 0
  • Reward points : 0
  • Joined: 7/2/2003
  • Status: offline
Help! Unable to compile smsclient.mof Monday, July 24, 2006 11:48 AM (permalink)

I received the following error when trying to install the SMS client on a
Windows 2003 SP1 server  "Setup was unable to compile the file SMSClient.mof"
The error code is 8004100E.

I have rebuilt the WMI repository - no luck
When I do mofcomp -check smsclient.mof     - it indicates no problems

When I do mofcomp smsclient.mof                 -I get the following error:

MOF file has been successfully parsed
Storing data in the repository...
An error occurred while opening the namespace for object 1 defined on lines
46 -
Error Number: 0x8004100e, Facility: WMI
Description: Invalid namespace
Compiler returned error 0x8004100e

Any help would be appreciated



    • Total Posts : 6
    • Scores: 0
    • Reward points : 0
    • Joined: 7/2/2003
    • Status: offline
    RE: Help! Unable to compile smsclient.mof Tuesday, July 25, 2006 8:51 AM (permalink)
    After doing some more troubleshooting the problem was indicating the CCM namespace was not present.  I found this posting in the microsoft.public.sms.setup group by Wesley Fernandes that fixed my problem.
    To perform a more thorough manual rebuild, run the following series of

    %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
    rename %windir%\system32\wbem\repository
    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

    Thanks Wesley - hope this solution can help someone else!


      • Total Posts : 63
      • Scores: 0
      • Reward points : 0
      • Joined: 5/22/2007
      • Status: offline
      RE: Help! Unable to compile smsclient.mof Friday, September 07, 2007 5:18 PM (permalink)
      I have the same issue and i tried to rebuild WMI repository by following the process descirbed above by rosemary..all i did was copied these commands in a batch file and exectuted them one after the other....the issue still persists on my machine...

        • Total Posts : 5126
        • Scores: 504
        • Reward points : 202330
        • Joined: 9/13/2001
        • Location: Sherry Kissinger
        • Status: offline
        RE: Help! Unable to compile smsclient.mof Friday, September 07, 2007 5:26 PM (permalink)
        Microsoft doesn't recommend rebuilding the WMI repository anymore.  In fact, I don't think they ever recommended it--it's just techs like us found that it worked about 50% of the time, so that solution is all over the net.  I suggest you try WMIDiag to diagnose your WMI issues; and hopefully it will give you recommendations on how to fix it.
        Since you've already deleted the repository; you may not get great results from wmidiag; but it's worth a shot.  Personally, if a delete/rebuild of WMI didn't fix the problem (this was before wmidiag was released)... if I couldn't figure it out in 30 minutes, I reimaged the box.
        For future reference, you may want to look into KB933062; a WMI preventative maintenance hotfix for XP.  But... that won't do you any good at this point.  It's not a fix for an existing corrupt WMI.
        My Blog
        Microsoft MVP 2007-2015 - ConfigMgr
          Online Bookmarks Sharing: Share/Bookmark

          Jump to:

          Current active users

          There are 0 members and 2 guests.

          Icon Legend and Permission

          • New Messages
          • No New Messages
          • Hot Topic w/ New Messages
          • Hot Topic w/o New Messages
          • Locked w/ New Messages
          • Locked w/o New Messages
          • Read Message
          • Post New Thread
          • Reply to message
          • Post New Poll
          • Submit Vote
          • Post reward post
          • Delete my own posts
          • Delete my own threads
          • Rate post

          2000-2018 ASPPlayground.NET Forum Version 3.9