Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possibly related to:

After manually removing MSSQL 2008 from my system (uninstall failed to remove two instances), I receive the following error when trying to re-install:

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.

It seems that mofcomp is failing with one of the .mof files, but I'm not sure which, or why. Digging through the connect article gave some indications, but no solution. I've run winmgmt /salvagerepository, which returns "WMI repository is consistent".

Currently, I'm unable to install MSSQL 2008. Please help!

share|improve this question
May not be your case but I've read elsewhere this could be related to the WMI Service not being installed. – jl. May 5 '10 at 13:26
Hmm, WMI service (Winmgmt) is running. – nbolton May 5 '10 at 14:19
Grrr Microsoft = sucks. Why am I bothering? – Robin Winslow Jul 31 '12 at 14:33

I had the same problem and it was caused by the Firewall service. I had a warning message stating the firewall was enabled. A review of several internet sites indicated it was an issue so I continued. The MOF compiler error message did not indicate it had anything to do with the firewall. I stopped the firewall and reinstalled successfully.

share|improve this answer

I have faced the same problem and fixed it as below:

I downloadeded the portable (executable on any window based computer without installation) "Program Install and Uninstall troubleshooter" (a replacement of Windows Installer Cleanup Utility) from and executed the Fixit.exe. Have repeated the option named as "Fix problems with programs that can't be installed or uninstalled" to uninstalled the SQL Server 2008 registry entry(ies). After that, I installed the SQL Server 2008 which completed successfully.

share|improve this answer

Following this guide seems to do something...

... not sure if it's completely fixed the issue though.

share|improve this answer
Hmm, the error still occurs - however the installation continues from this point. I'm not even sure that's because of the above "solution"... Gah! – nbolton May 5 '10 at 14:43

Take a look at the installation media. Assuming that you're using 32-bit for your OS, then under your setup root go into \x86\Setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn and take a look at that etwcls.mof file using Notepad and see if it looks fully formed like any regular class should. (Go into \x64\Setup\sql_engine_core_inst_msi\PFiles\SqlServr\MSSQL.X\MSSQL\Binn if you're using 64-bit) If you get to the bottom and are seeing brackets not being closed, etc. then this is what the problem is.

I still haven't decided what to do about this yet.... If you have the disk or ISO handy try uninstalling/reinstalling using it.

share|improve this answer

First uninstall your SQL server.

Then download this tool: (Microsoft Corp.) Windows Installer Cleanup Utility

WARNING: It is deprecated. However when I ran into this issue before I did not have a problem with it. It will allegedly cleanup your Win Install tool.

After you have ran the tool, try to install again.

Hope this helps.

share|improve this answer

I also faced the same issue, but no answers provided in the internet gave me a solution. I re-installed many times. But that did not work. Finally, I changed the instance name from MSSQLSERVER to something else. Then SQL server installed fine. I think this will help you.

share|improve this answer

I ran into this error this week and was able to get past it without having to reinstall the OS, which is apparently a feat.

I found this message in the Detail.txt log file:

2015-07-23 15:48:39 Slp: Sco: Attempting to install MOF file
2015-07-23 15:48:39 Slp: Running: C:\Windows\system32\WBEM\mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof"
2015-07-23 15:48:39 Slp: Microsoft (R) MOF Compiler Version 6.0.6000.16386
2015-07-23 15:48:39 Slp: Copyright (c) Microsoft Corp. 1997-2006. All rights reserved.
2015-07-23 15:48:39 Slp: File 'C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof' not found!
2015-07-23 15:48:39 Slp: Sco: Compile operation for mof file C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof failed. Exit code 1

After that, I uninstalled SQL following the steps outlined here (with the exception of step 8, which is a utility for Windows XP and is deprecated):

After that, I started the install again. I clicked through all the dialog boxes up until the point that it was about to start the install. Then, I copied the following two files from a known good SQL installation:

C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof
C:\Program Files (x86)\Microsoft SQL Server\100\Shared\1033\sqlmgmprovider.mfl

After that, I got past the MOF Compiler error in the SQL install. I did get another error that caused me to have to copy the following files as well:

C:\Program Files\Microsoft SQL Server\100\Shared\RsFxInstall\RsFx0100.inf
C:\Program Files\Microsoft SQL Server\100\Shared\RsFxInstall\RsFx0101.inf
C:\Program Files\Microsoft SQL Server\100\Shared\RsFxInstall\RsFx0102.inf
C:\Program Files\Microsoft SQL Server\100\Shared\RsFxInstall\RsFx0103.inf
C:\Program Files\Microsoft SQL Server\100\Shared\RsFxInstall\RsFx0104.inf
C:\Program Files\Microsoft SQL Server\100\Shared\RsFxInstall\RsFx0105.inf

I'm not sure if this was related or not, but after doing the clean uninstall, copying all 8 of the files listed above, then re-starting the install, it worked. Hope this helps someone.

share|improve this answer
When linking to a resource, please include the information from it that is necessary to fix the issue in case the link goes dead. – austinian Jul 24 '15 at 15:41

Reinstall. THe server, then MSSQL.

share|improve this answer
Reinstalling Windows is not an option. – nbolton May 5 '10 at 14:18
Then you have no option. THis is an OS level error - and I would NOT have a database server with a broken OS level function around ever. – TomTom May 5 '10 at 15:38
It's a dev machine. – nbolton May 6 '10 at 9:17
Even more so ;) Obviously the dev did something that damaged the OS partially ;) – TomTom May 6 '10 at 9:46

in my opinion there are only two reasons of failed installtion of sql server. First you have a virus infected first scan windows drive with some best antivirus like 360security or panda global protection etc. if your windows is not infected by any virus then there is problem of sqlserver installation setup files.Then get another new copy of sqlserver to install. And i hope problem will be solved. Thanks Rana Imran

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.