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

ClickOnce console application running from Task Scheduler will not update

I have console application deployed to local network drive with ClickOnce (offline). It is meant to run once daily. How do I setup a task in the Task Scheduler in such a way that when I publish a new version of the application, the task will run…
Yosef Bernal
  • 1,006
  • 9
  • 20
2
votes
2 answers

How to configure "If the task is already running, then the following rule applies" in Windows Task Scheduler using PowerShell script?

I am trying to achieve the following settings (select "If the task is already running, then the following rule applies") through PowerShell script but unable to get appropriate settings to configure that. I am using the following code to configure…
Dhar Dibya
  • 47
  • 1
  • 10
2
votes
0 answers

What is the TaskScheduler in azure functions?

I could not find any applicable documentation about this. What is the default TaskScheduler when using Azure Functions? Ideally, I would like it to be based off of threadpool - i.e., TaskScheduler.Default - but I do not have any certainty in that…
Tanveer Badar
  • 5,438
  • 2
  • 27
  • 32
2
votes
2 answers

Python windows task to run with admin

I am looking for some Python code to create a Windows Task in the Task Scheduler, it needs to run at start & have the highest permissions level (admin). // description of your code here Uses the new COM Task Scheduler Interface to create a new…
Zero
  • 297
  • 1
  • 12
2
votes
2 answers

Trigger powershell based on event log

I have a command line argument script written in PowerShell which accepts server name from the task scheduler. However my requirement is to execute the script when the SQL server is restarted, hence I have attached the PowerShell script to the event…
SQLDoctor
  • 343
  • 7
  • 16
2
votes
1 answer

Editing the existing task in the task scheduler C++

I am started working on Windows10 Task Scheduler . I am developing GUI application in that I have requirement to control the number of days interval for trigger the task. Suppose If I enter 5 days in my GUI then it should trigger the task in 5 days.…
2
votes
2 answers

Start in path in Task Scheduler ignored

I have a powershell program that I add to a task in Task Scheduler. I set the "Start in (optional)" path to D:\XXX\YYY but when I run the task I see that the current path (retrieved with Get-Location) is C:\Windows\system32 and not the path that I…
2
votes
2 answers

Schedule and MANUALLY run .pyw script in Task Scheduler on Windows

I would like to schedule a .pyw script in Task Scheduler on Windows. When I double click on the file, everything works properly, the program does what it should do. I successfully create a task in Task Scheduler: -'Run with highest privileges'…
Dr_V
  • 25
  • 5
2
votes
4 answers

Electron, electron-builder, nsis, remove SchTasks at uninstall

I made an app that is running with Admin Privileges. To run the app at windows startup I made an SchTasks, but at uninstall I want to remove it. The closest I could get is: ;script used to remove the auto launch scheduled task !macro…
jalanga
  • 1,456
  • 2
  • 17
  • 44
2
votes
1 answer

Failure to run VBS script with task scheduler

we have this vbs script we use to update certain documents with SyncToy. This is the script as it is currently written: '-------------------------------------------------- Set oShell = CreateObject("WScript.Shell") sFilePath = chr(34) &…
McITGuy
  • 123
  • 6
2
votes
1 answer

How do I get the Task History on a remote machine?

I'm trying to get the task history (when I get the task list of the same remote machine in the GetTaskFromRemoteServer method, it is working) but everytime the program gets to the "Console.WriteLine(log.First().Level)" line, I get the following…
azekirel555
  • 577
  • 2
  • 8
  • 25
2
votes
2 answers

How to find the process ID of a running scheduled task?

I can determine running tasks with: $TaskService = new-object -ComObject('Schedule.Service') $TaskService.connect() $TaskFolder = $TaskService.GetFolder('\') $TaskFolder.gettasks(1) | ? {$_.state -eq 4} Is there any way to identify the process…
Teknowledgist
  • 351
  • 1
  • 3
  • 13
2
votes
2 answers

Windows 2008 server Task Scheduler giving error 0XC0000005

I have published a console application through .Net Core2, and copied the output folder with EXE file on server. If I double click and execute it is running all fine. But when I am scheduling it though task scheduler it is giving error -…
2
votes
1 answer

Task Scheduler with .dll

net core 2.0 console app on a schedule only problem is i have a .dll file - I have followed resources which say to put the 'Start-in' option to the path of project and this hasn't worked - however when I navigate to the folder with the dll and run…
rahulchawla
  • 170
  • 1
  • 3
  • 20
2
votes
1 answer

POSIX semaphore doesn't work under high contention/load

Using C++11 on Linux kernel 4.4.0-57, I'm trying to run two busy-looping processes (say p1, p2) pinned (pthread_setaffinity_np) on the same core and making sure the interleaving execution order by using POSIX semaphore (semaphore.h) and…
anthonyaje
  • 77
  • 2
  • 6