Forum Discussion
HKosova
Alumni
9 years agoYou can use the WMI class Win32_NTEventlogFile.
There're some examples here (mostly VBScript):
https://msdn.microsoft.com/en-us/library/aa394593(v=vs.85).aspx
https://community.smartbear.com/t5/TestComplete-Functional-Web/Win-7-Event-Viewer-logs/td-p/64424
https://blogs.technet.microsoft.com/heyscriptingguy/2007/09/07/how-can-i-backup-an-event-log-to-a-text-file/
https://blogs.technet.microsoft.com/heyscriptingguy/2005/01/04/how-can-i-return-only-the-last-record-written-to-an-event-log/