A scheduled-task means the launch of a program or script at predefined times or after specified time intervals.

learn more… | top users | synonyms (1)

82
votes
8answers
138k views

Run a .bat file in a scheduled task without a window

I have a scheduled task that starts a batch script that runs robocopy every hour. Every time it runs a window pops up on the desktop with robocopy's output, which I don't really want to see. I ...
46
votes
4answers
17k views

How do I rename a task in Task Scheduled on Windows Server 2008 R2

I have some tasks in the Task Scheduler on Windows 2008 R2. I created them as the admin and I'm logged in as the admin. I have no easy way to rename the tasks. The only way I can is to export the task ...
13
votes
6answers
8k views

Linux: Schedule command to run once after reboot (RunOnce equivalent)

I'd like to schedule a command to run after reboot on a Linux box. I know how to do this so the command consistently runs after every reboot with a @reboot crontab entry, however I only want the ...
12
votes
4answers
715 views

How to schedule server jobs more intelligently than with cron?

I run a job every minute to reindex my site's content. Today, the search engine died, and when I logged in there were hundreds of orphan processes that had been started by cron. Is there another ...
10
votes
6answers
420 views

50 workstations, 1 .bat file on a network server, will it work?

I have a .bat file to perform maintenance on machines. I put the .bat file on a network attached server for all workstations to access it. If I were to use the windows scheduler to make that .bat ...
10
votes
1answer
874 views

Workaround for when windows scheduled tasks fails when user changes their password

When a users password changes that users scheduled tasks will fail unless you change the password associated with that task. This is a problem for me as I have a small script that gets run by a ...
10
votes
1answer
651 views

Task Scheduler 2.0: Difference between “Stop task if…”

Using the Task Scheduler in Windows Server 2008 R2 or Windows 2012, etc... What is the difference between this setting: and this setting on the same task: Does one take precedence over the ...
9
votes
4answers
12k views

How do I schedule a reboot on Linux?

I'd like to be able to schedule a server reboot at a specific time, but not regularly. How can I do this without futzing with adding and removing cron entries?
9
votes
2answers
9k views

Is it possible to disable a scheduled task from the command line in Windows XP?

On my Windows 7 machine I can run something like: schtasks.exe /Change /TN "MyTaskName" /Disable But /Disable doesn't seem to be available in Windows XP - is there any way of disabling it from the ...
9
votes
5answers
912 views

Program does not run properly as Scheduled Task

Situation I have a batch script that prepares some files, executes a program (.exe) and then deletes said files. This task should run hourly, so I'm trying to configure this using Scheduled Tasks. ...
8
votes
3answers
4k views

Is it bad to edit cron file manually?

It is usually instructed to introduce new cron jobs through command lines; but I found it easier (with a better control of current cron tasks) to manually edit (in text editor) the user cron file like ...
8
votes
3answers
20k views

Schedule Windows Task every minute

I need to schedule a Windows task to run a script every minute. In most cases, the script doesn't need to execute anything and exists immediately. When the script needs to execute something, I want it ...
8
votes
5answers
10k views

Process runs slower as a scheduled task than it does interactively

