Task scheduler is a component in Windows that, like the unix cron daemon, allows scripts to be run at defined times.

learn more… | top users | synonyms

23
votes
3answers
60k views

Make Windows Task Scheduler alert me on fail

I have an automated script that pulls backups from my website to my local computer. This script could fail; once my server was down, another time I accidentally moved my script. How do I make Windows ...
22
votes
3answers
26k views

Windows 7 Task Scheduler doesn't list my custom task(s)

I created a custom task from another application (Peachtree), but it never showed up in the Active Tasks list. So, I created it manually from within the Task Scheduler, but the task still hasn't ...
11
votes
2answers
11k views

Windows Server 2008 R2 - How to copy a scheduled task

I would like to create a new scheduled task that is extremely similar to an existing task. It would be a pain to write down or type out all the settings. Is there a way to copy an existing task to ...
11
votes
8answers
23k views

Stop taskeng.exe window from popping up

I have several processes scheduled in my Windows 7 environment, mainly for backups, that are supposed to run in the background. However instead of just doing it's work quietly in the background, the ...
10
votes
4answers
15k views

Windows 7 Task Scheduler Hidden setting doesn't work

I've got a daemon process that I run on my machine every hour, and even though I've checked the Hidden box, it doesn't work. Every hour, the task runs, but it shows the black command window, in which ...
10
votes
5answers
23k views

How can I open a URL on a schedule in the default browser?

I'm looking for a mechanism to open a single URL in the user's current default browser on a schedule/recurring basis. I know that if I was writing .Net code to do this, I could simply do something ...
10
votes
1answer
11k views

Windows 7 Task Scheduler advanced settings unclear

I'm trying to create a task that runs once an hour. The functions in the "Edit Trigger" dialog are unclear and seem to conflict. Under settings, the finest time interval for recurrence is "daily", ...
7
votes
2answers
12k views

Creating a scheduled task in Windows that will run at intervals indefinitely

