Error: SQL Server Setup Failed to compile the Managed Object Format (MOF) file C:\Program Files\Microsoft SQL Server\90\Shared\sqlmgmproviderxpsp2up.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 Message:
Causes:
- The problem is that the WMI repository is corrupted. Required to re-install the WMI.
- Windows Management Instumentation service might be stopped/disabled.
Workaround 1:
The above error indicates that the WMI repository might be inconsistent so to resolve the error we need to run the following command. Click Start | Run | type cmd | Click OK. Open command prompt as Run as Administrator type winmgmt /verifyrepository Click Enter. output: WMI repository is INCONSISTENT If the output shows that WMI repository is INCONSISTENT we need to run the following command to salvage the repository. type winmgmt /salvagerepository output: WMI repository salvage failed It may throw the following error when you fire the above command for the first time so run the command again as shown. type winmgmt /salvagerepository output: WMI repository has been salvaged Once the above precaution is being taken we can start with the installation of the sql server express and it should go fine.
Workaround 2:
Click Start | Run | type control | Click OK. Open Control Panel | Administrative Tools | Services | Right Click on “Windows Management Instrumentation” | Restart it.
Workaround 3:
Run WmiFix.bat. Download: WmiFix.bat