The Windows Management Instrumentation (WMI) service is the hidden backbone of Windows 11. It is a massive database repository that tracks the status of every piece of hardware, software, and network configuration on your PC. Third-party applications (like antivirus software), the Windows Task Manager, and the System Information (msinfo32) tool constantly query the WMI repository to request data.
If the physical WMI repository database files become corrupted, all of these diagnostic tools break simultaneously. The Task Manager might show 0% CPU usage across all tabs, the System Information window might display “Cannot collect information,” and administrative scripts will fail with the error code 0x80041002 (WBEM_E_NOT_FOUND). You must salvage or rebuild the database using the Windows Management Instrumentation Command-line (WMIC) utility.
How to Completely Rebuild the Windows 11 WMI Repository
You must use an administrative Command Prompt to perform a salvage and rebuild operation on the WBEM directory.
- Click the Start button, type cmd, and click Run as administrator on the right side of the search menu. (Click “Yes” on the UAC prompt).
- First, you must check if the repository is actually corrupted. Type this command and press Enter:
winmgmt /verifyrepository - If it says “WMI repository is INCONSISTENT,” proceed to the next step. (Even if it says consistent, a rebuild is still safe to attempt if you are experiencing severe errors).
- Type the following command to attempt a safe salvage of the existing data:
winmgmt /salvagerepository - If the salvage command fails, you must completely rebuild the repository from scratch. You must first stop the WMI service. Type this command and press Enter:
net stop winmgmt(Press Y if prompted to stop dependent services like the Security Center). - Next, type the ultimate reset command and press Enter:
winmgmt /resetrepository
You will see a message stating “WMI repository has been reset.” Close the Command Prompt and immediately restart your computer. When Windows 11 boots back up, it will take the static Managed Object Format (MOF) files stored on your hard drive and compile them into a brand-new, uncorrupted WMI database, restoring functionality to your Task Manager and diagnostic tools.