How to fix and rebuild corrupt WMI: Difference between revisions

From Yggenyk
Jump to navigation Jump to search
(Created page with "Category:English pages Category:Windows tips and tricks ====First==== Click Start, click Run, type wmimgmt.msc, and then click OK. Right-click WMI Control (Local), an...")
 
No edit summary
Line 8: Line 8:
====Easy repair====
====Easy repair====
Try this ‘easy’ repair:
Try this ‘easy’ repair:
# In the start menu type "cmd"
# In the start menu type '''cmd'''
# Type "net stop winmgmt" and press Enter
# Type '''net stop winmgmt''' and press Enter
# 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').
# 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').
# restart the computer
# Restart the computer
# In the start menu type "cmd"
# In the start menu type '''cmd'''
# Type "net stop winmgmt" and press enter
# Type '''net stop winmgmt''' and press enter
# Type "winmgmt /resetRepository" and restart the computer.
# Type '''winmgmt /resetRepository'''
# Restart the computer


====If it still fails====
====If it still fails====
Line 27: Line 28:
# In the CMD prompt Navigate to C:\Windows\System32\wbem\
# In the CMD prompt Navigate to C:\Windows\System32\wbem\
# Run the following command:
# Run the following command:
## for /f %s in ('dir /b *.mof') do mofcomp %s
#; for /f %s in ('dir /b *.mof') do mofcomp %s : Note: This will take a minute or so to complete.
Note: This will take a minute or so to complete.
# Now run the command:
# Now run the command:
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
#; for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s : Note: This will take a minute or so to complete.
# Note: This will take a minute or so to complete.
# Restart the computer
# Reboot PC


<google>ENGELSK</google>
<google>ENGELSK</google>

Revision as of 05:48, 19 October 2017

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