Forrest logo
back to the eventcreate tool

eventcreate:tldr:6c929

eventcreate: Create a new event with a given ID (1-1000) in the log.
$ eventcreate /t ${select} /id ${id} /d "${message}"
try on your machine

The command "eventcreate" is used to create a custom event in the Windows event log.

  • "/t ${select}" specifies the event type. ${select} is a placeholder that should be replaced with the desired event type. Possible values for ${select} include:

    • ERROR: to log an error event.
    • WARNING: to log a warning event.
    • INFORMATION: to log an informational event.
    • SUCCESS: to log a success audit event.
    • FAILURE: to log a failure audit event.
  • "/id ${id}" specifies the event ID. ${id} is a placeholder that should be replaced with a numeric value representing the event ID.

  • "/d "${message}"" specifies the event description. ${message} is a placeholder that should be replaced with the desired text or message for the event description. The message should be enclosed in double quotes.

Overall, this command is used to create a custom event in the Windows event log with a specified type, ID, and description/message.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the eventcreate tool