Windows2003-3790/termsrv/setup/tsdiag/evntutl
2020-09-30 16:53:55 +02:00
..
dlldata.c First commit 2020-09-30 16:53:55 +02:00
dlldatax.c First commit 2020-09-30 16:53:55 +02:00
dlldatax.h First commit 2020-09-30 16:53:55 +02:00
event.cpp First commit 2020-09-30 16:53:55 +02:00
event.h First commit 2020-09-30 16:53:55 +02:00
event.rgs First commit 2020-09-30 16:53:55 +02:00
events.cpp First commit 2020-09-30 16:53:55 +02:00
events.h First commit 2020-09-30 16:53:55 +02:00
events.rgs First commit 2020-09-30 16:53:55 +02:00
evntutl.cpp First commit 2020-09-30 16:53:55 +02:00
evntutl.def First commit 2020-09-30 16:53:55 +02:00
evntutl.h First commit 2020-09-30 16:53:55 +02:00
evntutl.idl First commit 2020-09-30 16:53:55 +02:00
evntutl.rc First commit 2020-09-30 16:53:55 +02:00
log.cpp First commit 2020-09-30 16:53:55 +02:00
log.h First commit 2020-09-30 16:53:55 +02:00
log.rgs First commit 2020-09-30 16:53:55 +02:00
logs.cpp First commit 2020-09-30 16:53:55 +02:00
logs.h First commit 2020-09-30 16:53:55 +02:00
logs.rgs First commit 2020-09-30 16:53:55 +02:00
makefile First commit 2020-09-30 16:53:55 +02:00
readme.txt First commit 2020-09-30 16:53:55 +02:00
resource.h First commit 2020-09-30 16:53:55 +02:00
sources First commit 2020-09-30 16:53:55 +02:00
stdafx.cpp First commit 2020-09-30 16:53:55 +02:00
stdafx.h First commit 2020-09-30 16:53:55 +02:00
types.h First commit 2020-09-30 16:53:55 +02:00
view.cpp First commit 2020-09-30 16:53:55 +02:00
view.h First commit 2020-09-30 16:53:55 +02:00
view.rgs First commit 2020-09-30 16:53:55 +02:00

The EventLogUtilities objects are structured much like the EventLog viewer.
The main object is View, it can be used to access the various event logs on a system (View.Logs) and to change which server the event logs will be obtained from.
The Logs object can be used to enumerate through the primary logs:  Application, Security, and System.  To access other logs, use Logs.Item("NameOfLog").
The Log object provides access to the Events object which holds the collection of events for a particular log.
An Event object is the bottom level object and contains the properties which make up an event.  Note:  event time is given as local system time.

Example Use from VBScript:

Set oView = CreateObject("EventLogUtilities.View")

for each oLog in oView.Logs
	for each oEvent in oLog.Events
		wscript.echo oEvent.Description
	next
next