How do I fix a corrupted WMI file?
Solution
- Disable and stop the WMI service. sc config winmgmt start= disabled. net stop winmgmt.
- Run the following commands. Winmgmt /salvagerepository C:\WINDOWS\System32\wbem. Winmgmt /resetrepository C:\WINDOWS\System32\wbem.
- Re-enable the WMI service and then reboot the server to see how it goes.
What is WMI corruption?
Windows Management Instrumentation failing due to repository being corrupted. The WMI Repository (%windir%System32WbemRepository ) is the database that stores meta-information and definitions for WMI classes; in some cases the repository also stores static class data as well.
How can WMI issues be resolved?
How to check WMI repository consistency
- Disable and stop the WMI service. sc config winmgmt start= disabled. (note the blank space before disabled)
- Run the following commands. Winmgmt /salvagerepository %windir%\System32\wbem. Winmgmt /resetrepository %windir%\System32\wbem.
- Re-enable the WMI service and reboot the machine.
How do I rebuild my WMI provider?
How to: Rebuilding the WMI Repository
- Disable and stop the WMI service. a. sc config winmgmt start= disabled b. net stop winmgmt.
- Run the following commands. a. Winmgmt /salvagerepository %windir%\System32\wbem b.
- Re-enable the WMI service and then reboot the server to see how it goes. a. sc config winmgmt start= auto.
How do I reset WMI service?
Type net stop winmgmt into the command prompt and press enter. When prompted if you wish to continue, type Y and press enter. Type winmgmt /resetrepository into the command prompt and press enter. Restart your computer to pick up the changes.
How do I fix WMI on Windows Server?
Ensure the Windows Management Instrumentation service is running. Try rebooting the system. For Windows 2000, Windows XP, and Windows Server 2003, download and run the WMI Diagnosis Utility. For Windows Vista, Server 2008, and Windows 7, run the “winmgmt /verifyrepository” command to check for an inconsistent …
How do you troubleshoot WMI?
How do I reset WMI provider host?
1) On your keyboard, press the Windows logo key and R at the same time, then type in the search box services. msc and press Enter. 2) Press W key to fast locate Windows Management Instrument service. Right-click it and select Restart.