Solved

Scheduled task not running

Posted on 2016-10-15
5
80 Views
Last Modified: 2016-10-20
I get a very descriptive 0x1 (typical Microsoft bull****).

Anyone have any idea what that would mean?  Is it beyond server 2008 to run a batch files now?
0
Comment
Question by:classnet
5 Comments
 
LVL 15

Expert Comment

by:Todd Nelson
ID: 41845022
Does the event log provide you more information?

I run batch files with scheduled tasks all the time on Windows 2008-2016 servers.
0
 

Author Comment

by:classnet
ID: 41845548
That's probably the most irritating part... no clues left behind.
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 250 total points
ID: 41845906
Each task has its own log, so that is the first to look for. But it will only show generic stuff, like a batch file not found, or the executable not able to be run because of privilege issues, and such.

For more details you indeed need to do your own logging, like echoing debug/progress info into a file ...
0
 
LVL 53

Assisted Solution

by:Bill Prew
Bill Prew earned 250 total points
ID: 41846590
I always like to capture all output from the batch job that I schedule to a text file for reading after execution.  This can be especially helpful during the debugging process if the bat file is not executing at all do to a syntax error, etc.  Try adding the following to the end of the command line you are invoking from the tash scheduler, run a test, and then see what's in the text file.

>c:\temp\debug.txt 2>&1


~bp
0
 

Author Closing Comment

by:classnet
ID: 41852592
Thanks folks... I created my own log which lead to the issue.  All is well now.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

You may have already been in the need to update a whole folder stucture using a script. Robocopy does it well and even provides a list of non-updated files in a log (if asked to). Generally those files that were locked by a user or a process by the …
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…

856 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