Solved

Writing to the Event log

Posted on 2004-09-27
3
131 Views
Last Modified: 2010-05-18
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
0
Comment
Question by:stewatts
  • 2
3 Comments
 
LVL 1

Expert Comment

by:jrgn
ID: 12160238
You can use the resourcekit tool logevent.

Cheers,

Jurgen
0
 
LVL 23

Accepted Solution

by:
Danny Child earned 20 total points
ID: 12160307
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
 
LVL 23

Expert Comment

by:Danny Child
ID: 12174077
cheers!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Data breaches are on the rise, and companies are preparing by boosting their cybersecurity budgets. According to the Cybersecurity Market Report (http://www.cybersecurityventures.com/cybersecurity-market-report), worldwide spending on cybersecurity …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question