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
15
votes
1 answer

How to execute .Net Core 2.0 Console App using Windows Task Scheduler?

I have one Console App which is created using asp.net Core 2.0 in VS2017. Now I want to run this application on particular time period repeatedly (like service). So I have tried this using Windows Task Scheduler but when we create task using Task…
prog1011
  • 3,425
  • 3
  • 30
  • 57
15
votes
5 answers

Laravel Scheduling call controller

I work with Laravel Task Scheduling, but I have a problem when I call some method from my controller. protected function schedule(Schedule $schedule) { $schedule->call('UserController@deleteInactiveUsers')->everyMinute(); …
Kikolce
  • 181
  • 1
  • 1
  • 8
14
votes
2 answers

Windows Task Scheduler "Launch request ignored, instance already running"

I have a task which triggers every 5 min every day. But recently, I found the task always failed between only 8:00 am to 9:00 am but all the other tasks (some trigger every 1 min) do not have any problem. So I have no idea what's wrong. From log…
Taurus Dang
  • 551
  • 1
  • 4
  • 19
14
votes
4 answers

Windows Task Scheduler OR TaskService Functions in WebApi

I want to create some functions in ASP.NET Web API, which should be executed daily at specific time and do specific task like update statuses/Records/Generating Emails, SMS. Should i create a TaskService in Code using System; using…
Muhammad Saqlain
  • 2,112
  • 4
  • 33
  • 48
11
votes
5 answers

How get task scheduler to detect failed error code from powershell script

I have a few powershell scripts that I'm trying to get to trigger as a failed state in the windows task scheduler when they have failures inside them. So I'm doing something like this inside the powershell script. I tried an exit code of 1 or 99,…
Michele
  • 3,617
  • 12
  • 47
  • 81
11
votes
1 answer

Task Scheduler - get history information into script variables

Is there a way of getting the task scheduler history information into an array or variable inside a batch or PowerShell script. For example, get the information such as task name, date and time when the task started (event ID: 100 ) and when it…
Sup
  • 307
  • 3
  • 5
  • 13
10
votes
1 answer

Where is Task Scheduler console output? (C# console app)

I am running a C# windows console application and passing in a couple of arguments via Task Scheduler. It runs all day loading flat file data created by other applications into SQL server. The program fails intermittently and I have Try/Catch logic…
MartinL
  • 101
  • 1
  • 3
8
votes
2 answers

Powershell script to schedule daily task error

I have a very simple power shell script that will register console applications as daily scheduled tasks. $TaskCommand = Read-Host 'Enter the path to the console application' $TaskName = "TaskName" $TaskStartTime = "10PM" $TaskArg = "-WindowStyle…
jjharrison
  • 841
  • 4
  • 19
  • 33
8
votes
1 answer

task scheduler is displaying an error "The specified query is invalid"

I am running Windows 10. I'm trying to run a backup job (C:\WINDOWS\system32\robocopy.exe) using Task Scheduler. But I was getting issues. To figure out what was going on, I turned on the history log. Unfortunately since doing that, every time I…
Mck
  • 129
  • 1
  • 10
7
votes
2 answers

How to solve a Windows 10 Scheduler error

I have several tasks in Windows 10 that have recently failed. I've made no recent changes to the server. The tasks were working fine for years, and then started failing in December of 2017. I have the Scheduler tasks configured to run on System…
user3138025
  • 795
  • 4
  • 17
  • 46
7
votes
1 answer

WARN cluster.YarnScheduler: Initial job has not accepted any resources

Any spark jobs that I run will fail with the following error message 17/06/16 11:10:43 WARN cluster.YarnScheduler: Initial job has not accepted any resources; check your cluster UI to ensure that workers are registered and have sufficient…
Santanu Dey
  • 2,900
  • 3
  • 24
  • 38
6
votes
2 answers

Get informations on Windows Scheduled Task duration (execution time)

We have a couple of servers with hundred of scheduled tasks on them... and it is becoming problematic to find a right maintenance window. Is there some tool which allows for a graphical representation (like in a Gantt graph) of the Windows Task…
Aldo
  • 303
  • 1
  • 4
  • 14
6
votes
1 answer

C# Task Scheduler in Remote Machine

I'm trying to set up a program that would create a task schedule in a remote server. The following code works fine for local machine however when I try it with the remote server, it throws up the following error.…
6
votes
1 answer

Use C# Task Schedule library to enable/disable a task

I'm using the C# Task Scheduler Library to manage tasks: https://github.com/dahall/TaskScheduler On a given task, I can set the "Enabled" boolean and persist the changes: task.Enabled= true; task.State.Dump(); task.RegisterChanges(); But the…
Daniel Williams
  • 8,912
  • 15
  • 68
  • 107
6
votes
0 answers

List Windows scheduled tasks with Python

I am trying to list all scheduled tasks on Windows with a Python script. On this post, Python check for Completed and failed Task Windows scheduler there is some code which worked. import win32com.client TASK_STATE = {0: 'Unknown', 1:…
user1748640
  • 127
  • 2
  • 12
1
2 3
32 33