Eventcreate
Enables an administrator to create a custom event in a specified event log.
Syntax
Parameters
Remarks
- Custom events cannot be written to the security log.
- By default, eventcreate registers itself as the default event source for the Application log. Eventcreate can only be registered for one log at a time. If the default source is set to the Application log, any event created in the System log must have some /so source value listed explicitly.
Examples
eventcreate /t error /id 100 /l application /d "Create event in application log"
eventcreate /t information /id 1000 /so winmgmt /d "Create event in WinMgmt source"
eventcreate /t error /id 1000 /so winword /l application /d "new src Winword in application log"
eventcreate /s server /t error /id 100 /l application /d "Remote computer without user credentials"
eventcreate /s server /u user /p password /id 100 /t error /l application /d "Remote computer with user credentials"
eventcreate /s server1 /s server2 /u user /p password /id 100 /t error /so winmgmt /d "Creating events on Multiple remote computers"
eventcreate /s server /u domain\user /p password /t warning /l SYSTEM /so winmgmt /id 100 /d "Creating events on Multiple remote machines"
Formatting legend
Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |