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.

Filter by
Sorted by
Tagged with
87 votes
4 answers
247k 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 ...
user avatar
67 votes
3 answers
96k 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 ...
David Brown's user avatar
  • 1,483
53 votes
9 answers
83k 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 ...
Joshua Frank's user avatar
  • 1,621
46 votes
15 answers
158k 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 ...
Craig W's user avatar
  • 761
37 votes
6 answers
89k 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 ...
ckittel's user avatar
  • 598
33 votes
4 answers
87k 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 ...
Parth Bhatt's user avatar
31 votes
6 answers
59k 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 : ...
Royi Namir's user avatar
  • 5,758
30 votes
2 answers
32k 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 ...
Nick Vaccaro's user avatar
26 votes
2 answers
6k views

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 ...
Kjell Rilbe's user avatar
26 votes
3 answers
74k 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 ...
WinWin's user avatar
  • 980
23 votes
7 answers
43k views

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 ...
Jack Allen's user avatar
21 votes
4 answers
96k 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 ...
G.P. Burdell's user avatar
19 votes
4 answers
79k 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 just works. When I set ...
zrz's user avatar
  • 323
19 votes
2 answers
90k views

Set windows scheduler to schedule open a website, 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?
Andrew's user avatar
  • 525
19 votes
8 answers
40k 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 ...
BlaM's user avatar
  • 479
19 votes
2 answers
15k 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?
Pablo Montilla's user avatar
18 votes
2 answers
42k 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 ...
Ross's user avatar
  • 283
18 votes
2 answers
21k views

Search Task Scheduler Library

I've inherited a server with several hundred scheduled tasks. There's no consistent naming scheme, so finding some particular task that performs some particular action is rather tedious. Is there any ...
all_ice's user avatar
  • 183
17 votes
6 answers
28k 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 ...
Paul Hadfield's user avatar
17 votes
7 answers
43k views

Windows 10 scheduled tasks are not running

I have created couple of tasks under Task scheduler (Win 10): Unfortunatelly, the tasks do not run autmatically as scheduled. Their "Next run time" is changed as expected (each 10 or 5 minutes), but "...
user3523426's user avatar
16 votes
1 answer
53k 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 ...
MrWhite's user avatar
  • 2,866
16 votes
3 answers
29k views

What Does "Local Computer Resources" Comprise in Task Scheduler?

In the Windows Task Scheduler, the interface allows me to use a specific user to run the task (General > Security options). Under the Run whether user is logged on or not option, the interface has ...
palswim's user avatar
  • 3,521
15 votes
1 answer
21k 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", ...
tim11g's user avatar
  • 1,588
15 votes
4 answers
19k views

Windows 7 Task Scheduler is giving me an error saying "The specified account name is not valid"?

I am running Windows 7 on a Dell Precision workstation. I started having this issue right after changing my PC name. I get the error message when in the Task Scheduler Library folder and right-click a ...
Alex F's user avatar
  • 430
14 votes
4 answers
30k views

Display message box from Task Scheduler on top of all other windows

Is there a nice way to get a message box to pop up at a scheduled time on top of other windows? The default "Display a Message" action uselessly appears below everything else.
Moss's user avatar
  • 689
13 votes
1 answer
83k 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 ...
Rushabh Shah's user avatar
12 votes
3 answers
63k views

Want to delay startup of program but can't find it in Task Scheduler

I'm trying to delay the startup of a specific program that loads at login. As per an answer in this question, I should be able to do it using Task Scheduler. The problem is, I can't find the program ...
Celeritas's user avatar
  • 8,229
11 votes
4 answers
29k 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") ...
shashwat's user avatar
  • 244
10 votes
1 answer
9k views

Windows 10 console stops running if I click in the console window

I have a PHP script which runs via Windows Task Scheduler. When it starts it automatically opens a console window where the script writes status messages. If I click on this window it stops the script ...
Čamo's user avatar
  • 345
9 votes
1 answer
13k views

How to predefine file/directory parameter to xcopy

I need to run xcopy command. But when I type it with all parameters: xcopy \\<server>.<domain>.com\c$\Users\<user>\Documents\New_ADuser_mustang.ps1 C:\IAM\New_ADuser_mustang.ps1 /C /...
Petr Synek's user avatar
8 votes
3 answers
28k views

task-scheduler: How can all users view/edit/run the same tasks?

