WMI Repository Inconsistent: How to Verify and Repair It in Windows 11 and 10

Last reviewed: November 25, 2026. This guide on a WMI repository inconsistent error was compared with the Microsoft documentation we could open, and none of its steps were run on a real PC.
When a script, a management tool or a system report fails with a WMI error, the WMI repository can be part of the cause. A WMI repository inconsistent problem means the stored WMI data no longer agrees with itself, so classes or providers can look missing. This guide starts with read-only checks, then follows a safe repair order that uses the built-in winmgmt tool. WMI is separate from the Registry Editor work covered in most of our registry guides, so do not treat a regedit fix as the answer here. For other repair topics, browse the PC repair guides on this site.
Quick answer: is your WMI repository inconsistent?
Quick answer
- The usual sign is a WMI error in a script or tool, such as 0x80041010 (Invalid class) or a message about an invalid namespace.
- Start with a restart, then read-only checks: winmgmt /verifyrepository, the WMI service state and the WMI-Activity log.
- Run DISM and then SFC next, because other system damage can surface as WMI errors.
- Only if verification reports the repository as inconsistent, try winmgmt /salvagerepository.
- Use winmgmt /resetrepository only as a last resort, after a backup and a restore point.
In this guide
- Quick answer
- Safety first: backups and restore points
- What the WMI repository is and what inconsistent means
- Symptoms and error codes
- The escalation route at a glance
- Decision tree
- The safe repair order, step by step
- What not to do
- When to stop and get help
- Frequently asked questions
- How this guide was checked
- Sources
Safety first: backups and restore points
Read before any change
Most steps here only read information. The salvage and reset steps change WMI data, so back up your important files before you reach them. Read how to back up before registry changes for the general approach. Create a restore point, and read what System Restore does to the registry so you know its limits. If the PC uses BitLocker, keep the recovery key somewhere safe before you restart or restore anything. If this PC is managed by your organization, ask the administrator before you change anything. On a PC managed by work or school, IT should handle WMI repairs.
What the WMI repository is and what inconsistent means
What WMI does
Windows Management Instrumentation, or WMI, is Microsoft's infrastructure for management data and administrative operations on Windows. Scripts and management tools ask WMI for information through classes and namespaces, and providers supply the data behind them. Microsoft's start page describes WMI as a way to access and supply management data across the operating system.
Where the repository fits
The WMI repository is the store that holds WMI's class definitions and static data. Microsoft's troubleshooting page treats it as a component that can be damaged. We could not open a Microsoft page that confirms its exact folder. The commonly reported location is a Repository folder inside the wbem folder under System32, but that is not confirmed here.
The repository is separate from the Registry Editor. Microsoft's pages we opened do not say where every WMI file is stored, so we do not claim more than that. For the registry basics first, see registry hives, keys and values.
What inconsistent means
Inconsistent means the repository's data no longer agrees with its own structures. Microsoft's troubleshooting page says that repository corruption may masquerade as classes or instances "not found". That is why a missing-class error does not always mean a missing app.
WMI errors can also come from outside WMI. Microsoft's error constants page says WMI errors may not indicate a problem in the WMI service or in a provider, because failures can start elsewhere in Windows and reach WMI as errors. A DCOM 10016 entry in the System log is one example; see DCOM event ID 10016 in Windows 11. So verification comes before any repair. Remote procedure call failures are another outside cause; see our RPC server is unavailable guide.
Symptoms and error codes
Match the message you see to the table. Rows marked Documented use a name and value that Microsoft lists on its WMI error constants page, which we opened. Rows marked commonly reported are not confirmed by Microsoft.
| Symptom or message | Code and name | Status |
|---|---|---|
| A script stops with an invalid class message | 0x80041010 WBEM_E_INVALID_CLASS | Documented |
| A tool reports an invalid namespace | 0x8004100E WBEM_E_INVALID_NAMESPACE | Documented; the words invalid namespace are commonly reported |
| A WMI query is refused | 0x80041003 WBEM_E_ACCESS_DENIED | Documented |
| A provider fails to load | 0x80041013 WBEM_E_PROVIDER_LOAD_FAILURE | Documented |
| An object or instance cannot be found | 0x80041002 WBEM_E_NOT_FOUND | Documented |
| A provider is not registered | 0x80041085 WBEM_E_PROVIDER_NOT_REGISTERED | Documented |
| A backup or restore is refused because WMI is using the repository | 0x80041060 WBEM_E_BACKUP_RESTORE_WINMGMT_RUNNING | Documented |
| Writes fail when the repository is full | 0x8004103B WBEM_E_OUT_OF_DISK_SPACE | Documented: disk full. A 4 GB repository limit is an outside figure that Microsoft's winmgmt page does not document. |
A code such as 0x80041010 does not prove the repository is broken. A missing or unregistered provider can return the same code. That is why the checks in the steps below come first. For a similar failure in a program that starts, see class not registered error in Windows 11.
The escalation route at a glance
Work down the route in order. Each stop either clears the problem or narrows the cause.
- Restart and retry. If the error clears, watch for a return and stop there.
- Verify. Run the read-only verification and note whether it reports consistent or inconsistent.
- Service and log. Confirm the WMI service runs and read the WMI-Activity log near your failure time.
- DISM, then SFC. Repair other system damage with the built-in tools.
- Salvage. Only if verification said inconsistent, run the salvage command and verify again.
- Reset. Last resort only, after a backup and a restore point.
Decision tree
Answer the questions from the top. Each branch points to the next step.
- Does the error stop after a restart?
- Yes: note the code and keep an eye on it.
- No: continue to the next question.
- Does winmgmt /verifyrepository report the repository as consistent?
- Yes: the repository is not the first suspect. Check the service and log, then run DISM and SFC.
- Inconsistent, or the command cannot run: continue to the next question.
- Is the WMI service stopped, or does the log name a provider?
- Yes: check the provider's software and its repair steps, then run DISM and SFC.
- No: run DISM and SFC.
- After DISM and SFC, does verification still report inconsistent?
- Yes: run salvage, then verify again.
- Still failing after salvage: reset is the last resort, with a backup in place.
The safe repair order, step by step
Step 1: Restart and retry
Restart the PC, then repeat the exact script or tool command once. Note the error code and the time. A failure that happened during a bad start-up can clear.
You should see the tool work, or fail in a way you can compare with the table above.
If this fails: keep the code and move on. Do not repeat changes in a loop.
Step 2: Run the read-only verification
Open Command Prompt. If the result says access is denied, open it with Run as administrator. Run this command. It only checks the repository.
winmgmt /verifyrepository
Microsoft's winmgmt reference describes this command as a consistency check of the live repository. The result is commonly reported as a single line saying the repository is consistent or inconsistent. Read the exact wording on your own screen rather than relying on this guide.
You should see one result line that says whether the repository is consistent or inconsistent.
If this fails: if the command is not recognised, or it reports access denied, write down the message and continue. Do not use command loops from forums in its place.
Step 3: Check the WMI service, read only
The WMI service is named winmgmt. Run this command to read its state. It changes nothing.
sc query winmgmt
You can also open Services, find Windows Management Instrumentation, and read its Status column. Do not change its startup type and do not stop it to test.
You should see the state reported as running.
If this fails: a stopped service that will not stay running points to a service problem. Read service control manager errors in Windows 11 for start-up failures. If the service is missing from the list, read the missing service error 1060 guide.
Step 4: Read the WMI-Activity log
Open Event Viewer and go to Applications and Services Logs, then Microsoft, Windows, WMI-Activity, and Operational. Microsoft's logging page confirms that WMI events are available through Event Viewer and the wevtutil command, but we did not confirm this exact path on a Microsoft page, so treat it as the commonly used route. Look at error entries near the time of your failure, and note the provider name and the code. Read only: do not clear the log.
You should see error entries that match your failure time, sometimes naming a provider. If an entry names a performance counter provider, see rebuilding corrupted performance counters with lodctr /R.
If this fails: the log may be empty or the entries may not name a provider. Note that and continue to the next step.
Step 5: Run DISM, then SFC
Damaged system files can surface as WMI errors, so check Windows' own image and files next. Follow our guides in this order: first the DISM guide, then the SFC guide. Both are repair steps, so the backup and restore point from the safety section apply.
You should see each tool finish with a result message.
If this fails: read the guide for the exact message. Do not replace system files by hand. When both finish, run winmgmt /verifyrepository again and note the result.
Step 6: Salvage the repository, only if verification said inconsistent
Run salvage only if the verification result from step 2, or the repeat after step 5, said inconsistent. Microsoft's winmgmt reference describes salvage as a consistency check that rebuilds the repository only if an inconsistency is detected, merging the content of the inconsistent repository into the rebuilt one if it can be read. It always works on the repository the WMI service currently uses.
winmgmt /salvagerepository
You should see the command finish, then a new verification result. Run winmgmt /verifyrepository again.
If this fails, or the result still says inconsistent: stop running repair commands. Note the codes, then go to the reset step only if you have the backup and restore point in place.
Step 7: Reset the repository, as a last resort
Last resort: this resets WMI
Microsoft's winmgmt reference describes reset as returning the repository to its initial state from when the operating system was first installed. Apps that added their own WMI providers after installation may stop working until they are repaired or reinstalled. Before you run it, back up your files, create a restore point, and list the apps you rely on. The WMI problem in our high-CPU guide also mentions this command, so read the WMI Provider Host guide before you go further.
winmgmt /resetrepository
You should see the command finish. Restart the PC once it does, then run winmgmt /verifyrepository again.
If this fails, or an app that used WMI now fails: record which apps are affected. Repair or reinstall those apps, and ask for help if the problem stays.
What not to do
- Do not delete the Repository folder by hand. Microsoft's error constants page says: "Under any circumstances, do not delete the WMI repository as a first action because deleting the repository can cause damage to the system or to installed applications."
- Do not stop or disable the WMI service permanently to test a theory.
- Do not run the long loops that re-compile every MOF file on the system, which forums often suggest. Microsoft does not document them as a first step, and they can break providers.
- Do not use a registry cleaner for WMI errors. Registry cleaners do not repair WMI data, and they can remove entries you need.
- Do not download single DLL files or run scripts from unknown sites.
When to stop and get help
Stop when verification still reports inconsistent after salvage, when the log names a provider from software you do not recognise, when the PC is managed by an organization, or when a reset would break business apps. Bring the error codes, the exact verification wording, the log entries and the times. If an error began right after an uninstall, leftover services can be part of the cause, so read leftover services and startup entries after an uninstall first. For a guided path that asks questions before suggesting steps, the Repair Assistant can help narrow the cause.
Frequently Asked Questions
About the errors and the repository
What does WMI repository inconsistent mean?
It means the stored WMI data no longer agrees with its own structures, so queries can fail or report classes as missing. Microsoft's troubleshooting page notes that corruption may look like "not found" errors.
Is the WMI repository the same as the registry?
No. It is separate from the Registry Editor work. The Microsoft pages we opened do not describe every file location, so do not edit registry keys to fix a WMI error.
Does error 0x80041010 always mean a corrupt repository?
No. Invalid class can come from a missing or unregistered provider as well. Run verification, check the service and read the log before you decide.
Should I delete the Repository folder?
No. Microsoft says not to delete the WMI repository as a first action, because it can damage the system or installed applications.
Repair steps and their limits
Does winmgmt /verifyrepository change anything?
It is a consistency check. Microsoft describes it as checking the live repository, or a saved copy of the entire repository folder if you give a path. Read the result wording on your own screen.
When should I run the salvage command?
Only when verification reports the repository as inconsistent, after DISM and SFC have run, and with a backup in place.
What does the reset command cost me?
Microsoft describes it as resetting the repository to its initial state from when the operating system was first installed. Apps that added WMI providers later may need repair or reinstallation, so reset is the last resort.
Does this guide fix high CPU in WmiPrvSE?
No. That problem has its own guide, and it is the right place to start for high CPU use by the WMI provider host. This article only covers errors from broken repository data.
How this guide was checked
We opened five Microsoft Learn pages: the WMI error constants page, the WMI troubleshooting page, the Logging WMI activity page, the Windows Management Instrumentation start page and the winmgmt command reference. The WMI repository page and the WMI service page each returned not found when we opened them. So the repository folder location and the service details are not confirmed here, and the text says so where it matters. The steps were compared with that documentation and were not run on a real PC. No screenshots are shown.