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
3
votes
2 answers

How to launch cmd.exe to execute DTExec using Task Scheduler?

I'm trying to automate a SSIS package using dtexec via Task Scheduler (as I do not have rights to create it via SQL Agent) and need it done locally on my machine. I referenced this post: How to launch cmd.exe to execute command using Task…
TWaller
  • 81
  • 1
  • 7
3
votes
1 answer

octobercms Task scheduling not working

I'm using OctoberCMS based on Laravel. I don't have SSH access to my server. Each day I need to delete some users who haven't activated their account in 24 hours after registration, so I'am thinking about use a task sheduling ( like…
Z.S
  • 85
  • 1
  • 8
3
votes
1 answer

How to make Python.exe stay open when running from Windows Task Scheduler

I am running a .py file from Windows Task Scheduler. For most files this works fine as follows: Create new task in TS In TS on the "Actions" tab under "Program/script:" specify the path to python.exe (Example: C:\Users\User\Python.exe) In TS in…
GC123
  • 323
  • 5
  • 15
3
votes
3 answers

Powershell Script not able to send email via Outlook using Task Scheduler

I have a script which is fetching the latest event log from the remote machine. Send an event log details via outlook to specific group of people. The script is working fine on running through Powershell ISE but not sending email using task…
Vishal
  • 168
  • 1
  • 16
3
votes
2 answers

what is the difference between SQL Job and Windows Task Scheduler?

what is the difference between SQL Job and Windows Task Scheduler ? AS I can add SQL Queries in both sides ... what is the difference ??
Bishoy Ezzat
  • 159
  • 1
  • 3
  • 16
3
votes
1 answer

UnauthorizedException trying to use Windows TaskScheduler wrapper

I have the following code, which uses version 2.5.20 of David Hall's TaskScheduler Nuget package, that wraps the Windows Task Scheduler. I'm trying to get all tasks from a specific folder, but for this question, let's just look at this code: using…
Remi Despres-Smyth
  • 4,173
  • 3
  • 36
  • 46
3
votes
1 answer

VBA fails when Task Scheduler is set to "Run whether user logged on or not"

I have an Access VBA macro that generates a report, saves it in .pdf and then sends it by e-mail using CDO. Everything works fine if I run it manually or if I set it to be run on Task Scheduler with the security option "Run only when user is logged…
3
votes
2 answers

Calling a console application on timely basis using windows scheduled task . Is this a valid approach

This is about ASP.NET MVC background. When I need to call action methods on timely basis, I use such 3rd part tools as HangFire, which runs under the application pool. I want to create a sync job, which reads a .csv file generated by our ERP system…
user1404577
3
votes
1 answer

Task scheduler run task few milliseconds too early

I have a task with a trigger: At 0:00 every day - after triggered, repeat every 1 hours for a duration of 1 day. And inside my application I read the time this way: dateTimeUtcNow = DateTime.Now; And sometimes, very rarely, dateTimeUtcNow shows…
kosnkov
  • 5,609
  • 13
  • 66
  • 107
2
votes
0 answers

Windows task scheduler not running a batch file that calls a python selenium script

Desired Result Hi, I am using a machine running windows 10 to automate a scraper that is written in python and uses selenium (with chrome driver). I want this to run every day at 3:00 am. Best Attempt It seems the best way to do this is to write a…
2
votes
4 answers

Task Scheduler did not launch task "\abc" because instance "(GUID)" of the same task is already running

I am scratching my head for the last 2 days because of this issue. This error is intermittent on the production server as sometimes the task scheduler works and sometimes not. The same settings work in the development server. I also checked the…
KeentoLearn
  • 355
  • 1
  • 4
  • 12
2
votes
0 answers

Task Scheduler does not Run the Task

As the title says, I am trying to get the Task Scheduler to do as follows: Open an specific Excel file at an specific time every day and run the module 1 within said file. The workbook name is Daily Invoiced, and it contains a Macro, therefore the…
2
votes
1 answer

Python script not running with Windows task scheduler due to numpy

Running a basic python script with the windows task scheduler only works when I comment out the import statement for numpy and I can't figure out why. Details: I was previously trying to run a more complex script but in order to narrow down the…
TrillGates
  • 31
  • 2
2
votes
0 answers

Scheduled task with UI need delay to work properly

I'm trying to launch a application with a UI at login on windows, using the task scheduler. I've came across some inconsistencies with this, sometimes the UI will launch properly, other time it wouldn't. By adding a delay to the task, I can safely…
TmZn
  • 399
  • 5
  • 16
2
votes
0 answers

Python how to import custom function to another script (problem in Task Scheduler)

I have to import custom functions from script A to script B and execute them in script B. Now it looks like this: Script_B.py import os import sys from A import function_aa from A import function_ab from A import function_ac def main(): …
Anna
  • 914
  • 9
  • 25