Solved

Scheduled task not running

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

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

AutoHotkey is an excellent, free, open source programming/scripting language for Windows. It started out as a keyboard/mouse macros product, but has expanded into a robust language. This article provides an introduction to it, with links to addition…
A procedure for exporting installed hotfix details of remote computers using powershell
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…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…

751 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