Giveaways, Technology, Smartphones, Programming and Internet


The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine

When I try to uninstall the SQL SERVER version installed on my machine the error came

The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine ARIMBRA Error:2147749896 (0x80041008).

For help, click: http://go.Microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=setup.rll&EvtID=70342

The same error can when I tried to install a new version. So after a search I found a script which solved 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

1. open a notepad

2. Copy and paste the above scripts to that

3. save as FIXWMI.CMD (name can be anything, extension should be cmd)

4. Run the script (double click will do)

5. it will ask for a confirmation, allow that.

6. it will take some time to finish.

7. After finishing try, the error might have gone.

 

It worked for me, so thought of sharing this.

Related Posts

blog comments powered by Disqus