Wednesday, April 13, 2011

Fix for Unable to Update/Install SQL 2005 :: Failed to compile the Managed Object Format (MOF) file

I resolved this problem on a Vista Business machine by rebuilding the repositories as follows

Open a Command Prompt and type:
net stop winmgmt
ren C:\windows\System32\Wbem\Repository C:\windows\System32\Wbem\Repository.old
net start winmgmt

If using Windows Vista - this command will check for inconsistances, and make repairs as needed.
winmgmt /salvagerepository

If using Windows XP - this command will detect, and repair inconsistancies.
rundll32 wbemupgd, UpgradeRepository

Next you will need to register the .DLL files associated with WMI Repository.
cd /d C:\windows\system32\wbemfor %i in (*.dll) do RegSvr32 -s %i

Once these commands ran successfully, I rebooted the pc, and then reinstalled the update successfully. :)

For Web Design Assistance

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...
Web Design & Marketing - Click and get an instant quote on your project