Repair or reset the WMI Repository

Description

  • If your Windows device is having issues reading from the Windows Management Interface (WMI) repository, you may need to repair and rebuild 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 or reset the WMI repository, please review the below steps/run the following commands in an elevated/Administrative Command Prompt on the affected device to check, and repair the WMI repository:

  1. Verify the WMI Repository.

    • Run the command:

    winmgmt /verifyrepository

    • If the output is "Repository is not consistent", proceed to the next step.

  2. Attempt to Repair the Repository.

    • Run the salvage command to attempt to repair the repository by recovering and preserving as much data as possible:

    winmgmt /salvagerepository

  3. Verify the Repository Again.

    • Rerun the verify command to check if the repository repair was successful:

    winmgmt /verifyrepository

    • If the output is still"Repository is not consistent", proceed to the next step.

  4. Reset and rebuild the repository

    • Reset and rebuild back to the original state when the OS was first installed. This step can resolve more severe corruption issues:

    winmgmt /resetrepository

  5. Handle Errors During Reset

    • If you get the following error or similar Error: "WMI Reset Failed" , "A Stop Control has been sent to a service that other running services are dependent on.", then run these commands:

    net stop winmgmt /y

    winmgmt /resetrepository

  6. For more detailed information, see WMI Troubleshooting.