How do I fix WMI corruption?

How do I fix WMI corruption?


  1. Disable and stop the WMI service. sc config winmgmt start= disabled (note that there is a blank between ‘=’ and ‘disabled’)
  2. Rename the repository folder (located at %windir%\System32\wbem\repository) to repository. old.
  3. Re-enable the WMI service.
  4. Reboot the server to see if the problem remains.

What causes WMI corruption?

If you’re getting that error this means that part of the operating system is broken. This is usually caused by partial (and failed) driver installation and/or “cleaner utilities”.

What does Winmgmt Salvagerepository do?

/salvagerepository Performs a consistency check on the WMI repository, and if an inconsistency is detected, rebuilds the repository.

How do I repair or rebuild WMI repository Windows 10?

Resetting the WMI Repository

  1. Press Windows+Q and type cmd into the search bar that pops up.
  2. Right-click on Command Prompt and select Run as Administrator.
  3. Type net stop winmgmt into the command prompt and press enter.
  4. When prompted if you wish to continue, type Y and press enter.

How do I start Winmgmt service?

To start Winmgmt Service At a command prompt, enter net start winmgmt [/]. For more information about the switches that are available, see winmgmt. You use the built-in Administrator account or an account in the Administrators group running with elevated rights to start the WMI service.

How do I disable Winmgmt service?

To stop Winmgmt Service At a command prompt, enter net stop winmgmt. Other services that are dependent on the WMI service also halt, such as SMS Agent Host or Windows Firewall.

How do I know if I have WMI corruption?

Confirm WMI is broken

  1. Launch the WMI MMC snapin: go to Start -> Run -> type wmimgmt.msc.
  2. Right click WMI Control (Local) and click Properties.
  3. If WMI is working correctly, you will see Successfully connected window as shown below.
  4. If you see Invalid class or any other error message then WMI is not working properly.

How do I check my 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.
  3. Run the following commands to repair WMI:

Why is Winmgmt/verifyrepository not working on Windows 10?

First ensure you have run winmgmt /verifyrepository to ensure that it is “ inconsistent ” and that you have tried winmgmt /salvagerepository to see if it resolves your issue. Change the startup type for the Window Management Instrumentation ( WMI ) Service to disabled.

How do I check if a WMI event has occurred?

Look for any of the following WMI event IDs: 28, 65, 5600, 5601, 5614. Any of these could indicate a WMI repository issue or core infrastructure problem. If you do not find any of these events logged, your next action is to use the built in repository checker. From an elevated command prompt run “winmgmt /verifyrepository “.

What does/verifyrepository do in WMI?

Performs a consistency check on the WMI repository. When you add the /verifyrepository switch without the argument, then the live repository currently used by WMI is verified. When you specify the path argument, you can verify any saved copy of the repository.

What is Winmgmt WMI service?

Winmgmt is the WMI service within the SVCHOST process running under the “LocalSystem” account. In all cases, the WMI service automatically starts when the first management application or script requests connection to a WMI namespace.