I am trying to install SQL Server 2008 trial version in my local machine. However, I kept running into errors with the following error message:
"The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI Server to start".
I checked on the WMI services, they are started and running. I ran sfc /scannow to check on system files. I also ran the following script trying to repair the WMI repository. However, none of them helped.
net stop winmgmt
rd /S /Q repository
regsvr32 /s %systemroot%\system32\scecli.dll
regsvr32 /s %systemroot%\system32\userenv.dll
for /f %%s in (’dir /b /s *.dll’) do regsvr32 /s %%s
for /f %%s in (’dir /b *.mof’) do mofcomp %%s
for /f %%s in (’dir /b *.mfl’) do mofcomp %%s
mofcomp -n:root\cimv2\applications\exchange wbemcons.mof
mofcomp -n:root\cimv2\applications\exchange smtpcons.mof
net start winmgmt
I also ran "rundll32 wbemupgd, UpgradeRepository" to rebuild WMI repository, it doesn't help either. I got the same error message.
I had SQL server 2005 Expression running on my machine, and it works fine. I tried to wipe all the SQL instances in my local machine before installing SQL Server 2008, it doesn't help either.
Any ideas what settings I need to change in order to ensure a successful installation of SQL Server 2008?