Questions tagged [windows-task-scheduler]

Use for questions about programmatic modification of task scheduling on any version of the Windows OS.

The MS Windows system scheduler component manages the execution time (time slices) that competing processes & threads are given on available processor cores.

Tag usage

The task is for questions about programmatic modification of task scheduling on any version of the Windows OS. You should also tag questions with their specific Windows version, where relevant.

Related tags

References

Microsoft documentation is the primary source for documentation about Windows Scheduling. You may refer the following topics for more information:

845 questions
1
vote
1 answer

Run Protractor e2e Test script Using Task Scheduler – Windows 10

I have Protractor E2E test for our application, now want to run it on windows machine/server using windows 'Task Scheduler', did anyone have knowledge about how to configure 'Task Scheduler'?
Vinod
  • 1,234
  • 3
  • 21
  • 37
1
vote
1 answer

How to schedule a task for non admin users?

We are currently using TaskService to schedule a task. We use the default folder: TaskScheduler scheduler = new TaskScheduler(); scheduler.Connect(); ITaskFolder rootFolder = scheduler.GetFolder(""); which turns out to…
Felix
  • 3,783
  • 5
  • 34
  • 53
1
vote
1 answer

SSIS doesn't run windows scheduler task correctly

I am trying to run a Windows scheduler task using schtasks.exe in an SSIS job. The task will be called using the same ID as is used to execute the task. The task itself works; It is currently started manually after the SSIS job is done. I've tried…
Jared Posch
  • 150
  • 9
1
vote
1 answer

Batch file not running python script in task scheduler

I have a scraping python script and a batch file that when run from CMD works perfectly however when I try to run it from Task Scheduler nothing happens. I know there are a lot of questions regarding the same issue but I have tried all of the…
davork
  • 179
  • 1
  • 3
  • 16
1
vote
1 answer

Task Scheduler Create Task DotNet not working

I am trying to schedule a task using Task Scheduler on Windows. It is for a console app written with .net Core. I have created a task, set a trigger and created a new action. When I manually run it, I get a 'Last Run Result' of 'The system cannot…
Dan
  • 174
  • 1
  • 2
  • 11
1
vote
0 answers

Task Scheduler not running python script from batch file, which works when started manually

I'm trying to schedule a Python script through Windows Task Scheduler by making a batch file. Here's what I tried. Normally putting python location in program/script and specifying the python file in arguments in task scheduler. Trying through…
EXODIA
  • 908
  • 3
  • 10
  • 28
1
vote
1 answer

Selecting multiple months for a MonthlyTrigger using css

I have the need to create scheduled windows tasks using a C# app. I have a comma separated string that stores the months I'd like to run the task on. The string contains the short values for the type MonthsOfYear - eg. "1,2,4,16,128,1024". The…
ITGuy
  • 13
  • 2
1
vote
3 answers

Pyinstaller *.exe in TaskScheduler

i created a small python program and freezed it to an *.exe file with the --noconsole option. When I run the program normally it works. But when I put it in the task scheduler that runs it on startup it does not work anymore. The program has no ui.…
user3166101
  • 51
  • 2
  • 10
1
vote
0 answers

How to send sms messages using twilio and windows scheduler?

I would like to schedule when I send sms messages using Twilio. I currently can schedule when to run php scripts using Windows Scheduler, however, whenever I try to send messages using twilio, the script doesn't execute. PHP script that sends sms…
Shekinah Budhai
  • 77
  • 1
  • 2
  • 11
1
vote
0 answers

Impersonation not working in scheduled task

I have a very simple program that copies file from one location to another, and I have scheduled it run everyday using the windows scheduler. But when the scheduler launches it, it fails and logs System.UnauthorizedAccessException: Access to the…
unlimit
  • 3,672
  • 2
  • 26
  • 34
1
vote
1 answer

How to fix "Run time error 429: ActiveX Component Can't Create Object" Error when using Task Scheduler to run a selenium vba macro in Excel?

I have a macro in Excel that uses Selenium Basic Type Library to open chrome and automate a few web tasks in Chrome browser. I set up a VBS to run the macro and it runs smoothly manually when I double click the VBS. Here's the flow: Task…
1
vote
1 answer

Scheduler makes a python script run but doesn't produce a csv file

I've written a script in python to scrape some links from a webpage and write them to a csv file. My script does this in the right way when run it from an IDE. When I run the same using windows task scheduler, I can see that a command prompt pops up…
SIM
  • 21,997
  • 5
  • 37
  • 109
1
vote
2 answers

add minutes (whole number) in time to batch-file

I want to put a whole number (these numbers will always represent minutes) and that adds to the current time to use it in the SCHTASKS command. Example if it is currently 14:56:03 i put 9 or 09 in var1 should set 15:05:03 in var2. I have this…
Technomancer
  • 33
  • 1
  • 5
1
vote
0 answers

schtasks.exe: Task Scheduler can't create a task from XML

I'm trying to build a command that I can use in my Inno Setup installer to update my program on a schedule. This is what I have so far. schtasks /CREATE /TN "Search Deflector Updater" /RU SYSTEM /SC DAILY /TR "[REDACTED]\update.exe" /XML…
Jacob Birkett
  • 1,927
  • 3
  • 24
  • 49
1
vote
1 answer

Setup a scheduled task to copy from server to Google Cloud Bucket

I have activated the service account that has Storage Admin rights. When I run gsutil -d version -1 it shows that it is pointing to the BOTO file. I can run the scheduled task if I'm logged into the server without an issue. If I try and run it…