Task Scheduler - Alert when action file does not exist?

  • Thread starter Task Scheduler - action file does not exist alert
  • Start date
T

Task Scheduler - action file does not exist alert

I have a set of Windows Task Scheduler tasks where the action files regularly change file locations when applications are upgraded. If I accidentally update the task to a new directory where the file doesn't exist, Task Scheduler does not report any error.

Is there a place where an error would register? Ideally, I'd like to set up an email alert if Task Scheduler fails.

FYI - I am also exploring other options for automating the file updates required for the application upgrade, but I still think it would be useful to set up alerting until I am confident in the automated strategy.


How to test:

  • Task Scheduler > Create New Task > Configure action to run C:\xFakeFile.bat
  • Run the task and refresh the history tab. Notice that the history shows that the task completed successfully.
  • For good measure, open Event Viewer > Applications and Services Logs > Microsoft > Windows > TaskScheduler > Operational. Notice that the Event Viewer also reports success.

Continue reading...
 
Back
Top Bottom