I have a scheduled task which is very CPU- and IO-intensive, and takes about four hours to run (building source code, if you're curious). The task is a Powershell script which spawns various ...
7
votes
5answers
11k views

Is it possible for a Scheduled Task to run as NETWORK SERVICE?

It is quite simple to set up a task to run as a SYSTEM, but when setting it to NETWORK SERVICE it show "Access is denied" error message. Is there any way to get this working? (The problem is that I ...
6
votes
7answers
3k views

How do I automatically run nightly backups for Microsoft SQL Server 2005?

I don't see any built in mechanism for scheduling nightly backups in SQL Server 2005. What tools are available to perform this task and how reliable are they?
6
votes
4answers
12k views

How can I prevent a scheduled task from running if the same task is already running?

I have written a php script to check if there are any new files in a folder and, if any new files exist, upload them to a server. These files can be quite large. I want to run this script ...
6
votes
5answers
9k views

automatically shutting down an ESXi host nightly

We just picked up a new development server that I've loaded ESXi on. The room it's in is well ventilated during the day but at night the door is closed and it gets quite toasty in there. I've been ...
6
votes
5answers
4k views

Query schtasks using Powershell

On a Windows7 machine I am trying I can run a query to view all the scheduled tasks using schtasks.exe This is fine but I would also like to filter the result set using something like schtasks ...
6
votes
2answers
11k views

How to trigger a task at any change on a folder with Windows Server Task Scheduler?

Is it possible to start a script every time a folder tree is modified. E.g.: root dir1 file1 dir2 file1 file2 root would be listened and if, for example, file2 is modified or a new ...
6
votes
2answers
6k views

Scheduled Tasks w/ GUI issue

Are there issues running Scheduled Tasks in Windows 2003 when the task has a GUI? I have one that worked fine in Windows 2000 but won't run on Windows 2003. Details: I have a .bat job that ran every ...
6
votes
5answers
7k views

How can I schedule a server restart from command line on Windows 2012?

I would like to schedule a one-time server restart, e.g. to finish installing updates early in the morning. How can I do this from the command line on Windows 2012? On Windows 2008, I would have used ...
5
votes
10answers
43k views

Windows scheduled task fails to complete with error code 0xc000013a

I'm using Windows Server 2003 and have a scheduled task that fails to complete. The task is set to run a Windows Command Script (.cmd) at 3pm each day. The script runs a program that extracts some ...
5
votes
7answers
18k views

unable to schedule a task (access denied)

i have a bat file im trying to schedule every morning. whilst in the Scheduled Task Wizard... when i click on finish... i get a ... The new task could not be created. The specific error is: ...
5
votes
2answers
4k views

What causes scheduled task error 2147942402?

Server 2008 R2 (fully patched) I'm trying to run a scheduled task to move a specify type of files from C:\Windows\Temp to E:\Foo_blah_blah_blah_blah\Foo2 and for some reason am getting the following ...
5
votes
3answers
1k views

Scheduled Jobs during hours of autumn time change

I'm wondering how other people deal with this scenario. What if you have a job scheduled to run at 1:30 am. In the autumn, when time changes, the hour of 1:00:00 to 1:59:59 repeats itself and so ...
5
votes
1answer
325 views

What is the default working directory for a scheduled task in Windows 2008 R2?

Trying to figure out where the output of a long running scheduled task is being saved. Presumably, it's in the working directory of the task. Unfortunately, the "Start in" option was not set. The ...
5
votes
8answers
1k views

Is the Task Scheduler in Windows XP reliable enough to be trusted with important tasks?

I ask because the software my company is about to start using requires a single (windows) workstation to run a small automation program each night to increment several fields in the database. I'm sure ...
5
votes
4answers
2k views

Task scheduler ran a task twice

Update: This has now happened two days in a row. Update: XML of scheduled tasks and images now included. Two servers located in London, both Windows 2012, have a scheduled task set to run at 3pm ...
5
votes
2answers
2k views

How to email output of scheduled tasks?

On Unix systems, the scheduled task service will email any output that a scheduled task produces. If no output is produced, no email is sent. How can I do the same thing on Windows Server 2003 or ...
5
votes
2answers
2k views

Why do weekly tasks created via PowerShell using a different user fail with error 0x41306

We have some scripts that create scheduled jobs using PowerShell as part of our application. When testing them recently, I noticed that some of them always failed immediately, and no output is ever ...
4
votes
3answers
6k views

Start program on computer startup when nobody is logged on and show the window when someone does log on (OS: Windows)

I have a program that is launched on system startup using Task Scheduler on Windows Server 2012. The program must start even if the computer reboots automatially. Administrator is the account used to ...
4
votes
3answers
25k views

Is there a way to import a scheduled task from windows 2003 (.job) to windows 2008 (.xml)?

I had some jobs to be moved from the old production server (windows 2003 server standard) to the new machine (windows 2008 server standard), but the new server is unable to read the old .job format, ...
4
votes
3answers
2k views

Task Scheduler: Login to a session at startup and start a desktop app?

ISSUE: I have a Windows 2008 R2 VM that runs a 3rd party ERP system. They have a utility that will run scheduled jobs to backup the Oracle database and their app data nightly with a 7 day rotation. ...
4
votes
3answers
2k views

How can I disable a scheduled task using Powershell?

I have a web application that runs on Windows Server 2008 R2, which has a large number of scheduled tasks which take care of all the backend stuff. When I do a software deployment which touches the ...
4
votes
2answers
26k views

List, add, edit, delete Windows Scheduled Tasks from the command-line

Is there a command-line tool that can be used to programatically list, add, edit and delete Windows Scheduled tasks? I realize that there are better alternatives to Scheduled Tasks, but I need to ...
4
votes
1answer
6k views

How to delete scheduled task from command line without confirmation? (schtasks delete)

I can create a task from command line like this: schtasks /create /tn SomeTask /tr "do.bat arg1 arg2" /sc ONCE /st 00:00:00 /sd 01/01/1991 and now I need to delete it. However the command needs to ...
4
votes
1answer
6k views

Windows Scheduled Task - Error 2147943711 for “on startup” task

I have a onstartup task that I want to automatically run, regardless of if someone is logged in or not. I've set it up as Run whether user is logged in or not, Do not store password1, and Run with ...
4
votes
2answers
3k views

How to schedule a task for multiple days of a month using schtasks.exe?

Since task scheduler API has been changed after Vista & Server 2008, scheduling a task with schtasks is (as much as I know) the only way that works on both Windows 2003 Server and Windows 2008 ...
4
votes
2answers
2k views

Is it possible for a Scheduled Task to perform a graphical (interactive) logon or use a script to do the same?

I'd like to have a Scheduled Task (or a script of some sort) perform an automated interactive logon at a given time on Windows Server 2003. The reason is in this question I've asked a short while ...
4
votes
3answers
335 views

How can I run a job when the server load is low?

I have a command that runs a disk snapshot (on EC2, freezing an XFS disk and running an EBS snapshot command), which is set to run on a regular schedule as a cron job. Ideally I would like to be able ...
4
votes
4answers
9k views

Getting alerted when a Windows scheduled task fails

I am looking for a way to get alerted if any of the scheduled tasks on a group of Windows 2003 servers fail (exit with a status code that is not 0). Scripts, commercial applications, and plug-ins to ...
4
votes
2answers
583 views

Is it possible to have a scheduled task click a button in Windows?

One of my clients has an application that can not be run from command line or via API but needs to be run on an scheduled basis. It would require that I launch the application if it's not already ...
4
votes
2answers
362 views

How do you designate where a Scheduled Task is created?

Is there an option in possibly SCHTASKS to define where a scheduled job is actually created?
4
votes
3answers
183 views

cron task problem

I have a cron task as 6,36 * * * * python /usr/local/news.py >> /var/log/newlog it is supposed to run at every 6th and 36th minute of each hour. But for some how the system runs this task 4 ...
4
votes
3answers
450 views

Documenting Job Schedules?

Once upon a time, I thought I found the perfect way to document all scheduled jobs across all servers. I used Google Calendar and created a cal for each server and then added all the jobs as scheduled ...
3
votes
2answers
3k views

How do I schedule a task to run every hour indefinitely on Server 2003

I am moving a scheduled task from a Windows 7 machine to a Windows Server 2003 machine. On Windows 7 I can configure my task to run every hour indefinitely by setting up a custom trigger like so: ...
3
votes
3answers
419 views

runas without asking for a password

On a Windows server which is in a domain, I have a script I run from scheduled tasks. I want this script to be run under a mydomain\peter user account. It is simple to do it with scheduled tasks, ...
3
votes
2answers
5k views

Update password for scheduled task

I have a scheduled task that needs to run as a service account. The service account's password resets every 100 days, so I need to update the password for the scheduled task. I cannot figure out how ...
3
votes
3answers
1k views

Is it possible to run a task on the last day of the month using taskmgr?

I noticed you can only set the day of the month as a positive number 1..31 in the scheduled task GUI on Windows (Windows server 2003). Is it possible to run a task only on the last day of the month? ...
3
votes
2answers
52 views

SYSTEM user to schedule tasks on Win 2003 server?Impact?

I wish to schedule a bat file on my Win 2003 server without a password. The requirement is to run it everyday at a specific time. We use expiring passwords and do not have a non expiring account. I ...