2018-10-05 14:12:10 +01:00
|
|
|
# eventcreate
|
|
|
|
|
|
|
|
> Create custom entries in the event log.
|
|
|
|
> Event IDs can be any number between 1 and 1000.
|
2020-09-16 13:19:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/eventcreate>.
|
2018-10-05 14:12:10 +01:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Create a new event with a given ID (1-1000) in the log:
|
2018-10-05 14:12:10 +01:00
|
|
|
|
|
|
|
`eventcreate /t {{success|error|warning|information}} /id {{id}} /d "{{message}}"`
|
|
|
|
|
|
|
|
- Create an event in a specific event log:
|
|
|
|
|
|
|
|
`eventcreate /l {{log_name}} /t {{type}} /id {{id}} /d "{{message}}"`
|
|
|
|
|
|
|
|
- Create an event with a specific source:
|
|
|
|
|
|
|
|
`eventcreate /so {{source_name}} /t {{type}} /id {{id}} /d "{{message}}"`
|
|
|
|
|
|
|
|
- Create an event in a remote machine's event log:
|
|
|
|
|
2020-10-04 18:33:38 +01:00
|
|
|
`eventcreate /s {{hostname}} /u {{username}} /p {{password}} /t {{type}} /id {{id}} /d "{{message}}"`
|