Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Win 7 Task Scheduler doesn't complete task

Posted on 2012-03-23
5
Medium Priority
?
565 Views
Last Modified: 2012-06-27
Hi Experts,

I'm trying to create a simple task that will execute a batch file every 15min.  I did this by specifying under Actions, Open Program "D:\Scripts & BATs\Backup CSS_Res SQL.bat"

If i right-click and run the tasks, it hangs, but when I copy/paste "D:\Scripts & BATs\Backup CSS_Res SQL.bat" under run, it executes it under 1sec.

Furthermore, in hoping that the history tab would give me more details, but it is noted as (disabled)

Any feedback will be appreciated greatly.
0
Comment
Question by:APD_Toronto
  • 2
  • 2
5 Comments
 
LVL 28

Expert Comment

by:Run5k
ID: 37759387
First of all, keep in mind that task history is disabled by default.  You will need to toggle it on under the Actions section when you first open the Task Scheduler interface.

As for the problematic task itself, perhaps it's a privilege problem.  Have you tried configuring the task to run using the System account?
0
 

Author Comment

by:APD_Toronto
ID: 37759416
Ok, i got the history enabled, but how do i run it under system?
0
 
LVL 28

Accepted Solution

by:
Run5k earned 1000 total points
ID: 37759467
Open the the Task Scheduler interface with admin rights, and then double-click on the task to open the properties window.  In the Security Options section on the General tab, there is a field labeled "When running the task, use the following user account."  Click on the Change User button and in the field labeled Enter object name to select, type System and then utilize the Check Names button.
0
 
LVL 28

Assisted Solution

by:burrcm
burrcm earned 1000 total points
ID: 37760407
If your batch file refers to a mapped drive by letter for any reason, scheduler won't work. You must specify a unc path, eg \\server\directory\file. It will run locally OK, but not scheduled.

Chris B
0
 

Author Closing Comment

by:APD_Toronto
ID: 37761215
The issue was that the batch file path contained spaces, when I removed them - it worked.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

First some basics on Windows 7 Backup.  It has 2 components one is a file based backup which is stored in .zip files each zip is split at around 200 Megabytes and there is the Image Backup which is as the name implies a total image of the partition …
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

824 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