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

Schedule a task after system get restarted automatically in Windows task scheduler

I want to schedule a simple task to send a mail in console application. I want to send an email after system restarted automatically or manually. I am using windows task scheduler with "on Startup" event. but its not started when system restart. Is…
Saravanan
  • 21
  • 1
  • 1
  • 5
0
votes
0 answers

TaskScheduler.FromCurrentSynchronizationContext() crashing my application

I have a console application and my first line is in the Main method is: TaskScheduler.FromCurrentSynchronizationContext(); but here my application crashes with the System.InvalidOperationException : Additional information: The current…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
0
votes
2 answers

Task Scheduler Batch File with Configuration

I'm currently using APEX Data loader to download Raw files from Salesforce. Using the command line I can download the data that I need by simply typing the command. Now I need to schedule the task so I don't need to do it everyday. I run the…
-1
votes
1 answer

Got an ERROR: Invalid argument/option - '>' when I was trying to export information in task scheduler to a csv file

I wanna export all information in Windows Task Scheduler using Python, so I wrote the code as follows: Import subprocess subprocess.call(r'schtasks.exe / query / FO CSV > D:\tasks.csv /V') Then I got ERROR: Invalid argument/option - '>' But when I…
-1
votes
1 answer

run batch file at startup on windows start

Every morning when i restart Azure VM then i want to run batch file automatically. This batch file is starting selenium grid. So what i did is added Task scheduler and created trigger to start script at Startup. Then i tried to run the task manually…
James
  • 1,827
  • 5
  • 39
  • 69
-1
votes
1 answer

TaskScheduler vs Timer for scheduling tasks in C#: When to use?

Recently I am studying and trying C# and I have some confusing points to clear out regarding tasks scheduling in C#. According to what I learnt, I have understood that task scheduling in C# can be done by using Timer and TaskScheduler. I have…
Gaya3
  • 155
  • 2
  • 16
-1
votes
1 answer

How do I schedule this .ps1 file to run daily?

I have a .ps1 file that works when I run it in PowerShell (it registers a filesystemwatcher to watch for changes in an excel file), but I can't get it to work when I schedule it in task scheduler. Is this because my inputs are off or do I need to…
Jeff T.
  • 11
  • 6
-1
votes
1 answer

Python script not properly executing using Windows Task Scheduler

Created a Python script that gets data from SQL Server, then writes the data to an Excel spreadsheet using Pandas and xlsxwriter. Then, the same script uses the win32 client library to send the newly created file via email from my Outlook address to…
erik7970
  • 693
  • 1
  • 8
  • 21
-1
votes
1 answer

Get taskscheduler history - level using PowerShell

How can I get the taskscheduler's level in history using PowerShell?
-1
votes
1 answer

Running a SQL Script through windows service c#

I am trying to schedule a task in my windows service, to run the script every week. I don't want to do through sql jobs. Any idea?
Keys
  • 55
  • 1
  • 8
-1
votes
2 answers

How to configure selenium webdriver script and powershell script to run once in a week

I have one selenium webdriver script and another powershell script. I want to configure both scripts to run on each thursday at 6 pm. How to achieve that.
Mike
  • 1
  • 2
-1
votes
1 answer

Spring Task Scheduler consecutive tasks

I am new to using the Spring Task Scheduler for executing tasks, so this may be a basic question. I have a list of items that I would like to process within a class that implements Runnable. Here is my task class: public class ProcessTask
user172092
  • 105
  • 1
  • 10
-1
votes
1 answer

Troubles with wget called by script started by Task Scheduler

I need to load a https file. I use wget with option --no-check-certificate. It runs perfectly if started by the ISE-debugger. It even runs perfectly if I started in the cmd-console: ./myScript.ps1. But as soon as I set the Task Scheduler to start my…
gooly
  • 1,241
  • 7
  • 20
  • 38
-1
votes
2 answers

Run powershell script whenever a server reboot is initiated and show the script progress in cmd

I need to run a powershell script whenever the server is rebooted/shutdown (whether graceful or disgraceful reboot). The script will stop 4 application services at an interval of 1 minute and then finally reboots the system.(This is a business…
Brite Roy
  • 425
  • 3
  • 9
  • 28
-2
votes
1 answer

Powershell script does not run via Task Scheduler

PowerShell script runs fine manually, but doesn't run in Task scheduler. The script: $env:CLIENTNAME | Out-File C:\Users\tst5clj\Desktop\folder\log.txt -Append I tried another command($env:COMPUTERNAME) and works fine both manually and via…
1 2 3
32
33