The Managed Object Format (MOF) files define the Windows Management Instrumentation (WMI) classes that are stored in the WMI Repository. If the repository becomes corrupted or the WMI class definitions are damaged, WMI queries may fail or return incomplete data, resulting in monitoring failures.
This article explains how to repair or rebuild the WMI repository on the target Windows server.

Disable and stop the Windows Management Instrumentation service.
Create a backup of the following directory:

Open Command Prompt with Run as Administrator and navigate to the following directory:

Execute the following commands one by one:
for /f %s in ('dir /b /s *.dll') do regsvr32 /s %s
for /f %s in ('dir /b /s *.mof') do mofcomp %s
for /f %s in ('dir /b /s *.mfl') do mofcomp %s
Enable and start the Windows Management Instrumentation service.
When using the commands above, replace %windir% with the appropriate Windows installation directory if required:
| Operating System | Windows Directory |
|---|---|
| Windows 2000 | winnt |
| Windows Server 2003, Windows XP, Windows Server 2008 | windows |
| Other Windows versions | Windows |
Open Command Prompt with Run as Administrator.
Execute the following command:

If the following message is displayed:
WMI Repository is consistent
The repository is healthy. The issue is likely caused by another WMI component.
If any other message is returned, continue with the repair steps below.
Run the following command:

If the repair is successful, verify whether the monitoring issue has been resolved.
If the previous command does not resolve the issue:
Stop the Windows Management Instrumentation service.
Execute:

If successful, the following message is displayed:
WMI Repository has been reset
Start the Windows Management Instrumentation service and verify whether WMI queries execute successfully.
Execute the following commands:

Execute the following commands:

After repairing or rebuilding the repository:
For additional information, refer to the following Microsoft articles: