WMI configuration error
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


March 8th, 2006 at 12:36 pm
GREAT!
This was an excellent fix, thanks for posting.
March 8th, 2006 at 3:12 pm
Excellent fix .it helped me
March 12th, 2006 at 3:28 pm
Awesome Help!
March 21st, 2006 at 1:18 pm
YOU ARE AWESOME!! THANKS for your help!
April 27th, 2006 at 8:15 pm
You are a GOD.
May 19th, 2006 at 4:14 am
FANTASTIC.
Now why did I waste all that time looking for the solution from micro$oft ?
Thank You.
August 10th, 2006 at 12:54 pm
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
September 29th, 2006 at 10:06 pm
Awsome! All other “fixes” failed. After hours of hunting and trying this one ran start to finish and afterwards the program installed without problems.
October 25th, 2006 at 7:59 am
Awesome Help!
November 18th, 2006 at 8:44 am
THANKS! It helps…:D
December 1st, 2006 at 5:13 am
WHERE SHOULD I PUT THIS CODE ??? AND HOW I EXECUTE THE CODE
HELP NEEDED HERE
January 15th, 2007 at 12:27 pm
Cool thank you man
January 19th, 2007 at 12:47 pm
Excellent, but can you tell us what the problem was and how you figure the solution out
Thanks!!!
February 8th, 2007 at 2:27 pm
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
March 11th, 2007 at 8:31 pm
Thanks! I repeatedly tried installing SQL Server 2005 on my machine without any luck. This resolved it for me.
July 9th, 2007 at 9:58 pm
Excellent! Thanks very much for a perfect fix!
July 19th, 2007 at 9:58 am
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?
August 18th, 2007 at 8:59 pm
Script is a life-saver
September 13th, 2007 at 6:38 pm
You’re a freaking godsend, thank you!
September 29th, 2007 at 3:38 pm
superb fix.
That was a fantastic solution from you
Thanks a bunch yow… ^ ^
December 6th, 2007 at 12:56 pm
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.
December 13th, 2007 at 8:29 am
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.
January 11th, 2008 at 10:54 pm
Thanks man!
I am making a serious move towards Microsoft technologies and you surely did help me!