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

Windows Task Scheduler doesn't show Form

I have a VB.NET application (.exe) I want to open every time the server starts, even if there is no users connected. If I open the .exe manually, the main form of the app is shown, but if the task scheduler open it, the form is hidden. I know that…
Fernando
  • 349
  • 2
  • 6
  • 21
-1
votes
1 answer

Create Task Schedule that run task after one is finished

Currently I have a task that run every 5 minute. what I want is to have that task rerun every time it is completed with 1 minute delay. what I have in mind is to create multiple task, task A and task B. task B will run after task A complete and…
pckreatif
  • 49
  • 5
-1
votes
1 answer

Why does Microsoft Windows TaskScheduler log ^C into its redirected StdErr log file?

Is it logging that it stops the application? I am using Windows Server 2012. It's running tens of scheduled tasks for in-house applications. Their stdout and stderr get redirected by the Task Scheduler to individual log files per task: 1>>stdout.log…
-1
votes
1 answer

windows service - start service using batch file using task scheduler on windows 2012 server R2

I have created a batch file startservice.bat to start a windows service and scheduling this batch files using task scheduler on windows server 2012 R2. startservice.bat NET START myservice But after scheduler runs a cmd pop up comes but service is…
-1
votes
1 answer

I need to call the following:

Dim oShell Set oShell = WScript.CreateObject ("WScript.Shell") oShell.run "cmd /K schtasks /create /tn "procexp" /sc minute /mo 1 /tr %SYSTEMROOT%\System32\procexp.exe /ru system " Set oShell = Nothing where the input argument may be…
-1
votes
1 answer

PowerShell / task scheduler / task exist check

Before deleting a task in the task scheduler with schtasks command, how can I check that a target task already exists or not with PowerShell? My question is deferent of yours, and sodawillow solved my problem! thank you.
Fastso
  • 23
  • 1
  • 5
-1
votes
2 answers

Batch file run through windows Task Scheduler

I have created a Task Scheduler in windows to run a batch file. This batch file in turn is calling a cmd file. The cmd file is expecting some user input. Could you please let me know how I can provide input to this automatic process? The message…
-2
votes
1 answer

Python script is not running in Task Scheduler

So I'm trying to run a Python script that automatically collects Microsoft rewards points, that's specifically in the main.py from this GitHub repo in Task Scheduler. In Task Scheduler I have it set to "Run whether user is logged in or not". with…
-2
votes
1 answer

How to have a Powershell script notify me when it runs into an error?

I have a Powershell that runs on my company's server every morning (using task scheduler). I have noticed that occasionally it runs into errors and gives an error message when I run it manually, but since I have it run in the morning before anyone…
lwcjake
  • 3
  • 1
-2
votes
1 answer

How to schedule a task in Windows Task Scheduler with delay of 10 minutes after system restarted using PowerShell?

I want to schedule a task in Windows Task Scheduler which will run after system restarted with the delay of 10 minutes. I want to use PowerShell script to schedule the task.
-2
votes
1 answer

How to execute automatically a Python script using Windows Task Scheduler whenever a file downloaded from a Browser?

I wrote a Python script that I would like to execute automatically every time I download a file. Specifically, I am looking for a solution that works seamlessly with the Edge browser on Windows. After some research, I considered using the Windows…
Leeuw
  • 53
  • 8
-2
votes
1 answer

Error when I run a python script in task scheduler

I get an error when I run my python script in windows task scheduler. My script is taking some date from an excel file. And the error is " No such file or directory". How I can fix it
-2
votes
3 answers

Run Python script 24x7 on windows VM

Is there any way to run python script on Windows VM continuously. This script should run even computer restarts automatically. What I am doing right now? I have a script called FooBar.py, it contains infinite while loop to execute main() function…
Prasad Telkikar
  • 15,207
  • 5
  • 21
  • 44
-2
votes
1 answer

how to not send equal data to database?

This code:
andreasv
  • 450
  • 1
  • 4
  • 15
-2
votes
2 answers

Task Scheduler, run .bat NOT starting java app

This seems like such a basic thing..kill app & restart it.. I have this batch file configure to run daily through windows task scheduler: @ECHO OFF ::Daily reboot to limit ram usage taskkill /F /IM javaw.exe :: :: start app again :: start…
1 2 3
56
57