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

How to run a WinSCP from ps1 file

I have a .ps1 file with my script. In this script I have a line with: Start-Process "C:\activatebatch.bat" If i execute it directly with ps1 file, everything works well. But if I set up a Windows Scheduler with ps1 as executive, the bat file…
Renver
  • 77
  • 1
  • 6
3
votes
1 answer

Task scheduler is not running Selenium scripts

I am working with Selenium Webdriver using Python. I can navigate and do stuff normally when I run it through IDLE. And also it works perfectly when I run it by task scheduler "Run with user logged on" but only manually if I make it run. If the…
Madan Raj
  • 279
  • 4
  • 15
3
votes
1 answer

Delete Task Scheduler task at Uninstall?

My installed app creates a Task Scheduler task at run-time. This Task Scheduler task runs one of my installed apps at Windows log on. So I need to delete this Task Scheduler task at uninstall. Is the Inno Setup-Uninstaller able to do this? OS: Win…
user1580348
  • 5,721
  • 4
  • 43
  • 105
3
votes
1 answer

Schedule task to run multiple overlapping instances of the same R script via batch file

I am trying to run an R script every hour that downloads data from an API, manipulate it, and writes out some product. Each run takes 3-5h, but I can't seem to schedule a task that will successfully run multiple instances at the same time. I use…
messamat
  • 75
  • 9
3
votes
1 answer

Laravel - Task Scheduling

I'm using Laravel 5.4 on a local WAMP Server. I wanted to perform a Task Scheduling but I'm not sure if I really understood how this works. I created a command cronEmail and in the handle() function added code where I would get an Email. In…
3
votes
1 answer

R taskscheduleR not executing script

I'm trying to run a script once every minute using taskscheduleR library. I'm following the examples from the GitHub page but am running into the following problems: R says task created but the script does not execute properly (it should write data…
Gautam
  • 2,597
  • 1
  • 28
  • 51
3
votes
2 answers

How do I run a task using schtask with privileges?

I am trying to do the UAC bypass bug with task scheduler, only instead of using the GUI tool, I am trying to do it with schtasks.exe (the equivalent command-line tool). I managed to do the same more or less, except for the most important part - the…
user
  • 31
  • 1
  • 1
  • 2
3
votes
1 answer

Parameter generator for SCHTASKS.exe

I've came across many websites providing functionality for creating crontab parameters from user input through a GUI like.. http://www.openjs.com/scripts/jslibrary/demos/crontab.php and many others, I was wondering if there is a same kind of thing…
U.Z.A.I.R
  • 47
  • 7
3
votes
1 answer

Create XML task file with installation path before running schtask.exe in Inno Setup

I'm trying create Inno Setup with scheduled task from XML file. The scheduled task is: My Application need to start with user login. in Inno Setup script: [Run] Filename: "schtasks.exe"; \Parameters: "/create /XML ""{app}\Schedule.xml"" /TN…
samgi
  • 198
  • 11
3
votes
2 answers

What is the switch in Windows schtasks for ExecutionTimeLimit in the xml file?

Windows schtasks.exe: What is the equivalent command line switch for ExecutionTimeLimit in schtasks. In the Edit Tasks dialog it is "Stop tasks if it runs longer than". I tried /ET end time and /DU duration but they imply a repetition. I only want a…
Paul M
  • 31
  • 3
3
votes
1 answer

Why is my Scheduled Task updating its 'Last Run Time' correctly, and giving a 'Last Run Result' of '(0x0)', but still not actually working?

I have a batch file which is set to run as a Scheduled Task on Windows Server 2012. When I run the batch file by hand from the command line, it works. When I right-click on my task in Task Scheduler and manually run it, it still works fine. But, if…
3
votes
1 answer

Create scheduled task with administrative rights running from normal user account

I am creating an scheduled task during installation of an application. The installer itself is running with administrator permissons: SchTasks /F /create /tn "MyApp Start" /XML "D:\MyApps\start.xml" /ru "System" This task is intended to start…
3
votes
2 answers

windows schtasks open excel if not open, then open worksheet if not open

I created a task in the Windows 7 schtasks tool. It reminds me on the 15th of the month, by opening an excel workbook that I should look at and update. Handy. Problem is, there is about a 60% chance I already have Excel open at the time this pops…
Mark Goldfain
  • 731
  • 2
  • 8
  • 24
3
votes
2 answers

Is it possible to manage windows scheduler from an asp.net-mvc site or other remote options?

I am trying to see if I can manage a bunch of windows scheduled tasks from an asp.net-mvc site (setting up new tasks, updating frequency of existing tasks, etc) because we want to allow non technical users to update this info (so we want to avoid…
leora
  • 188,729
  • 360
  • 878
  • 1,366
3
votes
1 answer

Send mail task is not working in SSIS when SSIS package is called through windows task scheduler

I have an SSIS package which reads csv files present in a folder and uploads the data into a database. It also has a send mail component which is used to send mails after the csv file is read and data is uploaded. This package is called…
seadrag0n
  • 848
  • 1
  • 16
  • 40