Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding events in eventlog from batchfile

Posted on 1998-09-12
3
Medium Priority
?
283 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 200 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
An article on effective troubleshooting
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

885 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