The Windows Management Instrumentation (WMI) Repository, located at "%windir%System32\Wbem\Repository," stores meta-information and definitions for WMI classes. In some cases, it also stores static class data. If the WMI Repository becomes corrupted, the WMI service will not function correctly.
Rebuilding the WMI Repository should be a last resort, as it can cause system or application damage. Other troubleshooting steps should be taken first to eliminate other possibilities or confirm repository corruption. A large WMI Repository may cause issues that resemble corruption but are not. If this is the case, rebuilding is the only method to reduce the repository size.
It is advisable to capture a WMIDiag report for any WMI-related issues.
If the WMI Repository is corrupted, you may encounter various errors depending on the activity being performed. Examples include:
Trying to protect an agent you may see the following error in the agent logs:
ERROR 2023-10-26T21:57:16 Replay.ServiceHost.Implementation.Hosting.ServiceHost (RequestUri=https://AgentName:8006/apprecovery/api/agent/metadata/summaryMetadata ClientAddress=xxx.xxx.xxx.xxx:55248)
Service Host Error: Service error while handling request [PUT https://AgentName:8006/apprecovery/api/agent/metadata/summaryMetadata]: Not found
Request Uri: https://AgentName:8006/apprecovery/api/agent/metadata/summaryMetadata
Client Address: xxx.xxx.xxx.xxx:55248
Identity: DOMAIN\UserName
Service: Replay.Agent.Management.Metadata.AgentMetadataManagement
Method: GetCurrentSummary
System.Management.ManagementException depth 0: Not found (0x80131501)
WMI Repository corruption can be indicated by the following scenarios/errors:
You can test WMI using wbemtest or a PowerShell command. Refer to Knowledge Article Using WBEMTEST to test DCOM and WMI connections to remote Windows systems (4033088) (quest.com) for step-by-step instructions on testing WMI locally and remotely.
C:\Windows\System32\Wbem
:Verify Repository Consistency
winmgmt /verifyrepository
Salvage Repository
winmgmt /salvagerepository
Reset Repository
winmgmt /resetrepository
Rebuilding the WMI Repository may require reinstalling third-party applications and re-adding their MOF files to the repository.
© ALL RIGHTS RESERVED. Términos de uso Privacidad Cookie Preference Center