El script mágico cuando falla la instalación de SQL Server

Estaba instalando sql server cuando de repente me comenzaron a salir errores como este:

Product         : Microsoft SQL Server 2005 
Product Version : 9.00.1399.06 
Install         : Failed 
Log File        : C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files\SQLSetup0004_BRAEBURN_SQL.log 
Last Action     : InstallFinalize 
Error String    : SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\etwcls.mof. To proceed, see "Troubleshooting an Installation of SQL Server 2005" or "How to: View SQL Server 2005 Setup Log Files" in SQL Server 2005 Setup Help documentation. 
Error Number    : 29513
Luego traté de instalar de nuevo y obtuve el siguiente error:
The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine mymachine Error:2147749896 (0x80041008).

Lamentablemente ese sql server estaba en inglés, pero me imagino que el error en español es el parecido.


Luego de navegar un poco descubrí este 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 

Lo que uno tiene que hacer es crear un archivo FIXWMI.CMD y luego hacer doble click en el mismo.
ESO ES TODO !!

En pocas palabras, lo que hace este script es arreglar la configuración de WMI que se utiliza para obtener información del sistema para posteriormente instalar los componentes.
Si tienes otras dudas o problemas al instalar sql server, puedes escribir al final de este blog.

Fuente

Comentarios

  1. Te felicito, despues de navegar horas y horas aplicando otras soluciones que nunca lo fueron, encontre tu script y con el logre resolver mi problema al tratar de instalar sql server 2005. El error creo que empezo despues de un update fallido del windows server 2003.

    ResponderEliminar

Publicar un comentario

Entradas populares de este blog

The Deep Sea: una web interactiva para explorar las profundidades el mar y descubrir las extrañas criaturas que viven en él

Detectar el usuario de Windows utilizando C#

Lo nuevo de SQL Server 2008 respecto a SQL Server 2005