Solved

Writing to the Event log

Posted on 2004-09-27
3
130 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Server 2008 Server 2003 Server 2000 12 643
Why won't wireshark open my tcpdump file from linux 13 3,012
Making a spare domain pc 12 324
Problems executing VBS script in Windows 2000 16 164
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…
A customer recently asked me about anti-malware and the different deployment options available for his business. Daily news about cyberattacks, zero-day vulnerabilities, and companies that suffered a security breach made him wonder if the endpoint a…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now