Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Win 7 Task Scheduler doesn't complete task

Posted on 2012-03-23
5
Medium Priority
?
563 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 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
Suggested Courses

722 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