WMI configuration error

February 16th, 2006

After installing VS.NET 2005, I began receiving the following WMI configuration error when trying to install SQL Server 2000, 2003 or 2005:

The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine [machine name]Error:2147749896 (0×80041008).

Following various abortive efforts to fix, I finally came across this batch file that resolved the issue:

@echo on
cd /d c:\temp
if not exist %windir%\system32\wbem goto TryInstall
cd /d %windir%\system32\wbem
net stop winmgmt
winmgmt /kill
if exist Rep_bak rd Rep_bak /s /q
rename Repository Rep_bak
for %%i in (*.dll) do RegSvr32 -s %%i
for %%i in (*.exe) do call :FixSrv %%i
for %%i in (*.mof,*.mfl) do Mofcomp %%i
net start winmgmt
goto End

:FixSrv
if /I (%1) == (wbemcntl.exe) goto SkipSrv
if /I (%1) == (wbemtest.exe) goto SkipSrv
if /I (%1) == (mofcomp.exe) goto SkipSrv
%1 /RegServer

:SkipSrv
goto End

:TryInstall
if not exist wmicore.exe goto End
wmicore /s
net start winmgmt
:End

small loan 26 businessinterest only 5 loan yearhome ability loanmortgage home loan americanhours personal loan 24advances com day pay loansday com pay advances loan21 loans cash daygo 2 loan setloan home 60 year18sex video18th and politics century pornographydigital audio convert 5.1 analog 3phone sex 1-800 chat linessite porn video upload amatueramerican pornstarsbreast milk porn adult nursingamateur engine sex Map

23 Responses to “WMI configuration error”

  1. Jon S. (Orlando) Says:

    GREAT!

    This was an excellent fix, thanks for posting.

  2. ramana Says:

    Excellent fix .it helped me

  3. Ed Davis Says:

    Awesome Help!

  4. Victor M. Says:

    YOU ARE AWESOME!! THANKS for your help!

  5. Steven Watts Says:

    You are a GOD.

  6. Paul Yates Says:

    FANTASTIC.

    Now why did I waste all that time looking for the solution from micro$oft ?

    Thank You.

  7. Chris Says:

    I’m getting this error, repeatedly:
    C:\>Mofcomp.exe %windir%\system32\wbem\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: C:\WINDOWS\system32\wbem\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 Number: 0×80004002, Facility:
    Description: No such interface supported
    Compiler returned error 0×80004002

  8. James Knowlton Says:

    Awsome! All other “fixes” failed. After hours of hunting and trying this one ran start to finish and afterwards the program installed without problems.

  9. Surya Says:

    Awesome Help!

  10. Yan Says:

    THANKS! It helps…:D

  11. NORA Says:

    WHERE SHOULD I PUT THIS CODE ??? AND HOW I EXECUTE THE CODE
    HELP NEEDED HERE

  12. Amir Says:

    Cool thank you man

  13. Victor Says:

    Excellent, but can you tell us what the problem was and how you figure the solution out
    Thanks!!!

  14. Gregor Says:

    It didn’t help me, I still get the message when trying to install SQL Server 2005; but… is this fix meant for XP ? The wmicore.exe on ms site is only for 95, 98 and NT

  15. Dan M Says:

    Thanks! I repeatedly tried installing SQL Server 2005 on my machine without any luck. This resolved it for me.

  16. Dave V Says:

    Excellent! Thanks very much for a perfect fix!

  17. shahid_gb Says:

    I hav copied and pasted the batch file into dos promp.
    But I am still getting the same error.
    Should I be running the batch a different way?

  18. hl Says:

    Script is a life-saver

  19. Stacey Says:

    You’re a freaking godsend, thank you!

  20. terrance watson Says:

    superb fix.
    That was a fantastic solution from you
    Thanks a bunch yow… ^ ^

  21. SIM Says:

    This dosent appear to work for Vista. Has anyone been successful on vista with this batch file.

    The script ran for me but I still received an error when I tried to install.

  22. Brad Says:

    Also having the same problem on Vista. I ran the batch file with administrator privileges but the WMI error still pops up when I try to install SQL Server 2005.

  23. Kamran Says:

    Thanks man! :) I am making a serious move towards Microsoft technologies and you surely did help me!