rebuild WMI repository

rebuild WMI repository


For Windows 7 and Windows 2008 Servers:
  1. winmgmt /salvagerepository
To perform a repair/re-sync of the  Windows 10 WMI repository:
Open an elevated command prompt.
Verify the WMI repository is not corrupt by running the following command:
  1. winmgmt /verifyrepository
If the repository is not corrupted, a “WMI Repository is consistent” message will be returned; if you get something else, go to step 3, otherwise if the repository is consistent, more troubleshooting will be required as the repository is not likely the problem.
Run the following commands to repair WMI:
  1. winmgmt /salvagerepository
If the repository salvage fails to work, then run the following command to see if it resolves the issue:
  1. winmgmt /resetrepository
  • salvagerepository: This option when used with winmmgmt command performs a consistency check. If an inconsistency is detected, it rebuilds the repository.
  • verifyrepository: Performs a consistency check on the WMI repository.
  • resetrepository: The repository is reset to the initial state when the operating system is first installed

or try