No problem on late response, working on this in spare time. This does work for us.
We’re trying to figure out how to run this in response to an event log alert being triggered, and have it email the results. No luck so far as I don’t have the option to email remediation script results, which would be really handy for other stuff as well.
We’ll probably end up trying to get the individual event log monitors set up as specific Event ID queries using this script. My concern is that it will have a system performance hit due to the agent hitting the system with this query for dozens of individual event ID’s every 15-30 minutes. The problem is the event log monitors themselves force you to log in and find the associated events. This script at least lets us bring the event descriptions into Comodo to review, but our preferred method which we have used on other RMMs is to email the results where we can easily view and sort.