Solved

Win 7 Task Scheduler doesn't complete task

Posted on 2012-03-23
5
553 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
The issue was that the batch file path contained spaces, when I removed them - it worked.
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When you use the right mouse button (assuming you're right handed) to click something in Windows, you usually get what is called a "context menu".  It's called that because the items in the menu vary according to context, that is, according to where…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

763 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

5 Experts available now in Live!

Get 1:1 Help Now