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)

98
votes
10answers
170k 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 ...
73
votes
5answers
26k 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 ...
16
votes
6answers
12k 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 ...
14
votes
5answers
14k 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 ...
12
votes
4answers
16k 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?
12
votes
4answers
804 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 ...
11
votes
1answer
2k 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 ...
11
votes
6answers
15k 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. ...
10
votes
6answers
471 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
3answers
23k 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 ...
10
votes
1answer
903 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 ...
9
votes
3answers
19k 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 ...
9
votes
2answers
12k 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 ...
8
votes
3answers
7k 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
2answers
16k 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 ...
7
votes
5answers
18k 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 ...
7
votes
1answer
2k 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 ...
6
votes
3answers
33k 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, ...
6
votes
7answers
4k 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
15k 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
10answers
54k 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 ...
6
votes
5answers
13k 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
2answers
12k 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 ...
6
votes
6answers
17k 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 ...
6
votes
5answers
6k 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
3answers
3k 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 ...
6
votes
2answers
7k 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
4answers
3k 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 ...
6
votes
1answer
402 views

How can I modify an existing scheduled task using Powershell?

I am working on some release automation scripts that use Powershell to update existing scheduled tasks which execute various applications. In my script, I can set the Path and Working Directory of the ...
5
votes
7answers
23k 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
1answer
9k 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 ...
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
1answer
2k views

Scheduled Tasks and Environment Variables

I have a scheduled task, a batch file, that uses an environment variables which is set system-wide. On server 1, the scheduled task runs under a domain account and the environment variable works. The ...
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
1answer
1k views

Defrag options in Windows Server 2012

I am looking at the command line options for defrag.exe as well as the "ScheduledDefrag" task on Windows Server 2012, and I don't understand some of the arguments. In particular, when I view defrag ...
5
votes
2answers
3k 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
5answers
5k 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
3answers
3k 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
2answers
7k 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 ...
4
votes
1answer
10k 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
2answers
32k 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
2answers
4k 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
410 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
5answers
10k 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
849 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
403 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
185 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
4answers
232 views

Windows 2008 R2 Not Printing From Scheduled Task

Problem Since the end of support is coming on July 14th for Windows servers 2003 we are moving all of our scheduled tasks to a Windows 2008 R2 server. We use a Microsoft(MS) Access 2003(mdb) ...
4
votes
3answers
18k views

Error 0xE0434F4D as 'Last Run Result' of a Windows Scheduled Task

Hallo, i get the error 0xE0434F4D as 'Last Run Result' of a Scheduled Task on Windows Server 2008. I have checked the permissions of the user that is running the scheduled task, and the user does ...