Rebuilding the WMI Repository
For Windows Vista, Windows 7, Windows Server 2008, and Windows Server 2008 R2, you can run
winmgmt /verifyrepository
from a command prompt.
For Older OS like Windows XP and Windows Server 2003 run: WmiDiag tool with the checkconsistency option. For example: WmiDiag checkconsistency
If repository is found to be inconsistent:
a. For Vista and newer, run from elevated command prompt:
Winmgmt /salvagerepository
Note this command will take the content of the inconsistent repository and merge it into the rebuilt repository if it is readable
If the above doesn’t work, then run:
Winmgmt /resetrepository
Note this will reset repository to the initial state when the OS was first installed