I seem to be getting slightly confused by the Task Scheduler trigger settings. (I'm on Windows Server 2008 Web) I want to create a task that will run every 5 minutes, whether a user is logged in or ...
6
votes
3answers
2k views

How to auto shutdown laptop on AC power loss

I'm using Windows 7 64-bit Home Edition on a Dell Inspiron. How do I make my laptop shut down instead of running on battery after an AC power loss? The idea is to have µTorrent run at night but not ...
6
votes
3answers
16k views

How do I specify “Run with highest privileges” in SchTasks?

When I use the GUI Task Scheduler, I can easily check the "Run with highest privileges" checkbox. I found no such option in the SchTasks command line too, however. Is there a way to do that from the ...
6
votes
4answers
5k views

Accessing Environment Variables in a Scheduled Task

When setting up a scheduled task, for the action section I'm trying to access an environment variable for the location of the executable that I wish to run. This is mainly because on one machine the ...
6
votes
1answer
1k views

How to schedule a task with the Task Scheduler on Windows 7 that runs one minute later each day?

How to schedule a task with the Task Scheduler on Windows 7 that runs one minute later each day? That is on day one it runs at say 10:00 then the next day at 10:01, etc.
6
votes
2answers
14k views

Set windows scheduler to open a webpage or the bookmark [duplicate]

I have a bookmark: C:\inetpub\services\Full Scan\full scan.url or a link: 10.237.49.250:8080/scanner/run.aspx?FULLSCAN=ON how can I schedule either of them to open in IE or Chrome?
6
votes
3answers
8k views

Windows 8 waking issues - “Maintenance Configurator” task cannot be changed or disabled

I recently upgraded to Windows 8 x64 (from Windows 7 x64). I had all the wake from sleep tasks disabled in Windows 7. In the Windows 8 Task Scheduler, Task Scheduler ...
6
votes
1answer
2k views

How to make TaskScheduler fail when the task returns result different from 0

I have a backup task that fails with a non zero result, yet Task Scheduler says that it executed the task correctly. Is there any way to tell Task Scheduler that the task failed?
5
votes
1answer
2k views

How can I make Windows 8 scheduler to run something once when the computer is idle but then wait for at least 12 hours in order to do the same?

I noticed that choosing the option to run only when it is idle and then to repeat the task indefinitely every 12 hours, i.e.: , did not do what I intended since it basically reset its 12h counter ...
5
votes
1answer
2k views

How can I schedule scans in the Windows 8 Windows Defender?

In the previous Windows versions (XP, Vista and 7), Windows Defender included the option to schedule when Windows Defender scans your computer. However, Windows Defender on Windows 8 doesn't seem to ...
5
votes
4answers
3k views

How to run a task every time computer resumes from suspend or hibernate in Windows

Is there a way in Windows XP to run a task every time a computer resumes from suspend/hibernate? On workstation unlock would also work.
5
votes
1answer
1k views

What windows 7 task scheduler event would respond to an idle END condition?

The Windows 7 task scheduler allows me to run a task when the computer goes idle, but there doesn't seem to be any obvious way to run a task when the computer resumes from idle, or is no longer idle. ...
4
votes
2answers
11k views

Why can't Excel open a file when run from task scheduler?

I wrote a powershell script that opens an excel workbook and runs a macro. When I run that script from PS console, or even from command line using powershell.exe script.ps1, it jus works. When I set ...
4
votes
2answers
2k views

Windows Task scheduler Winlogon events - logout not enough(?)

I created a powershell script that I want to run on every logout / restart / shut down. For trigger I set a custom event: Log: System, Source: Winlogon, Event ID: 7002. I found the above event id ...
4
votes
2answers
6k views

How to schedule a task for sleep/hibernate [duplicate]

Possible Duplicate: Is there any way to execute something when closing the laptop's lid? I have a task that I want to run right before my computer sleeps or hibernates. Is there a way ...
4
votes
1answer
10k views

What “user” must a scheduled task run as in order to be visible for all users?

I wish a task to be scheduled to run when any user logs on, but is not dependent on any one user being logged on, so I pick "Run whether user is logged on or not". The problem with this is that the ...
4
votes
3answers
12k views

Why can't a Task Scheduler job access a mapped network drive?

I have a Task Scheduler job to run Robocopy for backing up local files to a network share. I have to use domain credentials to access the network share but the local computer is not on the domain, and ...
4
votes
1answer
13k views

How to import a scheduled task from an XML file?

I have created a scheduled task in Windows 7, which will run a batch file once a day. The task is running perfectly well on my computer. I have also exported the task to an XML file and want to ...
4
votes
1answer
817 views

Automatically running a windows bat file after returning from idle

First off, the background on what I want to do: I am running rosetta@home on my computers at home and work, and I often find minirosetta tasks stuck in memory when I resume using the computer after a ...
4
votes
1answer
5k views

Rebooting the machine via shutdown.exe triggers the Shutdown Event Tracker

I have a scheduled task that runs once a week which performs a simple reboot of the machine. The problem is that once the system is rebooted, it thinks that the last shutdown was unexpected and then ...
4
votes
0answers
598 views

Task Scheduler program writes to literal folder named %LOCALAPPDATA%

I have a .NET executable (that I created) which uses Microsoft's Active Directory Service Interfaces (via System.DirectoryServices.AccountManagement) to do LDAP queries. Internally to ADSI, it ...
4
votes
0answers
962 views

Scheduled task disappeared from the Task Library the next day

We have a Win7 Pro 32-bit system where we want to schedule a daily backup to run at 1pm. The task was created yesterday morning. It ran fine that afternoon. It didn't run today. When the Task ...
3
votes
3answers
12k views

Using Task Scheduler to Run a Task Before Shutdown

As of writing, the only options available are to "Begin the task": On a schedule At logon At startup On idle On an event At task modification/creation On connect to user session On disconnect from ...
3
votes
2answers
4k views

Task scheduler - What is “Wait for idle for”?

I created a new Task in my task scheduler and I wanted it to be running only if the computer is idle for 10 min. but then I saw this checkbox which I don't understand what it does : The help says ...
3
votes
2answers
3k views

Does the Windows Task Scheduler have a way to run a command a set time after the user logs on?

Does the Windows Task Scheduler have a way to run a command a set time after the user logs on? I prefer it to run the first time anybody logs on, whether manually or if the computer is set to logon a ...
3
votes
2answers
715 views

setting an annual task on windows task scheduler

Is it possible to create a task in task scheduler that would execute only once a year?
3
votes
2answers
7k views

Task Scheduler from Command-Line?

I'm using Windows7 and I want to make a scheduled task with my options using Task Scheduler Command line mode utility that called "SchTasks". But there is some problems using Schtasks : 1) Is there ...
3
votes
2answers
993 views

How can I cause Task Scheduler to “fail” if a dialog box returns a certain result?

I'm working on a VBScript to do a weekly reboot of all machines on our network. I want to run this script via Task Scheduler. The script runs at 3:00 AM, but there is a small chance that users may ...
3
votes
1answer
1k views

Task Scheduler and Mapped Drive Invalid Disk Specification

I have a task in Task Scheduler to run a batch file that resides on a local hard drive. The batch file simply runs XCopy to copy files from a mapped drive to a folder on the local drive. When the ...
3
votes
1answer
9k views

How to import a scheduled task automatically from an XML file?

I have created a scheduled task in Windows 7. The task is running perfectly well on my computer. I have also exported the task to an XML file and want to create the same task on another computer ...
3
votes
3answers
2k views

How to sync files between PC and USB

I need to sync a file between my computer and a USB stick. The sync needs to happen in real time, as in when the right file changes sync to the left file and vice versa. I tried looking at Task ...
3
votes
1answer
2k views

Schedule powershell script with admin priviliges

I want to schedule a powershell script to run on my windows 7 system everyday with admin priviliges. How do I do so?
3
votes
1answer
814 views

AutoHotkey cannot launch ClickOnce apps when launched at startup using Task Scheduler

I love AutoHotkey (AHK) and use it to launch all of my apps using AHK Command Picker. In order to get around restrictions put in place by the Windows 8 UAC I require my AHK scripts to run as ...
3
votes
1answer
436 views

Reliable way to run a task after specificed time without user input

For a Kiosk solution I'm looking for a completely reliable way to run a batch file on Windows 7 after a specified time without any user input (think screensaver). So far I've been looking at: ...
3
votes
1answer
5k views

Task Scheduler: Run whether user is logged in or not: not working

I have a Task scheduled to run in Windows server 2008 (start up notepad). It seems to work fine when "Run whether user is logged in or not" is not selected. however when I select it the the task no ...
3
votes
2answers
761 views

Missed Windows Task runs when the computer starts

hi I have a problem oposite to the usual one. I have a task to hibernate my computer at 8pm If I hibernate the computer earlier, and turn it on next morning, the task runs and hibernates the computer ...
3
votes
2answers
328 views

How to prevent scheduled tasks from running as soon as computer wakes up?

Example: I have a task that is scheduled for 6 am every day (only if I'm logged on). If my computer sleeps/hibernates all night until 9am, upon waking up the task will then run even though it missed ...
2
votes
3answers
7k views

What is the best way to run a Console Application once per day at a certain time?

What is the best way to run a Console application (C#) once per day at a certain time on Windows XP? I want to see the Console window.
2
votes
2answers
3k views

How to make a scheduled window-creating program not steal the focus?

I have written a small console program that checks that all my websites are up and running properly. I use the Microsoft Windows Task Scheduler to run this program automatically once a day. The ...
2
votes
3answers
3k views

it opens “open with” prompt whenever scheduled task run

I am trying to run a .vbs file on every five minutes. I am trying to do this using windows task scheduler. In Actions tab -> New Action, I select the file ("D:\Documents\FC3 Savegames\FC3.vbs") ...
2
votes
2answers
4k views

Windows Task Scheduler: Schedule task to run once every 10 seconds

In my windows, I want to schedule a windows service to start once every 10 seconds. I tried using the windows task scheduler but it only gives me an option to repeat the service daily, weekly and ...
2
votes
2answers
427 views

Powershell script not logging as expected when run from command line

I have a simple powershell script that opens a ur and logs whether it was successful: $LogFile = ".\userLoad.log" $Date = Get-Date Try { $Request = ...
2
votes
1answer
3k views

What is the difference between /U and /RU in SchTasks?

SchTasks help describes both /U and /RU as "A value that specifies the user context under which the task runs" What is the difference, then, between /U and /RU ? What am I missing?