mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 13:53:05 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
26
tldr/windows/eventcreate
Normal file
26
tldr/windows/eventcreate
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# eventcreate
|
||||
|
||||
> Create custom entries in the event log.
|
||||
> Event IDs can be any number between 1 and 1000.
|
||||
> More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/eventcreate>.
|
||||
|
||||
- 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}}"`
|
||||
Reference in New Issue
Block a user