How to fix and rebuild corrupt WMI

From Yggenyk
Revision as of 05:51, 19 October 2017 by WikiSysop (talk | contribs) (WikiSysop moved page How to fix corrupt WMI to How to fix and rebuild corrupt WMI without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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

<google>ENGELSK</google>

id=siteTree