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.
358
questions
88
votes
4
answers
250k
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 ...
68
votes
3
answers
97k
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 ...
55
votes
9
answers
84k
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 ...
46
votes
15
answers
161k
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 ...
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 ...
33
votes
4
answers
89k
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 ...
32
votes
6
answers
60k
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 : ...
30
votes
2
answers
33k
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 ...
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 ...
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 ...
23
votes
7
answers
44k
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 ...
21
votes
4
answers
98k
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 ...
19
votes
4
answers
81k
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 ...
19
votes
2
answers
91k
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?
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 ...
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?
18
votes
2
answers
43k
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 ...
18
votes
2
answers
22k
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 ...
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 ...
17
votes
7
answers
44k
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 "...
16
votes
4
answers
20k
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 ...
16
votes
1
answer
54k
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 ...
16
votes
3
answers
30k
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 ...
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", ...
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.
14
votes
1
answer
84k
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 ...
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 ...
11
votes
4
answers
30k
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") ...
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 ...
10
votes
1
answer
14k
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 /...
8
votes
3
answers
30k
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 ...
8
votes
4
answers
23k
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 ...
7
votes
2
answers
20k
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 ...
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 ...
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 ...
7
votes
3
answers
25k
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 ...
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 ...
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>>...
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 ...
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 ...
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?
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 ...
5
votes
2
answers
6k
views
Task scheduler: Run "At startup" does not work on cold boot
When I schedule a task to run "At system startup" in Windows 10 task scheduler it runs well on reboot.
But if I choose shutdown, and then turn on the system with the computer's power button, ...
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?
...
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 ...
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.
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 ...
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, ...
5
votes
4
answers
61k
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:
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 ...