×![]()
×
×![]()
×
×
Inventory Scan failure - WMI Service is Down / Disabled
Problem
You are unable to proceed with manual / scheduled Inventory Scanning and you get an error - "WMI Connection Failed"/"Asset Scan Locked" during the process.
Cause
Note
If you encounter the error message "Asset Scan is Locked," it indicates that dcinventory.exe has likely crashed. Please reach out to endpointcentral-support@manageengine.com for further assistance.
You will encounter this error due to one or more of the following reasons:
- Client machine is too slow due to reasons like high CPU/Memory utilization.
- WMI is not configured properly.
- WMI repository corrupted.
- WMI Service Disabled
Resolution
- To check if WMI Service is running
- To check if WMI Repository is corrupted
- To perform a repair/re-sync of the WMI repository
- To rebuild your WMI repository
To check if WMI Service is running:
- Open Services and check the "Windows Management Instrumentation" status is Running and startup type is Automatic
To check if WMI Repository is corrupted:
- Runwbemtest

- Connect to namespace root\cimV2

- Select query and enterSelect * from Win32_operatingsystem

- The above image depicts healthy wmi repository
- Incase error occurs in wbemtest, then rebuild/repair/resync the wmi repository.
To perform a repair/re-sync of the WMI repository
Run the following commands in Command Prompt as administrator on the machine being monitored:
For Windows XP and Windows 2000 Servers:
- To clear the WMI performance counter settings.
- To stop the WMI Service.winmgmt /kill
- To unregister the WMI service.winmgmt /unregserver
- To register the WMI service.winmgmt /regserver
- To re-synchronizes performance counters.winmgmt /resyncperf
winmgmt /clearadap
For Windows 2003 Servers:
- To recompile all MOF Files.wmiadap.exe /c
- To reload the performance library and rebuilds the performance counters.wmiadap.exe /f
- To reload all performance counters and their settings from the Windows registry.lodctr /R
- For Windows 7 and later versions, and Windows Server 2008:winmgmt /salvagerepository
To rebuild your WMI repository follow the below steps
- Open Services, locate the Windows Management Instrumentation service. Set the Startup Type to Disabled and Stop the Service.
- Remove or rename the Repository folder from the pathC:\Windows\System32\wbem\
- Once you have removed or renamed the Repository folder ,set the Startup Type as Enable and Start the Windows Management Instrumentation Service.
- Open Command Prompt as Administrator and execute the following commands:
- cd C:\Windows\System32\wbem\
- for /f %s in ('dir /b *.mof') do mofcomp %s
Kindly note that the above command will take a minute or so to complete. Once completed proceed with below command.
- for /f %s in ('dir /b en-us\*.mfl') do mofcomp en-us\%s
Open Performance Monitor to verify that all counters can be loaded
NoteIf you encounter an error in Performance Monitor, refer the Microsoft KB document for assistance.Verification
After completing all the steps, Verify if WMI service is running in the services.
- If the service is running, change the startup type to automatic
- Restart the WMI service to proceed with asset scan
If the above settings are already configured:
- Press Windows and R button to open RUN dialog, and enterwbemtest
- Click Connect and select Query.
- Execute the querySelect * from Win32_operatingsystem
- If this works, resume your inventory scan operation.