Questions tagged [windows-task-scheduler]

Task Scheduler is a component of Microsoft Windows that provides the ability to schedule the launch of programs or scripts at predefined times or after specified time intervals.

The Task Scheduler service works by managing tasks. A task refers to the action(s) taken in response to trigger(s). A task is defined by associating a set of actions, which can include launching an application or taking some custom-defined action, to a set of triggers, which can either be time-based or event-based.

549 questions
5
votes
1 answer

How (behind-the-scenes) does Task Scheduler end tasks?

When Windows' Task Scheduler ends as task (either because the task exceeded the stop the task if it runs longer than timeout or because a user right-clicked on it and chose 'End'), what happens behind-the-scenes? Is a WM_CLOSE message sent to the…
4
votes
2 answers

Is there a way to see how much time it took for a task to finish running in Task Scheduler (Windows)?

I have a task that starts a .bat file with some operation with files on a file system and I am interested in evaluating the time it takes for a task to get the job done. I can see date/time when the task started and status in the History tab of the…
4
votes
1 answer

Task Schedule on resume from idle?

With schtasks.exe (Windows Task Scheduler for command prompt), you can make a task that is triggered on idle, which I use. However, is it possible to make a trigger on resume from idle? I.E., when the computer is no longer idle?
Mark Deven
  • 1,618
4
votes
2 answers

Acting on exit code in Windows Task Scheduler

I have the following .bat script: set /a num=%random% %%2 exit /b %num% I would like to execute that batch script in Windows Task Scheduler in such a way that when the exit code is 1 Task Scheduler sends an email that the script failed. I can…
3
votes
1 answer

Unable to start firefox to launch a specific page with task scheduler

I am trying to create a task using task scheduler that can open a specific webpage using firefox and for example I am trying to launch google at a specific time. The command that I try to run is SchTasks /CREATE /SC WEEKLY /TN google1 /TR…
Abin
  • 33
3
votes
0 answers

Running windows task scheduler while logged off

On Windows task scheduler, I'm trying to run a task where an SQL query will execute and output(spool) my data to a csv file. running it manually works fine and scheduling it works fine too. However, when I try to run it with the option of "whether…
2
votes
1 answer

How to find/kill zombie task in taskscheduler

I have a task that runs an exe every minute. I noticed odd behaviour, and see that the exe is being run twice every minute. I have "ended" and disabled the task in the taskscheduler. And now I see that this other "zombie" task continues to run every…
ManInMoon
  • 237
2
votes
1 answer

How would I detect a file with task scheduler

I'm just wondering. Is it possible for task scheduler to detect a file? The closest thing I found to this question was on Technet. Could anyone give me any pointers? Thanks.
NewUser
  • 21
1
vote
1 answer

Does Task Scheduler trigger fire for each time the task is started?

I have a task with a trigger that says "After triggered, repeat every 5 minutes indefinitely." I had set the task up to run once when it was created and then it repeated every 5 minutes as expected. However, I also manually started the job a few…
BVernon
  • 335
  • 5
  • 15
1
vote
0 answers

Scheduled task starts one hour earlier than scheduled - Windows 7

I had scheduled a task to begin at a particular time each night ( on my old laptop). I had to start using it again and I noticed that it started it one hour earlier than scheduled. I changed the time to an hour later than I really want it to start,…
dmd
  • 11
  • 1
1
vote
0 answers

Creating a task that runs at incorrect login credentials

I'm trying to set up a personalized security option on my computer to take a picture using the webcam whenever someone tries to log onto my computer using an incorrect password. I've set up the task in the task scheduler, and I can get it to pass,…
GDA
  • 11
  • 2
1
vote
1 answer

Windows Task Scheduler

Does anyone know how to set a trigger delay of less than 30 seconds (the lowest option given in drop down menu) for Windows task scheduler? I want a delay of 5 seconds to give another task time to complete first. Evidently there is no way to daisy…
1
vote
1 answer

Task scheduler running duplicates of my .bat despite setting not to

Hey kind of a noob with this stuff. But I set up a task scheduler to when idle for 5 minutes, run a .bat. I also have it set to "Do not run multiple instances", yet whenever I come back after an hour, there are 2 or sometimes more instances of the…
1
vote
1 answer

Creating a Windows Task that runs when enabled and periodically thereafter until disabled

I'm a bit confused about triggering in windows task scheduler. I want to create a task that runs upon being enabled by the user, and as long as it stays enabled I want it to also run periodically (say for example hourly, whether logged on or off),…
Stilez
  • 1,695
1
vote
1 answer

Starting Invantive Data Hub scripts from Windows Task Scheduler

We use Invantive Data Hub to extract data from Exact Online in multiple companies. We can run the script by hand from within Data Hub, but not from the Windows Task Scheduler. How to repeatedly automatically run scripts with Invantive Data Hub?
1
2