Solved

Scheduled task not running

Posted on 2016-10-15
5
112 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
[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
5 Comments
 
LVL 16

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 70

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 56

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You might have come across a situation when you have Exchange 2013 server in two different sites (Production and DR). After adding the Database copy in ECP console it displays Database copy status unknown for the DR exchange server. Issue is strange…
OfficeMate Freezes on login or does not load after login credentials are input.
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 …
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
Suggested Courses

615 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