Displays events stored in event logs.
Eventcreate[.vbs] [/s computer [/u domain\user [/p passwd]] [/fi filter] [/fo table | list | csv] [/r evtrange] [/nh] [/v] [/l [application] | [system] | [security] ["DNS server"] [userlog] [dirlogname] [*]]
Parameters | |
---|---|
| |
Parameter | Purpose |
| |
[/s] | Specifies the name of the target computer. |
[/u] | Executes the command using the permission assigned to the specified user. |
[/p] | Specifies the user's password. |
[/fi filter] | Identifies the events to be included. |
[/fo table | list | csv] | Specifies the format for the command output. |
[/r evtrange] | Specifies the range of events to be displayed. N lists the n most recent events in the log. -n lists the n oldest event in the log. n1-n2 lists the events in the specified range. |
[/nh] | Suppresses the display of column headers. |
[/v] | Specifies verbose output. |
[/l application | system | security] | Specifies the target event log. |
['DNS server'] | Can be specified only if DNS is active on the target computer. |
[userlog] | A user-defined log to be processed. |
[dirlogname] | A directory log to be processed. |
[*] | Specifies all logs. |