How Do I Resolve Error "Failed to load wmi" During the Agent Startup?
Symptom
When you started the Agent, message "SMS.1205 Failed to load wmi" was reported.
Possible Causes
Windows Management Instrumentation (WMI)-related files are missing or damaged. In Windows, the Agent uses the WMI module to collect source server information, such as CPU, memory, and disks details. The missing or damaged WMI-related files need to be restored.
- WMI will be stopped during the restoration. Confirm that stopping WMI will not affect services on the source server. The restoration will also change the files on the source server, which may involve certain risks. It is recommended that you perform the operations on a cloned source server first.
- If the issue persists, you can create an ECS by following the instructions provided in Creating a Windows ECS from an Image.
Restoring WMI
- Right-click This Computer in the navigation pane on the left in your file explorer and choose Manage from the shortcut menu.
- On the Computer Management page, choose Services and Applications > Services. Stop Windows Management Instrumentation.
- Change C:\Windows\System32\wbem\repository to C:\Windows\System32\wbem\repository_old.
- Start Windows Management Instrumentation.
- Open the cmd window as administrator.
- Run the following command to go to the C:\Windows\System32\wbem\ directory:
cd C:\Windows\System32\wbem\
- Run the following commands to restore WMI:
for /f %s in ('dir /b *.mof') do mofcomp %s
for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
- Restart the Agent.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.