In addition to using Event Viewer, you can use command-line utilities to create and query event logs and associate programs with particular logged events. For example, you can use Eventcreate.exe to create customized event logs. Eventquery.vbs is used to list the events and event properties from one or more event logs. Eventtriggers.exe enables you to create event triggers that will run programs upon the occurrence of specific event log events.
For information about other command-line utilities, see Command-Line Reference