mirror of https://github.com/CrimsonTome/tldr.git
21 lines
638 B
Markdown
21 lines
638 B
Markdown
|
# eventcreate
|
||
|
|
||
|
> Create custom entries in the event log.
|
||
|
> Event IDs can be any number between 1 and 1000.
|
||
|
|
||
|
- Create a new event with a given id (1-1000) in the log:
|
||
|
|
||
|
`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:
|
||
|
|
||
|
`eventcreate /s {{hostname}} /u {{username}} /p {{password}} /t {{type}} /id {{id}} /d "{{message"}}`
|