Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I had a problem with my Microsoft SQL Server 2008, importing data and generating scripts, so I decided to uninstall it. When I tried to remove it, I got an error from the check screen. The WMI service is corrupted, so I need a way to reset the WMI service.

Platform: Windows 7 64bit

I did try winmgmt /resetrepository

to no effect.

Short of reinstalling Windows, what can I do?

share|improve this question
up vote 1 down vote accepted

If its a file level corruption you could probably try the sfc /scannow command - this will check and replace any system files that are damaged.

share|improve this answer

I had the same problem and using Repair WMI from Tweaking.com fixed it.

share|improve this answer
    
The tool mentioned in this answer fixed the issue for me & as a bonus got the question re-opened. – cybermonkey Jan 10 '15 at 15:18

To fully rebuild the WMI Repository follow these steps:

  1. Disable and stop the winmgmt service.
  2. Remove or rename C:\Windows\System32\wbem\repository.
  3. Enable and start the winmgmt service.
  4. Open a cmd prompt as Administrator.
  5. In the cmd prompt navigate to C:\Windows\System32\wbem\
  6. Run the command for /f %s in ('dir /b *.mof') do mofcomp %s This will take a minute or so to complete.
  7. Run the command for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
share|improve this answer

Your Answer

 
discard

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.