Solved

Batch file history

Posted on 2014-03-01
3
724 Views
Last Modified: 2014-03-01
Is there a way to find out when a batch file was ran?  Is there a history log?
0
Comment
Question by:gloyola1
3 Comments
 
LVL 93

Assisted Solution

by:John Hurst
John Hurst earned 250 total points
ID: 39898047
No, not unless you make one.

You need to add a line in your batch file to copy some text to a file. Do this as the last line.  The line would look like:  echo 123 >> c:\temp\file1
0
 
LVL 23

Accepted Solution

by:
Mysidia earned 250 total points
ID: 39898053
You can alter a .BAT file  to include the generation of a history record or log entry, as one of the extra things the script does, every time the file is run.     But there is no log or history of someone manually running the batch file.

On the other hand, if run using a Windows scheduled task:

There is such a thing as a log of executed scheduled tasks in Windows: http://technet.microsoft.com/en-us/library/cc783861(v=ws.10).aspx


You can also setup security auditing for Read/Execute access on the file,
and turn on 'Object Auditing' of success events using Windows Group policy,
and then review the Windows security log for audited events against the file;
however,  these steps require additional preparation,

and  do not distinguish running from opening the file in notepad.
0
 

Author Closing Comment

by:gloyola1
ID: 39898109
Thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Hi Friends, These registry tweaks will help you optimizing your Windows 7 system for any VDI. This will improve the machine performanance and can be used on normal systems also. These are few registry tweaks which will add value by enhancing the …
OfficeMate Freezes on login or does not load after login credentials are input.
This Micro Tutorial will teach you how to the overview of Microsoft Security Essentials. This is a free anti-virus software that guards your PC against viruses, spyware, worms, and other malicious software. This will be demonstrated using Windows…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

792 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