- How to know whether a particular event (given event ID, time and node as inputs) is logged or not? [In this case, I know only one event will be logged]
- If the event is logged, how do I get details like event description, Log-name etc..
for eg, I want to query for an event under the node Applications and Services Logs > Microsoft > Windows > groupPolicy > Operational, and event id is 5315 and time is current time.
There are a few new twists if your going to query events from the new style Windows EventLogs.
This sample shows some of the new access methods, cheers.
You could query the event log in question:
However, be warned that this approach is slow, since the
Entries
collection tends to be quite big.