Re-sync or rebuild the WMI Repository

Last Modified

Wed Apr 15 14:46 GMT 2020

Description

  • If your Windows device is having issues reading from the Windows Management Interface (WMI) repository, you may need to re-sync the repository as a troubleshooting step
  • Misconfigured Monitoring Service gives the following error:
    • "102 There is no information found for this WQL Query: Please check the parameters"

Environment

  • N-able N-central

Solution

To perform a repair/re-sync of the WMI repository, please do the following:
  • For Windows 2003 Servers:
wmiadap.exe /cwmiadap.exe /flodctr /R
  • For Windows Vista, Windows 7 and Windows 2008 Servers:
winmgmt /salvagerepository
  • In addition to the steps for Windows 2008 please review the following Microsoft article:
  • To perform a repair/re-sync of the Windows 10 WMI repository:
    1. Open an elevated command prompt.
    2. Verify the WMI repository is not corrupt by running the following command:
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.
  1. Run the following commands to repair WMI:
winmgmt /salvagerepository
  • If the repository salvage fails to work, then run the following command to see if it resolves the issue:
winmgmt /resetrepository
  • After the last command, there should be a "WMI Repository has been reset" message returned that verifies the command was successful.