Solved

Win 7 Task Scheduler doesn't complete task

Posted on 2012-03-23
5
560 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
[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
  • 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 250 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 250 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 7 usb repair boot 16 77
Program files permissions 1 47
Show File Modified Date including seconds 7 83
Windows7 without Drivers fresh install 19 44
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

738 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