How to fix and rebuild corrupt WMI

From Yggenyk
Jump to: navigation, search

First

Click Start, click Run, type wmimgmt.msc, and then click OK. Right-click WMI Control (Local), and then click Properties. Does it show any errors?

Easy repair

Try this ‘easy’ repair:

  1. In the start menu type cmd
  2. Type net stop winmgmt and press Enter
  3. Open a Windows Explorer and locate the path to C:\ windows\system32\WBEM\ folder and rename the Repository folder to something else like RepositoryOLD (right click and choose 'Rename Folder').
  4. Restart the computer
  5. In the start menu type cmd
  6. Type net stop winmgmt and press enter
  7. Type winmgmt /resetRepository
  8. Restart the computer

If it still fails

If that didn’t solve the problem try the following, take care and be concentrated about what you are doing (use copy and paste). 😊 (I have done this with success before)

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 following command:
    for /f %s in ('dir /b *.mof') do mofcomp %s 
    Note: This will take a minute or so to complete.
  7. Now run the command:
    for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s 
    Note: This will take a minute or so to complete.
  8. Restart the computer