Windows Server Summit 2024
Mar 26 2024 08:00 AM - Mar 28 2024 04:30 PM (PDT)
Microsoft Tech Community

WMI query not responding

Copper Contributor

Hello everyone,

I monitor VMs with a Monitoring tool that uses WMI query. 

There is one WMI query wich doesn't return values from the Windows server concerned by this issue.

  • The monitoring job is made from 4 WMI querys but only one doesn't work (I tested it via WBEMTEST).
  • The PID you can see in the query is correct

There is the query and the wbemtest status : 


select IDProcess,PercentProcessorTime,TimeStamp_Sys100NS,WorkingSet,IOReadOperationsPersec,IOWriteOperationsPersec from Win32_PerfRawData_PerfProc_Process where (IDProcess = 3036)



When I run this command : 

@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


It solve the problem but for few minutes only.

Thank you in advance for your help. 

0 Replies