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

C# how to disable certain settings fields in Task Scheduler

I create a windows task using Task Scheduler Managed Wrapper. However, I don't know how to uncheck the following options in the settings tab: Stop the task if it runs longer than If the running task does not end when requested, force it to…
Muhannad
  • 467
  • 4
  • 28
1
vote
0 answers

creating a file using task scheduler while the windows user lock the system

I have written a bat file and writing the console output to a text file.The bat file is scheduled using the task scheduler to run at prescribed time. The bat file is executing and creating a file while the system user is not locked (I mean…
1
vote
1 answer

How to create a task to periodically check for another scheduled task and delete it if it's present?

Is there a way to create windows scheduled task that is run periodically to check for another task, and if found, then delete said task and continue checking for that task in case it appears again?
user7528326
1
vote
1 answer

Why are my async continuations scheduled outside of the thread pool?

Please read the questions before marking as duplicate. This question implements the solution provided in this question and still experiences a deadlock. I am debugging a large multi-threaded application that makes many concurrent calls to various…
Alden
  • 2,229
  • 1
  • 15
  • 21
1
vote
1 answer

Python Task Scheduler Permission Error

I am trying to run a python script that downloads qualtrics survey responses and stores it as a CSV. As part of the script it calls zipfile.zipfile. When i run the program inside of VS Code Terminal window it downloads and unzips the file just fine.…
Abram
  • 59
  • 1
  • 12
1
vote
1 answer

Batch file runs manually but not through Windows 10 Task Scheduler

I really need help on running a .bat file from the Task Scheduler. It runs when ran from location or when Run is clicked from Task Scheduler. It doesnt run on a schedule when Run only when user is logged on / Run when user is logged on or not The…
Gina Gina
  • 2,915
  • 2
  • 10
  • 16
1
vote
1 answer

Output not redirected to file inside of a windows task

I should also state I'm running this inside a Windows container. I'm trying to get the output of aws.cmd in a file, but when run in a task it's not sending any output - I can't figure out why. If I create the following script: 'get-date | out-file…
red888
  • 27,709
  • 55
  • 204
  • 392
1
vote
0 answers

Delay in task scheduler job

I have a job that runs every 15 minutes and gets a datetime. The batch file contains the following PowerShell command to get the current datetime minus 15 minutes: for /f "delims=" %%a in ('"powershell…
jgozal
  • 1,480
  • 6
  • 22
  • 43
1
vote
0 answers

How to run a vbscript file in Task Scheduler

I want to run my VBS file script in the background on a specific date. my VBS file is simple (call to the batch file and run it in mode invisible) Set WshShell = CreateObject("WScript.Shell") WshShell.Run chr(34) & "C:\Temp\Generate_Report.bat" &…
MokiNex
  • 857
  • 1
  • 8
  • 21
1
vote
1 answer

Create a TaskScheduler Entry with PowerShell

Hello guys I have a problem and I'm not sure how to solve it. What I want: I want to create a scheduled task with PowerShell. The task should be triggered every day, beginning at 05:55am, for the next 15 hours, be triggered every 30 minutes. So far…
1
vote
1 answer

What permissions are needed for Register-ScheduledTask?

I have a PowerShell script that runs under its own user account for security purposes. It needs to be able to schedule tasks as part of its operation, and uses the ScheduledTasks module to do so. After seeing this question, I granted the script's…
Alexander Martin
  • 443
  • 3
  • 12
1
vote
1 answer

How to suppress the prompt to change registry settings?

Task scheduler runs a batch file which launches a powershell script to change the registry. The task is set to run every time someone logs in. The user gets prompted to click yes or no to change registry settings. Of course I want them to press…
Matt Brown
  • 23
  • 7
1
vote
1 answer

How to list all the tasks in a console app?

I need it for debugging, through the code and not through some UI tools. The class TaskScheduler has the property Current which returns ThreadPoolTaskScheduler, but it is internal, apparently in taskschd.dll. Also GetScheduledTasks() of…
1
vote
2 answers

windows schedule task could not successfully run at startup

I use a script to create a windows scheduled task to call a powershell script in elevated mode to run windows update by using boxstarter (a tool could automatically continue running code even there is reboot during the execution) when system…
1
vote
2 answers

Is it better to schedule a python script via Task Scheduler or with code to run when needed?

So this is something I have been wondering for a while, and while I don't know if there is a correct answer there is probably a better option. So which of the options below is best to schedule a python script to run at a specific time? Let me know…
Binary111
  • 149
  • 4
  • 15