Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging (Tracing) WMI queries?

Tags:

winapi

wmi

wbem

I've got a third-party program that's making WMI queries to local WMI providers (so it's not using DCOM, so packet-sniffers are out). I'd like to find out what queries these are.

It's also on XP, so the new Vista WMI tracing infrastructure is out, as well, unfortunately.

Any pointers?

like image 385
Roger Lipscombe Avatar asked Dec 05 '25 08:12

Roger Lipscombe


1 Answers

Have you tried setting the WMI logging level to Verbose using wmimgmt.msc? (More info on the MSDN Logging WMI Activity page)

You should then see the queries logged to the %windir%\system32\wbem\logs\wbemcore.log file.

-dave

like image 193
David Gardiner Avatar answered Dec 07 '25 17:12

David Gardiner



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!