event generation for id above 1000
I am trying to generate system and application events for event ids above 1000. This is for testing event generation and traps.
I have used eventcreate for ids below 1000.
Can you help.
September 20th, 2011 9:02am
Hi,
To generate event id above 1000, you may need LogEvent.exe. Eventcreate lets you generate event id between the range of 0 – 1000 only whereas with
LogEvent you can use the integers from 0 – 65535.
The syntax for the LogEvent.exe utility is:
LogEvent -M \\computername –S
<Severity> –C <CategoryNumber> –R
<Source> –E <EventID> –T
<TimeOut> Event Description
where -M \\computername is the computer on which you want to generate the event id. If omitted, the event will be registered on the local machine.
–S
<Severity> is the Severity Level of the Event ID. Options are: W (Warning), I (Information), S (Success), E (Error), F (Failure). If omitted, Information will be selected by default.
–C
<CategoryNumber> is the category number for the logged event. If omitted, the number 0 will be displayed.
–R
<Source> is the Source of Event being generated. If the value contains space, please enclosed the string in quotes. If this value is omitted, the default value User Event will be used as source for the event.
–E <EventID>
is the Event ID for the event. Value can range from 0 to 65535. If omitted, default value of 1 is used.
–T
<TimeOut> is the time duration logevent.exe waits to create the event log entry. If omitted, default value of 60,000 milliseconds is used.
Event Description is the actual text of the Event log entry. This must be enclosed in quotes.
For the detailed information, please refer to the following articles:
LogEvent.exe – Utility to create custom events in the event log
http://winplat.net/post/2010/10/29/LogEventexe-e28093-Utility-to-generate-events-in-the-event-log-manually.aspx
How to manually generate Event ID using EventCreate command
http://www.winplat.net/post/2010/10/21/How-to-manually-generate-Event-ID-using-EventCreate-command.aspx
Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this
information.
Regards,Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
September 22nd, 2011 1:12am


