The performance difference between the two will be fairly negligible.
WMI event processor useage vs WMI query
-
22-09-2022 - |
Question
I want to be able to detect a change in the list of installed programs on a pc using wmi. I have 2 options 1- run a wmi query every X seconds and compare to a saved file containing the list. 2 - start a Wmi event that polls every X seconds.
Which uses less processing power give that I would like X to be 60 seconds?
Solution 2
OTHER TIPS
As it's a 'versus' : create a 'Task Schedule' triggering on "event:NewApp"
WMI for peek any changes is so heavy processing. "EventLogs + Scheduling a Task "are really relevant. ( if enabled )
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow