昨天在安裝sql 2005 rtm的時候碰到了這樣一個錯誤:
title: microsoft sql server 2005 setup
------------------------------
the sql server system configuration checker cannot be executed due to wmi configuration on the machine xxxx error:2147749896 (0x80041008).
for help, click: http://go.microsoft.com/fwlink?linkid=20476&prodname=microsoft+sql+server&prodver=9.00.1399.06&evtsrc=setup.rll&evtid=70342
------------------------------
buttons:
ok
------------------------------
之前安裝了n次都沒有碰到,而機器也是干凈的,新安裝的英文windows server 2003 with lastest patchs。錯誤信息里面的link也沒有提供任何可利用的信息。
從錯誤信息來看好像是wmi損壞了,于是google一下,發現有一個解決方法:re-installing wmi ,里面提到是因為更新2k3最新補丁造成的這個錯誤:the cause of this error is a corrupt install of wmi, caused by upgrading windows server 2003 to sp1 build 1277,雖然他針對的是ctp版本。但是發現根本不能運行。
我的2k3是sp1 build 1447,仍然出現這個錯誤。
幸運的是終于找到了一個fix wmi的script腳本,運行之后就好了:
fixwmi.cmd 
------------------------ 
@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 
如果你碰巧也遇到了這個問題,不妨看看能否解決?
新聞熱點
疑難解答