I want all (or selected) users/admins to view/edit/run the same task. It seems that each user/admin only sees his own tasks and not the others users'. This is quite confusing for me since on Linux a ...
tardis's user avatar
  • 194
8 votes
4 answers
22k views

How can I run a Task Scheduler job without being on administrator account?

I have read that the Windows account logged onto the computer that is running tasks from the Windows Task Scheduler needs to have administrator rights. I used the administrator account to create the ...
xenon's user avatar
  • 524
7 votes
2 answers
19k views

Adding route automatically after a successful VPN connection in Windows 10

I'm trying on my W10 to perform an automatic "route" command after a successful VPN connection. I tried it based on this short description here which is for W7 but seems so similar, but I ...
OscarAkaElvis's user avatar
7 votes
4 answers
4k views

How to power-on Windows 10 PC, run task, then shut down again

I want my Windows 10 PC to power-on from "off" in the middle of the night, run a CPU intensive task for a few hours, and then power back off in a clean shutdown. What would it take to do ...
Charlweed's user avatar
  • 255
7 votes
1 answer
3k 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 ...
j riv's user avatar
  • 2,566
7 votes
3 answers
24k views

Auto-terminate a Windows application after a given amount of time

I'm looking for a way for a user to launch a Windows application that will only run for a given amount of time, say an hour. After the hour is up, an alert window will pop up, saying "Program will be ...
Alex Chernavsky's user avatar
7 votes
3 answers
6k 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 ...
Andreas Rejbrand's user avatar
6 votes
3 answers
12k 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 Library>>Microsoft>>Windows>>...
Castaa's user avatar
  • 980
6 votes
2 answers
13k 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 to ...
Andrew Redd's user avatar
  • 1,762
6 votes
1 answer
6k views

CMD.exe arguments vs. Task Scheduler arguments (MpCmdRun.exe)

In Windows 10 Task Scheduler, under Task Scheduler Library > Microsoft > Windows > Windows Defender there is a Windows Defender Scheduled Scan Task. If you double-click on this Task, it ...
Stephen Hanson's user avatar
5 votes
2 answers
5k 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?
Wern Ancheta's user avatar
  • 6,542
5 votes
1 answer
7k views

How to capture Internet connection event in Windows Task Scheduler?

I'm trying to create a simple task in Windows 7 that would run some script after every connection to the Internet. My gateway restart itself sometimes and I want to run that script every time Internet ...
Roman's user avatar
  • 163
5 votes
4 answers
26k views

Running Webcam with multiple applications

I am running YAWCAM as a service, no GUI. The thing is, a webcam cannot interact with multiple softwares by default. So, is there a way to enable multiple connections to the same webcam via software? ...
greatbard's user avatar
  • 121
5 votes
2 answers
44k views

What does return code 1 mean for cmd.exe on Windows XP?

I'm trying to run a task hourly with the Task Scheduler to launch a bat file, but it is not working. Looking at the history, I see the following which looks to be the issue: Task Scheduler ...
WilliamKF's user avatar
  • 7,918
5 votes
4 answers
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.
kinokijuf's user avatar
  • 8,255
5 votes
1 answer
9k views

Set up Task Scheduler tasks under Local Account in Windows 10 - incorrect password

I have a PC running Windows 10. I used to use a local account to log on. The local account is a member of the local Administrators group. Recently I changed to use the Microsoft account authentication ...
Tom Bennett's user avatar
5 votes
1 answer
3k views

Catching screens turning on/off and running script or program when it happens

I'm attempting to automatize lights around the man cave, ideally i would like to have the lights to be on as long as the computer screens are on and the lights go off when screensaver kicks in, ...
Dingo's user avatar
  • 151
5 votes
4 answers
60k views

Why does my scheduled task fail with error (0x4)

I have a scheduled task that is supposed to run a batch file. The batch files runs file when called on it's own, but does not run when wrapped in a scheduled task. Here is what the dialog looks like:
mmcglynn's user avatar
  • 669
5 votes
0 answers
4k views

Tell Task Scheduler how to end a task

I start a program A using Windows Task Scheduler. That program starts instances of another program B. The task is started on Windows startup and runs even if no user is logged on. When I terminate ...
telandor's user avatar
  • 173
5 votes
3 answers
3k 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 ...
zants's user avatar
  • 135

1
2 3 4 5
8