WMI method call failed

Veeam Endpoint Backup;Veeam Agent for Microsoft Windows
1.x, 2.x
Last Modified:


Veeam Endpoint Backup UI crashes with error “WMI method call failed”

The follwing log file C:\Program Files\Veeam\Endpoint\UI.Tray.user name.log contains these error messages:

Error    Error occured while calling to WMI. Query: [SELECT LastBootUpTime FROM Win32_OperatingSystem WHERE Primary='true'].
Error    Dispatch thread will be restarted: fault detected. Waiting [5 sec].
[Error    Invalid class  (System.Management.ManagementException)


The WMI repository is corrupted


 Open the command line as administrator and run 

winmgmt /verifyrepository

If the output report inconsistency (WMI repository is inconsistent), follow the steps below.

You will need to re-register all of the dlls and recompile the .mofs in the wbem folder and re-registering WMI Service and Provider. You can use the following script by saving to txt file. You can rename it to .bat and run it from command prompt with administrator rights and change focus to following directory: C:\Windows\System32\Wbem.
echo off
sc config winmgmt start= disabled
net stop winmgmt /y
cd %windir%\system32\wbem
for /f %%s in (‘dir /b *.dll’) do regsvr32 /s %%s
wmiprvse /regserver 
winmgmt /regserver 
sc config winmgmt start= auto
net start winmgmt
for /f %%s in (‘dir /s /b *.mof *.mfl’) do mofcomp %%s

After running the script, reboot the machine and re-run winmgmt /verifyrepository.

More Information

IMPORTANT: Deleting and rebuilding the WMI repository can damage the system or the installed applications.

​If you choose to re-create the WMI repository, you will be doing so at your own risk.

In case the method above does not resolve the issue, check the solution described here.

Please be aware that we’re making changes which will restrict access to product updates for users without an active contract.


Rate the quality of this KB article: 
4 out of 5 based on 11 ratings

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.

Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text: