Questions tagged [taskscheduler]

Task Scheduler is the common name for a set of tools and services that provide scheduled execution of executables and scripts on the Windows operating system. Use taskschedular tag in conjunction with powershell, winapi, windows-task-scheduler tags when Task Scheduler related.

The Task Scheduler helps scheduling automated tasks that perform actions at a specific time or when a certain event occurs. It maintains a library of all scheduled tasks, providing an organized view of the tasks and a convenient point of access for managing them. There can be run, disabled, modified, and deleted tasks from within the library. The Task Scheduler user interface (UI) is a Microsoft Management Console (mmc) snap-in since Windows Vista and Windows Server 2008.

Useful links

492 questions
1
vote
0 answers

Task Scheduler 1.0 - how to run a remote program from the command line

How can I schedule a remote program.exe, which exists in computer A to run in computer B via Task Scheduler 1.0 in Windows XP / Visa via the command line? Note: psexec is not allowed
AK_
  • 1,879
  • 4
  • 21
  • 30
1
vote
0 answers

TaskScheduler RegisterTaskDefinition fails with NULL path in Win10

According to this MSDN doc, we may pass NULL for the path argument: path [in] The name of the task. If this value is NULL, the task will be registered in the root task folder and the task name will be a GUID value created by the Task Scheduler…
raymai97
  • 806
  • 7
  • 19
1
vote
0 answers

Specifying task path in Task Scheduler for changing it with schtasks

I am trying to enable/disable a task, but /tn results in "does not exist in the system" because it's not in Task Scheduler's root library but in one of its subfolders. I tried it with /tn "\folder1\folder2\taskname" but I still get "does not…
Breslau70
  • 11
  • 3
1
vote
1 answer

C# 6 waiting for full completion of task and all subtasks

I'm trying to build up a kind of scheduler (this might not be the relevant term) that would run in sequence a number of tasks. Here is my POC code (please ignore the queue/dequeue mechanism which is poor, but not the problem here I guess) EDIT:…
chrisdot
  • 659
  • 6
  • 19
1
vote
0 answers

VBscript SAP loose focus by Task Scheduler

I've got a problem I can't pass by. I have a script that is generating table in SAP and exporting is as spreadsheet and saving in proper location. It works perfectly when I do it by double-clicking on file, but it can't finish script via Task…
randomuser
  • 11
  • 1
1
vote
2 answers

Line of PowerShell code to hide dialogue window when script is ran via Windows Task Scheduler?

I have a PS script initialized by Windows Task Scheduler that runs every five minutes. I've noticed when it initiates, the command prompt opens up briefly then goes away (the very nature of the script itself which is understandable). However, I want…
Lasagna Cat
  • 297
  • 3
  • 24
1
vote
1 answer

How do you Find/Close process when running from TaskScheduler?

I have two programs that conflict with each other. One of them is a C# console app that is launched by Task Scheduler (Program1) in the middle of the night, the other (Program2) is a C# WPF program that is typically run by users during the day. I…
Curtis
  • 5,794
  • 8
  • 50
  • 77
1
vote
1 answer

Taking mysql backup using .bat and taskscheduler failed run viataskscheduler

I was create a "export.bat" and put these line of code @ECHO OFF C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqldump.exe --user=root --host=localhost --password=mind --protocol=tcp --port=3306 --default-character-set=utf8…
Suraj Tripathi
  • 116
  • 1
  • 7
1
vote
1 answer

delphi ITaskFolder.RegisterTaskDefinition not working

I'm trying to create a task to windows task scheduler. Here's the code. procedure TForm1.Button1Click(Sender: TObject); var ts: ITaskService; tf: ITaskFolder; tf2: ITaskFolder; td: ITaskDefinition; tr: ITrigger; tt: ITimeTrigger; at:…
1
vote
1 answer

How to get Quartz Trigger interval?

I am using Quartz for scheduling the java tasks. How to get the interval time for a specific trigger for(Trigger trigger : getAllTrigersFromSchduler()) { trigger.getDescription(); // for description // Need trigger interval time }
Jinu P C
  • 3,146
  • 1
  • 20
  • 29
1
vote
4 answers

Powershell Task Scheduler Stuck Running

I was trying to test a simple powershell script with task scheduler, the status showed running but the powershell console never showed up. My ps1 script just contains two simple commands: dir pause Here is my setup: General Run whether user is…
Mixer
  • 183
  • 2
  • 7
  • 15
1
vote
2 answers

only the first email is being sent in a For Loop of a Window Service

I want to send an email to more than 2 people using my own database. So I use for loop to send an email. But it is just sent it to a first person. I also check that the email_data has more than 2, and I bring the email data well. Here is my code. …
Scarlett
  • 173
  • 12
1
vote
1 answer

Task Scheduler loads script into editor instead of running it

My AutoIt script that executes from Windows Task Scheduler under Windows 7 works fine. On my Windows 10 machine with the identical task, instead of running the script, the Task Scheduler loads it into SciTE (an editor that accompanies AutoIt). When…
Argent
  • 885
  • 2
  • 9
  • 18
1
vote
2 answers

Using schtasks /z switch to delete tasks

I am trying to use schtasks to schedule a python GUI script. I want to delete a task once it has run. According to the documentation, I should be using the /Z switch along with the /V1 switch. But this asks for a run-as password which I can't figure…
debashish
  • 1,374
  • 1
  • 19
  • 29
1
vote
1 answer

Why does my Python script run differently when executed by Windows 10 Task Scheduler

I have a python 3 script that relies on (among other things) selenium, bs4, smtplib, and xlsxwriter. The script scrapes a website, saves a large chunk of data to an Excel file, and then emails me smaller chunks of data that are of particular…
vintagedeek
  • 161
  • 2
  • 10