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
2 answers

C# task schedule modify

I'am trying to modify a scheduled task, manually created in Windows task scheduler, using C# application using the following code: rootFolder.RegisterTaskDefinition(taskEdit.Name, taskDefinition, 6, null, null,…
Andrea
  • 37
  • 1
  • 6
1
vote
0 answers

does task scheduler close the program after the task is finished?

I have a task scheduled to run at 12 AM daily and the task runs a console application. Some how the console application doesn't close after the task is finished and I see it running in process explorer. Should the program automatically close after…
AjS
  • 341
  • 2
  • 13
1
vote
1 answer

where is my batch file?

I made several bat files using task scheduler(custom) and I need to apply these to all of my 70 server computers. Obviously I don't want to repeat the same procedure at every server. Can I simply copy and paste my bat files to different computers…
1
vote
0 answers

How to automate the task in Task Scheduler if it is in remote machine?

I am looking for a way through which 1. I can check the status of the task in Task Scheduler which is in Remote machine. 2. Also if the task is not running then instead of running it manually I want to automate it so that with a button click it…
Omi
  • 427
  • 7
  • 21
  • 42
1
vote
2 answers

How to set "Do not stored password.The task will only have access to local computer resources programmatically in TaskScheduler

I programmatically create a task of TaskScheduler and run it. I am using the following code: var taskDefinition = taskService.NewTask(); taskDefinition.RegistrationInfo.Author =…
Ephedra
  • 831
  • 10
  • 24
1
vote
0 answers

Scheduling a task using PowerShell without manually creating a task in windows task scheduler

I have written a PowerShell script that I want to run in a daily basis. I want now to create an alert for the same in the system. But since this needs to be done in not only my computer but also in my teammates' computers (around 10 computers) I was…
krishna
  • 55
  • 7
1
vote
1 answer

Running yii2 script using task scheduler

I want to run my action method in yii2 advanced automatically. I put the code on the console/controllers. This is the code: MailController.php
dev-x
  • 897
  • 3
  • 15
  • 30
1
vote
1 answer

How to run Pre-made Windows Task Scheduler Task?

How to simply run pre-made task by name without using schtasks.exe as new process? Should be max 2 line total using namespace + execute pre-made task by name. I can build a task with C# using TaskScheduler wrapper (which can create, modify, edit) or…
ITK
  • 163
  • 9
1
vote
0 answers

WPF Offline Clickonce Application View not displaying only at Startup via Task Scheduler

I have an offline WPF application deployed through Clickonce. I want this application to start when the windows computer starts up. Currently i'm trying to do this through Task Scheduler and have made some progress. My program is accepting a…
Oliver
  • 651
  • 2
  • 9
  • 17
1
vote
1 answer

Task vs Continuation scheduling

Suppose I have many CPU intensive tasks that get dumped on the default scheduler (all run at once, e.g via Task.Run or Task.Factory.StartNew with default scheduler). Each task has a Continuation. The scheduler will start a few of the tasks and put…
Ricibob
  • 7,505
  • 5
  • 46
  • 65
1
vote
1 answer

Run Codeigniter controller using Windows Task Scheduler (Cron job)

I want to run a CodeIgniter controller periodically using Windows Task Scheduler like a cron job. I have run stand alone php file using task scheduler with this method but failed to implement this on a CodeIgniter controller. Here is my…
Sazzadur Rahman
  • 2,650
  • 1
  • 18
  • 34
1
vote
1 answer

Powershell output doesn't log properly when called from Task Scheduler

I need to log my powershell output. My ps file is something like this: #Set-ExecutionPolicy Unrestricted $ErrorActionPreference="SilentlyContinue" Stop-Transcript | out-null $ErrorActionPreference = "Continue" $date = (Get-Date).tostring("MMddyy…
90abyss
  • 7,037
  • 19
  • 63
  • 94
1
vote
0 answers

Task scheduler and PHP / MS SQL connection

I've a PHP page that access MS SQL database ...the page is working just fine if I'm running it via browser ... the problem happens when I tried to make this page runs via Task Scheduler. The PHP scripts is working but can't establish a connection…
1
vote
1 answer

Selenium Test Runs on Command Line but Not Through Task Scheduler

I have a python Selenium test that opens firefox with Firebug and Netexport, logs in to a webpage and waits for the last page in the redirect chain to load. This test runs perfectly fine when I run on Windows command line, but when I try to run it…
1
vote
1 answer

How to change start directory of an scheduled task with schtasks.exe in Windows programatically?

I am trying to schedule a task with this command SCHTASKS /Create /TN MyTaks /SC minute /MO 1 /TR "%cd%\myfile.exe" I need Task Scheduler run my file inside current directory of myfile.exe. How this can be done considering that I tested this…
Esildor
  • 169
  • 3
  • 10