Rebuild a corrupt WMI repository

If i run into client computers that have issues with WMI i usually run through these steps:

Run this command to verify WMI:

winmgmt /verifyrepository

If the above command returns “inconsistent” then i would run the following command:

winmgmt /salvagerepository

Then i would use verifyrepository again to check the state. If it is still “inconsistent” then i would run the following command:

winmgmt /resetrepository

This will stop the WMI service and rename the repository (C:\Windows\System32\wbem\repository) and start the WMI service.

This should resolve the WMI issues.

In case you are in a SCCM environment the affected computer would need its SCCM client reinstalled.