I recently corrupted my Windows Management Instrumentation (WMI) whilst searching for malware. This made it nigh on impossible to restore my system to an earlier point.
The following technique from WindowsITPro enabled me to restore it.Start a command-line session.
Unregister any WMI service (also known as WinMgmt) performance libraries by typing
winmgmt /clearadap
Stop all running copies of the WMI service by typing
winmgmt /kill
Unregister the WMI service by typing
winmgmt /unregserver
Register the WMI service by typing
winmgmt /regserver
Register any WMI service performance libraries by typing
winmgmt /resyncperf