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
0
votes
0 answers

Windows Task Scheduler not running task despite trigger

please keep in mind throughout this that I am quite new to windows automation and powerShell so go easy on me please. My goal was to create an automatic USB cloner in order to copy files if the drive has a specific name. I've sorted the copying and…
user6277174
  • 21
  • 1
  • 4
0
votes
1 answer

Runing VBScript code for Outlook through a scheduler

I have written a VBScript for Outlook that forwards email which are lying unread in the inbox for more than 30 minutes. When I manually run the vbs file it works perfectly fine, but when I trigger is through Windows Task Scheduler it gets stuck.…
Sourav Roy
  • 63
  • 2
  • 9
0
votes
0 answers

Built a python executable using pyInstaller and it will not schedule in Windows Task Scheduler

I've built a python file that uses the glob library, and wrapped it into an executable using pyInstaller. The program renames a file file of type .txt to type .xyz. When I try to run the executable by double-clicking it, it runs fine. If I try to…
phfb
  • 121
  • 2
  • 12
0
votes
1 answer

Get arguments From Task Scheduler

I can create a new task like this: Friend Sub CreateTaskF(ct_NameTask As String, ct_DescriptionTask As String, ct_Hour As Integer, ct_Minut As Integer, ct_date As String, ct_arg As String) Dim ts As TaskService = New TaskService Dim…
Joana Brandão
  • 171
  • 1
  • 7
0
votes
0 answers

Windows Server Task Scheduler -> trigger on an event(triggered by stored procedure)

could i schedule a task triggered by an event, and this event would be stored procedure..so I want to trigger it after successfully executing of a stored procedure. Can this be done and how? Many Thanks
0
votes
0 answers

C# Task Scheduler Access Denied Issue

I am creating a task scheduler from c# code using Microsoft.Win32.TaskScheduler library. Following is my code: TaskDefinition taskDefinition = taskService.NewTask(); Principal.UserId = "NT AUTHORITY\\SYSTEM"; Principal.LogonType =…
s123
  • 41
  • 1
  • 1
  • 5
0
votes
0 answers

Batch script that runs fine when manually-ran, runs into issues when ran within Windows Task Scheduler?

I have a batch script that specifically checks for specified Windows service names. It outputs the service name, status and startup type to a .csv report: type null > servicecheckupreport.csv echo TIMESTAMP OF REPORT: >>…
Lasagna Cat
  • 297
  • 3
  • 24
0
votes
0 answers

Batch script that checks windows services and creates .csv output works when manually initiated, but not when initiated via Windows Task Scheduler?

My goal is to have a batch script that checks windows services to see if they're running and output a .csv report. I also want this batch script to run hourly via Windows Task Scheduler. Here is a script I was given to and am using for the…
Lasagna Cat
  • 297
  • 3
  • 24
0
votes
1 answer

transfer event ID to triggered task in Windows

I have one particular system task in Windows (7 or XP, for example) with multiple triggers by various system events. Is it possible to transfer event ID to the task, that is triggered with this event? For example, the task runs a script. Can I pass…
green
  • 335
  • 2
  • 10
0
votes
0 answers

Task Scheduler onstart process not listening on port

I'm trying to make script that will start needed processes every time each machine will reset for any reason. (Windows Server 2016 core) I began by using windows Task Scheduler, that was running a bat file on startup as Administrator. Problem that I…
0
votes
1 answer

Is there a way to loop task scheduler?

I am using Laravel Task Scheduling and I scrape data from bunch of urls in a for loop. That's why I don't know for sure when one cycle finishes. I tried to setup a for loop in the Kernel's schedule() method as mentioned in this question but it…
senty
  • 12,385
  • 28
  • 130
  • 260
0
votes
0 answers

Unable to schedule VB Script to run whether user is logged on or not

I have a small VB Script that does the following Access an Excel file in a network path Run a macro in it Save the Excel as a CSV in the same path Below is the code of the same Set objexcel = CreateObject("Excel.Application") objexcel.Interactive…
pallupz
  • 793
  • 3
  • 9
  • 25
0
votes
1 answer

Replace pipeline name using powershell

I am trying to register a task in windows task scheduler by reading a XML file as string and able to do it successfully, additionally what i want to do is, to replace the {plname} (which is present in the XML) with the task name.
Ricky
  • 35
  • 1
  • 1
  • 7
0
votes
1 answer

How to run a .bat file in task scheduler

I have a .bat file that is one line long and calls up a vb script that specifically opens an excel file and runs some macros: cscript priordays.vbs "C:\PATHANME\FILENAME.xlsm" When I run it by double clicking, it runs fine and successfully. When I…
mbald23
  • 91
  • 1
  • 1
  • 11
0
votes
1 answer

Execute trigger/task only once in Spring-boot and de-register task during runtime

I'm Integrating payment module in our application using spring boot. I'm stuck with one of the edge cases where user close the browser during transaction. As user close the browser I need to update my transaction table with status failed. But…