Lansweeper pulls Windows computer data from WMI (Windows Management Instrumentation), a management framework built into Windows operating systems. If WMI is corrupt on a Windows computer, Lansweeper will be unable to scan the machine and you may see errors like the ones below on the computer's Lansweeper webpage. These errors are generated by WMI itself and can generally be resolved by performing a WMI repair.
The interface is unknown
Invalid namespace \root\cimv2
Invalid namespace \root\default
Provider load failure
Specified cast is not valid
The specified module could not be found
Value does not fall within the expected range
The executable program that this service is configured to run in does not implement the service
The service did not respond to the start or control request in a timely fashion
Below are several options you can try to repair WMI on a client machine. Reboot the client computer after each step and verify whether the issue has been resolved by rescanning the machine. One way to rescan is by clicking the
Assets link at the top of the web console, ticking the checkbox in front of the asset and hitting the
Rescan button on the left. Wait for the Last Successful Scan or Last Scan Attempt date listed in the Summary tab of the computer webpage to update, indicating that a new scan attempt has taken place.
- Run this script on the client machine that's generating the WMI corruption errors. It recompiles all .mof WMI files found in the %windir%\System32\Wbem\Repository folder.
- Execute the commands below in an elevated Command Prompt on the client machine that's generating the WMI corruption errors. This is an alternate way of resetting the WMI repository to the initial state when the operating system was first installed.
Winmgmt.exe /standalonehost Winmgmt.exe /resetrepository
- Execute the command below in an elevated Command Prompt on the client machine that's generating the WMI corruption errors. It checks the integrity of Windows operating system files and attempts to repair errors it finds.
- If all else fails, reinstall the Windows operating system on the client machine that's generating the WMI corruption errors.