Writing to the Event log

Hi

I am sure there is a tool that will let you write to the event log (command line). Can anyone remind me what it is please?

Many thanks

Ste
stewattsAsked:
Who is Participating?
 
Danny ChildConnect With a Mentor IT ManagerCommented:
logevent.exe from the Server 2000 Resource Kit will do the job:

logevent -m \\<servername> -s W -t 50 -r "UPS triggering shutdown" -e 1 "MainBodyText"

-m = name of machine where you want the event log written
s = severity
  S: Success
  I: Information (This is the default setting. If you do not specify a severity level, Logevent.exe uses I.)
  W: Warning
  E: Error
  F: Failure
-t = timeout, default is 60,000 seconds
-r = event heading
-e= event type, 1 is default (not mandatory)

I use it when my UPS triggers remote shutdowns, and it works pretty well.  
0
 
jrgnCommented:
You can use the resourcekit tool logevent.

Cheers,

Jurgen
0
 
Danny ChildIT ManagerCommented:
cheers!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.