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

Task scheduler: Works only when I right-click on the task and start it manually

I've a python flask server file run.py which I want to start as soon as VM reboots. I've tried using the task scheduler on Windows (by basically creating a powershell file which calls run.py and feeding this powershell file to task scheduler) but it…
90abyss
  • 7,037
  • 19
  • 63
  • 94
2
votes
1 answer

Why does Task Manager not run some lines of code in script?

Python novice here. I have a Python script that performs some geodatabase management (reconcile/post versions, compress, etc). I have the following line of code in my script: createLog = open(str(datetime.date.today()) + ".txt", "w") along each…
Brad Jones
  • 33
  • 4
2
votes
2 answers

Trigger a scheduled task upon completion of a different scheduled task

I run a few weekly reports with python scripts and excel macros - each runs for a few hours, and must be done after midnight Monday morning. Task scheduler is the perfect tool for me! I'd like to get more efficient however. I would like to schedule…
user5469188
  • 83
  • 2
  • 8
2
votes
1 answer

Laravel Task Scheduller shown address as localhost when sent mail

I am trying to send email via laravel task scheduller from database. But, links are shown as localhost/blabla in received emails. Same email template is working perfectly when i'm sending emails inside controller.
yigitozmen
  • 947
  • 4
  • 23
  • 42
1
vote
1 answer

Trying to find ways to update the "Description" parameter of an existing task in Taskscheduler from powershell

I am trying to disable a Task from task scheduler on multiple remote servers and while I do that I want to update the description of these tasks as well. Though the command sets to work on schedule tasks are pretty straight forward…
1
vote
1 answer

Run ValueTasks on a custom thread pool

I am looking to execute a bunch of ValueTask-returning functions on a custom thread pool - i.e. on a bunch of threads I'm spawning and handling myself, rather than the default ThreadPool. Meaning, all synchronous bits of these functions, including…
Bogey
  • 4,926
  • 4
  • 32
  • 57
1
vote
0 answers

Windows Server Task Scheduler Trigger AtStartUp

I create a Task Scheduler Job using PowerShell. Using GUI there is a "advanced settings" with an option "delay task for:". I need it for a Scheduler "at startup". Using PowerShell there is the parameter "RandomDelay", but it's not the same? My…
Purclot
  • 483
  • 7
  • 22
1
vote
0 answers

Run automatically Jupyter Notebook script with task scheduler windows

Do you have any idea how can I run a file.ipynb script with task scheduler please? I was not able to find the exact path of jupyter notebook to put it in the "program path". I really need to know the steps to do that! Thank you so much
1
vote
1 answer

How to stop a System.Threading.Timer, then change its parameters and run it again?

I created a timer with C#. I can schedule any operation in seconds, minutes or daily. However, there is a situation where I want to stop this timer, then change its parameters and run it again (ex. when the button is clicked). How can I do it? Below…
ahta14
  • 115
  • 3
  • 9
1
vote
1 answer

Why is my Blazor Server page empty after publishing to IIS?

I'm developing a Blazor Server app that exposes Windows Task Scheduler tasks for remote control with limited controls (I know I can remote to the server's Task Scheduler but this is a request to make it available to some other users inside my…
1
vote
1 answer

How to use PowerShell to run some code upon system shutdown?

I'm provisioning a Windows VM that needs to run some PowerShell code when it boots. It also needs to run some different code when it shuts down. To do the former, I can use New-JobTrigger and Register-ScheduledJob in my initial provisioning script…
JesseTG
  • 2,025
  • 1
  • 24
  • 48
1
vote
1 answer

Triggering Python and py in Task Scheduler does not work

I create a task in task scheduler to open Python and run a code from a .py file and nothing happens. Settings of my task: General Run whether user is logged in or not TICKED Run with highest privileges TICKED Actions Program/script:…
Alien_Explorer
  • 859
  • 1
  • 9
  • 22
1
vote
0 answers

Task scheduler can't show GUI of the application after login (Run whether user is logged on or not mode) - How bypass it with C#

Please take a look at this thread : Task scheduler can't show GUI of the application after logout and login (run whether user is logged on or not) This seems to be the way that recent versions of Windows TaskScheduler. According to Microsoft…
SilverLight
  • 19,668
  • 65
  • 192
  • 300
1
vote
1 answer

Why is my custom current scheduler replaced by the default one when I use ConfigureAwait(false)?

I wrote a custom TaskScheduler which is supposed to execute given tasks on the same thread. This task scheduler is used with a custom task factory. This task factory executes an async method ReadFileAsync which calls another async method…
Anthony Simmon
  • 1,579
  • 12
  • 26
1
vote
2 answers

PowerShell query Windows task scheduler for tasks that will run between specific datetimes

I've inherited a server that runs Windows scheduled tasks for several hundred various processes (mostly it kicks off custom PowerShell scripts) - the schedules for these tasks can be as frequently as every 15 minutes, or as infrequently as once per…