Solved

Adding events in eventlog from batchfile

Posted on 1998-09-12
3
259 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Are you one of those front-line IT Service Desk staff fielding calls, replying to emails, all-the-while working to resolve end-user technological nightmares? I am! That's why I have put together this brief overview of tools and techniques I use in o…
Trying to figure out group policy inheritance and which settings apply where can be a chore.  Here's a very simple summary I've written which might help.  Keep in mind, this is just a high-level conceptual overview where I try to avoid getting bogge…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 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