Solved

Adding events in eventlog from batchfile

Posted on 1998-09-12
3
239 Views
Last Modified: 2013-12-23
How can i add events to the application eventlog using a .cmd file running in cmd.exe .
I scheduled a .cmd file to run at specific times but i'd like to be able to verify that the commandfile started because on the first line of the .cmd file i will run a command putting some text in the evenlog. Are there any tools for this ?
0
Comment
Question by:srodenburg
3 Comments
 
LVL 1

Expert Comment

by:gasim
ID: 1562073
Raise your points and I'll give you the solution!
0
 
LVL 5

Accepted Solution

by:
carmine earned 50 total points
ID: 1562074
The Resource Kit(s) contain LOGEVENT.EXE which allows a batch job (or command line) to log events to the Application Event Log.


Usage:

     LOGEVENT [-m \\MACHINENAME] [-s SIWEF] [-c CategoryNumber] "Event Text"

0
 

Author Comment

by:srodenburg
ID: 1562075
Thanks Carmine. Gasim is a bit greedy. Raise point for this easy question. Yeah right...
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IPhone using PC internet 17 68
Windows 10 Domain Account Not Logging in away from office 17 64
Why does my public IP keep changing? 6 79
Cannot Change Local DNS 9 63
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Resolve DNS query failed errors for Exchange
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 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