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

C# Why can I not programmatically kill a console program started in Task Scheduler?

I have a console program to run a daily batch. I have a UI that I can use to alter parameters in a db that the console program uses. I thought it would be great to be able to stop and start this program from the UI and I can do that. However, I…
Dave Tapson
  • 810
  • 1
  • 9
  • 22
0
votes
0 answers

Task Scheduler Not Running Selenium .bat at Startup

I have a .bat script that launches a Selenium Server. It's setup with the Task Scheduler to run on startup but it doesn't run. When I open the Scheduler, select the task, and click "run" it will execute fine. Does anyone know what may be preventing…
0
votes
0 answers

Windows Server 2008: Unable to access network drive from Task Scheduler initiated task

I've written a program that should run every day at a fixed time. When I was first putting it together I had problems reaching a mapped network drive. The solution was to use the UNC path instead of the mapped drive letter. This ran under Task…
0
votes
0 answers

Win task scheduler fails to run batch file

First of all, I did check hundreds of previous posts but I still have a problem. I have a T-SQL cursor. And I want to run this cursor every 5 minutes. In order to do that I've made a *.bat file (sqlcmd -S DEAMON\SQLEXPRESS -i reminder_cursor.sql)…
user3529850
  • 1,632
  • 5
  • 32
  • 51
0
votes
1 answer

Can't run the music/video on Windows 10 through the use of Task Scheduler

I was planning on using the Task Scheduler as an alarm on my laptop, I created a task that would run a music/video (loud music videos for example) file on WMPlayer that I selected and act as an alarm.The problem is, every time the task ran at the…
MikeyMike
  • 11
  • 2
0
votes
1 answer

start perl script in Win task sceduler

I want to schedule task to run perl script every week in Win task sceduler. The perl script is running manually from command line using: perl update_blastdb.pl --passive --decompress refseq_rna How can I pass the above 3 arguments: --passive…
Alaa
  • 185
  • 5
  • 14
0
votes
0 answers

Task scheduler error 0x80070002

When running a task scheduler , it returns 0x80070002 error. Task is to run php script, when running manually it works fine. Working environment is windows server 2008, PHP:5.6 Other schedulers are working fine[perl script] Tsk is set as…
siva
  • 1
  • 1
  • 4
0
votes
0 answers

How to set Trigger Type as Logon in task scheduler c#

this answer was perfect for me but i m unable to set TriggerType property to TaskTriggerType.Logon. As error description say its a read only. How do i can set this property so that my exe runs everytime when users login? I need Logon Event with one…
ArjunArora
  • 986
  • 3
  • 12
  • 27
0
votes
1 answer

windows task manager-limit hours of weekly task

I want to schedule a task through task manager, It should be weekly task but should work on different days, keeping hours in mind. Suppose it should work on monday from 10 pm to 6 am. Is it also possible that it doesnt kill/close the process…
0
votes
3 answers

Windows task scheduler not running python script/batch file

I have a very simple python script (to send an email) which works perfectly when I run it in the cmd window, or in python, or if I directly start a a .bat file pointing to it. However, when I try to get the task scheduler to run it, nothing…
0
votes
1 answer

Windows Power Shell & Console Windows Host processes will keep running after windows task schduler's task ends

I have windows server 2012 R2 , and i have defined a task inside windows task scheduler, as follow:- -i create a .ps file, which mainly calls a remote URL:- [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} $request =…
John John
  • 1
  • 72
  • 238
  • 501
0
votes
1 answer

Unable to automate the migration process using Task Scheduler and SharePoint cmdlet “MigrateUserAccount”

Unable to automate the migration process using Task Scheduler and SharePoint cmdlet “MigrateUserAccount” getting error “You cannot call a method on a null-valued expression” $spFarm =…
0
votes
1 answer

How to assign process name to batch file when running from taskscheduler

I am running a webapplication on Windows Server 2012 and have to run an endless loop in a PHP file. In order to control this, I created two batch files. The PHP file: BatchFile that calls the…
0
votes
1 answer

ArgumentException when accessing Definition of a scheduled task (IRegisteredTask)

I am trying to get information about an already existing scheduled task (using an Interop interface generated for taskschd.dll): ITaskService ts = new TaskScheduler.TaskScheduler(); ts.Connect(); ITaskFolder tf = ts.GetFolder("\\"); var tasks =…
Thomas Herzog
  • 41
  • 1
  • 4
0
votes
2 answers

How do I configure a Windows task to ping database every few minutes

The firewall setting at the server breaks the connection to an application I am using every 2 hours it sees it idle. How to i write/configure a task from Windows Scheduler to Ping the database every 30 minutes so that the Firewall is not able to…