Solved

Scheduled task not running

Posted on 2016-10-15
5
54 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 14

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 68

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 52

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

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now