How to fix and rebuild corrupt WMI: Difference between revisions
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 | # In the start menu type '''cmd''' | ||
# Type | # 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 | ||
# In the start menu type | # In the start menu type '''cmd''' | ||
# Type | # Type '''net stop winmgmt''' and press enter | ||
# Type | # 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 : 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. | ||
# Restart the computer | |||
# | |||
<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:
- In the start menu type cmd
- 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').
- Restart the computer
- In the start menu type cmd
- Type net stop winmgmt and press enter
- Type winmgmt /resetRepository
- 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:
- Disable and stop the winmgmt service
- Remove or rename C:\Windows\System32\wbem\repository
- Enable and start the winmgmt service
- Open a CMD prompt as Administrator
- In the CMD prompt Navigate to C:\Windows\System32\wbem\
- Run the following command:
- for /f %s in ('dir /b *.mof') do mofcomp %s
- Note: This will take a minute or so to complete.
- 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.
- Restart the computer
<google>ENGELSK</google>