WMI with Python

35 views Asked by At

I like to get the last entry from SystemEventLog with EventCode 6006. With this Query:

SELECT * FROM Win32_NTLogEvent WHERE Logfile='System' AND EventCode='6006'

I get all the 6006 Events in the SystemEventLog. I've already tried LIMIT 1, LAST.

Is there a way to get only the last SystemEventLog entry with code 6006?

Thanks

0

There are 0 answers