Questions tagged [task-scheduler]

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

367 questions
90
votes
4 answers

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 Task Scheduler tell me with the script fails (or…
user3109
69
votes
3 answers

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 appeared. I'm afraid I now have two tasks that do the…
David Brown
  • 1,503
59
votes
9 answers

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 my .NET Console app is running. This stays…
Joshua Frank
  • 1,671
50
votes
15 answers

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 the job is run as a local admin. This solution…
Craig W
  • 801
38
votes
6 answers

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 along the lines of…
ckittel
  • 608
35
votes
4 answers

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 monthly. Is there a way I can schedule the windows…
34
votes
6 answers

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 : If a task is set to start only if the computer…
Royi Namir
  • 5,888
31
votes
2 answers

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 create a new one?
29
votes
3 answers

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 command line?
WinWin
  • 1,010
26
votes
2 answers

How can I copy a scheduled task from a dead Windows to new Windows

My old computer died (hardware fault) and I had to reinstall everything on a new machine. All harddisks are intact and the old system disk is available as F: in my new machine. In the old system I had a scheduled task that would run a simple batch…
24
votes
7 answers

Task Scheduler repeat task not triggering

I am trying to set up a task that will start up an .exe every minute. I have created a Trigger, that when triggered will run the .exe and repeat every minute indefinitely. (I have also tried creating a daily task, the once triggered will repeat…
23
votes
4 answers

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 user session On workstation lock On workstation…
G.P. Burdell
  • 331
  • 1
  • 2
  • 3
20
votes
2 answers

Set windows scheduler to schedule open a website, webpage or the bookmark

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?
19
votes
4 answers

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 just works. When I set up a task from the windows task scheduler, it…
zrz
  • 323
19
votes
2 answers

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?
1
2 3
24 25