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

How to run program on ( ubuntu bash windows 10 ) from windows task scheduler

I need to execute task every 5 minute in ubuntu bash and I like to use windows task scheduler. I don't know how to write a .bat file to start application in ubuntu bash. I tested these and did not work. c:\Windows\System32\bash.exe -l…
amin saffar
  • 1,953
  • 3
  • 22
  • 34
4
votes
2 answers

How to send email when SPECIFIC scheduled task fails to run

I have a exe file that is executed every day by the Task Scheduler on my Windows 2008. If that script should fail to start, or if the script fails during execution, I would like to get an email notification. There are many examples of getting Task…
4
votes
1 answer

General settings in Task Scheduler using C#

I would like to set the "Configure for" setting in Task Scheduler to "Windows 7". Current C# code: using (TaskService ts = new TaskService()) { TaskDefinition td = ts.NewTask(); TimeTrigger trigger = new TimeTrigger(); var startTime =…
user3447653
  • 3,968
  • 12
  • 58
  • 100
4
votes
1 answer

Task scheduler option for "Run whether the user is logged on or not" is disabled

This is how the task scheduler window is expected to look like: In my case though, the option "Run whether user is logged on or not" is grayed out (disabled). This is a Windows Server 2012 machine and the accounts are subject to several group…
Merik
  • 2,767
  • 6
  • 25
  • 41
4
votes
1 answer

Task Scheduled Powershell script do not show message box

I have a Powershell script which scheduled to run overnight on several hosts. It executed by CMD script (wrapper) that set in the Task Scheduler. In some cases I need to display a message to the user which will arrive in the morning and let him…
Ronen
  • 71
  • 1
  • 5
4
votes
1 answer

TaskScheduler - executing continuations

After a bit of reading about TaskScheduler (good article here), it turns out that a TaskScheduler can: Schedule tasks - by using QueueTask method, which in the example above just Posts task execution to selected SynchronizationContext Schedule…
3
votes
1 answer

PowerShell script lacks consistency when run through task scheduler, am I missing something or is this Windows being Windows?

I am a beginner in PowerShell. I have created myself a PowerShell program to act as my alarm clock in the morning. I have task scheduler executing it on a time trigger. The problem i am having is a lack of consistency. Sometimes it will run properly…
SHachey
  • 31
  • 4
3
votes
0 answers

Windows Task Scheduler runs task one day before the schedule

We have several .bat files being executed via Windows Task Scheduler each Saturday at the specific time. For example, one .bat file is executed at 1AM each Saturday via Task Scheduler, second .bat file is executed each Saturday at 2AM etc. However,…
3
votes
3 answers

TaskScheduler: "Access is Denied" (0x80070005) when running scheduled tasks on Windows Server 2019

I just set up a new Windows Server 2019 instance, and am trying to run tasks (C# console apps) through Windows Task Scheduler. I've set it up to log in as a certain windows user, which has "Administrators" permission. However, when I try to run the…
3
votes
4 answers

How to add Author to a windows task using powershell

I'm creating a window task using powershell, everthing is ok, but i can't find how to add the Author name. Register-ScheduledTask as a parameter for description but not for Author. Exported Windows task
3
votes
2 answers

Schedule batch file not renaming file to name specified using %date% and %time% variables

As part of a regular file upload process we run a .bat file via Windows Task Scheduler. It opens WinSCPand runs it using a config file. Then it cds to the file where the upload is stored, renames it, then moves it to the archive file. If I run the…
3
votes
0 answers

Python import pandas infinite loop on task scheduler

I have this script that works fine when executed manually. Problem is that when I Windows Task Scheduler It seems to hang somewhere. The task is executed by a service account with privileges to run as a batch job, and has full control over the…
mtryingtocode
  • 939
  • 3
  • 13
  • 26
3
votes
3 answers

Run the task scheduler twice a day but not hourly intervals

I'm trying to start a windows service in task scheduler to run twice a day, one at 12.00pm and next one at 10.00pm on the same day. I want this to run every day. Is this can be done? Thanks a lot in advance
kas_miyulu
  • 335
  • 1
  • 5
  • 27
3
votes
1 answer

Programmatically creating scheduled tasks fails on Windows 10 unless "run as admin" is used

The app I'm participating adds tasks to Windows Task Sheduler. It works fine on Windows 7, but on Win 8.1 and Win 10 the access is denied unless "run as admin" is used. The app must be launched with "run as admin" permissions in order to create the…
Sergey
  • 113
  • 12
3
votes
2 answers

ClickOnce app doesn't execute from Task Scheduler

I have a ClickOnce application that we start on Log on and recurring. After I install the application the tasks work fine, but if I reboot the machine the scripts run but they fail to start my application. I added logging to the BAT file and I…
1 2
3
32 33