Questions tagged [task-scheduler]

Task scheduler is a component in Windows that, like the unix cron daemon, allows scripts to be run at defined times.

145 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
4k views

Tell Task Scheduler how to end a task

I start a program A using Windows Task Scheduler. That program starts instances of another program B. The task is started on Windows startup and runs even if no user is logged on. When I terminate ...
telandor's user avatar
  • 173
4 votes
0 answers
3k views

Scheduled task disappeared from the Task Library the next day

We have a Win7 Pro 32-bit system where we want to schedule a daily backup to run at 1pm. The task was created yesterday morning. It ran fine that afternoon. It didn't run today. When the Task ...
RBerteig's user avatar
  • 3,305
3 votes
1 answer
310 views

Task scheduler runs at delayed time during sleep

EDIT 02/03/2023 The following is what I get from running powercfg -energy as suggested by one of the comments. I have a task that is supposed to run at 2 am every day. However I face 2 issues: It ...
tangolin's user avatar
3 votes
0 answers
937 views

Where are scheduled tasks stored in an offline windows 10 image?

Where are scheduled tasks stored in an offline Windows 10 image, as within an install.wim, I noticed there are no scheduled tasks within an index's: .\Windows\Tasks: .\Windows\System32\Tasks: HKLM\...
PolisP's user avatar
  • 65
3 votes
0 answers
3k views

Task scheduler does not start (Windows 10)

My service Task Scheduler is not running. In Services it is stopped. When trying to start it, it stops immediately. In the eventlog has no entries about this service, not about it starting, stopping ...
Martin Mulder's user avatar
3 votes
0 answers
3k views

Task Scheduler intermittent failure (Error Value: 2147943767)

In Windows 10, I have a Task in the Windows Task Scheduler that triggers at a certain time and also can run on demand. The Task comprises four Actions, each calling the same program with very similar ...
palswim's user avatar
  • 3,521
3 votes
0 answers
847 views

trying to disable windows task wake computer, get task scheduler service not available

This is a windows 8.1 pc upgraded from 8.0 I've been trying to stop my PC from waking up on it's own. Turns out there are some windows update tasks that are set to wake the pc to run the task (...
merk's user avatar
  • 283
3 votes
2 answers
4k views

Missed Windows Task runs when the computer starts

I have a task to hibernate my computer at 8pm. If I hibernate the computer earlier and turn it on the next morning, the task runs and hibernates the computer (which I don't wont to happen). I HAVE NOT ...
Alex Angelico's user avatar
2 votes
0 answers
34 views

How to run scheduled task only if none of a group of programs are running?

I have been using Task Scheduler to launch and terminate compiled AutoHotKey scripts depending on whether other apps are launched or terminated. I used information on custom event filters from this ...
Audio.Anchorite's user avatar
2 votes
0 answers
542 views

Schedule a task to run before computer goes to hibernate

I have a command script and I want to run it before the computer goes to hibernate. When I click on the hibernate option, then, before going to hibernate, this task should work. I have tried creating ...
User1991's user avatar
2 votes
1 answer
548 views

Task scheduler On Idle task not triggered Windows 7

I've used Task scheduler and created a new task, added a trigger, set it to event: on Idle and created the task. In the conditionstab, specified the task waits 1min to become idle (instead of 10min ...
Tak's user avatar
  • 561
2 votes
0 answers
343 views

How to run a unity-built after Computer is turned on

Goal User turns on Computer and Unity-built runs automatically. Upon system start and thereafter Unity start, User only sees the maximized gameview of unity. No windows Taskbar, steamVR window, nor ...
Josh's user avatar
  • 21
2 votes
1 answer
309 views

Stop monitor from waking up unnecessarily when running scheduled task .bat

I run Windows 10. My computer runs 24/7. In my power settings, the monitor is set to go to sleep after after a period of inactivity. This only applies to the monitor, and not the computer. The ...
Chris Melville's user avatar
2 votes
1 answer
2k views

On "Power-Troubleshooter" event in Task Scheduler not triggering

I am attempting to run an event via Task Scheduler in order to restart my trackpad driver (code to do so below) every time my system wakes up, as a troubleshooting measure. However, in Task Scheduler, ...
Polymer's user avatar
  • 143
2 votes
0 answers
455 views

ClickOnce App in Windows 10 using Task Scheduler not working

I have Click-Once app (setup.exe) which I run using Task Scheduler. But on Windows 10 when I run it, its just came and disappear without showing any error. Nothing in Event Viewer. But when I run it ...
Imran Qadir Baksh - Baloch's user avatar
2 votes
0 answers
726 views

Task Scheduler Windows 10 : when editing a task, user account is set to Medium Mandatory Level

When I edit and then save a task in Task Scheduler, the "user account' is changed.The user account which was my username is changed to "Medium Mandatory Level". This prevents the task from running ...
MagTun's user avatar
  • 1,498
2 votes
0 answers
2k views

Dynamic Arguments for Task Scheduler

I am trying to schedule a task that runs a command with dynamic arguments. So for example, instead of the word "Arguments" at the end of the command below, I need to pass the following arguments: ...
Ramin Melikov's user avatar
2 votes
0 answers
191 views

Windows 10 'task scheduler ' does not run a functioning program in Windows XP compatibility mode

Windows 10 task scheduler does not run a functioning program that is set for compatibility mode for Windows XP. For example, when the program is set to compatibility mode for Windows XP and the ...
user690980's user avatar
2 votes
0 answers
2k views

Task Scheduler will not start

When I open it from Computer Management However the service appears to be running C:\WINDOWS\system32>sc query Schedule SERVICE_NAME: Schedule TYPE : 20 ...
DankMemes's user avatar
  • 507
2 votes
0 answers
622 views

Task Scheduler ignores next run time

So I have a very weird problem. In Task Scheduler, I've setup my application to run every 15th minute. I've made sure to have all the correct settings and it runs under my credentials (entered a ...
Lars Holdgaard's user avatar
2 votes
2 answers
2k views

Is it possible to modify (or create) an scheduled task in Windows command-line to disable "Stop task if it runs longer than"?

I wanna change this option via command line using schtasks (or whatever), but the docs seems not to have an option for it: Stop task if it runs longer than only the GUI seems to allow it: I have ...
Sopalajo de Arrierez's user avatar
2 votes
1 answer
415 views

Launching a scheduled task on a windows 7 VM on startup

I have a batch file I would like to run every time my Windows 7 VM restarts. I have created the batch file (and it functions as expected) as C:\example.bat. I have also setup a task in Task Scheduler ...
TheDog's user avatar
  • 133
2 votes
0 answers
5k views

Why Task Scheduler fails to open a GUI application window when /sc onstart parameter specified?

This works: schtasks /create /tn calc /tr c:\Windows\system32\calc.exe /sc minute After running this and a computer restart: schtasks /create /tn calc /tr c:\Windows\system32\calc.exe /sc onstart ...
colemik's user avatar
  • 1,594
2 votes
0 answers
2k views

Why is Windows Task Scheduler starting my tasks early?

I made a task in Windows that's supposed to run 10 minutes after the hour every hour. However, when I look at the task in the task scheduler, it will say it ran at XX:09:59 instead of XX:10:00. Here ...
Di Zou's user avatar
  • 121
2 votes
2 answers
553 views

Running batch file from Task Scheduler in Win7 using QODBC and Quickbooks does not work

I have a batch file (.BAT) set up on a Windows 7 PC running QB Premier 2012 that uses a SQL client to connect to a Quickbooks company file through QODBC (latest version) that works fine when run ad ...
bchesley's user avatar
2 votes
0 answers
533 views

Windows scheduled task not running

I have several SQL server backups on a server. I have created a batch file which then copies these to network drives. These are mapped to the server, and it works properly. Now, I've created a ...
Ravi Kumar Singh's user avatar
2 votes
0 answers
623 views

How do I schedule a task to run when a new file is detected in a folder?

I'd like to use windows task scheduler to execute a synctoy synchronization. Basically C:\Program Files\SyncToy 2.1\SyncToyCmd.exe -R "Contacts Sync" I'd like the task only to run when a new file ...
user53639's user avatar
  • 246
1 vote
0 answers
104 views

Invoke S0 Sleep using Task Scheduler for all users

I'm trying to get a Windows 10 Optiplex 7000 to go to sleep at 10pm every day. I installed nircmd and created a task in task scheduler to run a .bat file with the following command: nircmd.exe monitor ...
lucdar's user avatar
  • 11
1 vote
1 answer
276 views

using the same string of command in windows task scheduler does not work

So when i use the following command in a CMD window warp-cli disconnect && taskkill -im "Cloudflare WARP.exe" && cd "C:\Program Files\Cloudflare\Cloudflare WARP" &...
AwesomeVk47's user avatar
1 vote
0 answers
329 views

Task-scheduler: cannot view/edit/run the tasks CREATED BY OTHER WINDOWS USER

We created tasks using one windows user and we configured it in such a way that service account will run the task but not the windows user. Now the issue is when I login with other windows user I am ...
user2515056's user avatar
1 vote
1 answer
1k views

How to make Task Scheduler open a Document with a specific program?

I have Windows 10 Task Scheduler opening a specific .rtf (also tried changing it to .docx) file on workstation unlock. At present it opens automatically with Wordpad, but I want it to open using ...
dannyzee4's user avatar
1 vote
0 answers
162 views

How to add trigger for Task Scheduler on weekdays on a specific time, except for a certain days

So I have this .bat file that I need to run on weekdays at 1 pm. Adding it is easy, the problem is. Every 1st to 3rd day of the month(ex. January 1 to 3) the 1 pm run must not run but instead, it ...
SanJid's user avatar
  • 29
1 vote
1 answer
3k views

How to execute an interactive scheduled task when the user is not logged in on a Windows Server 2016 VM

So I'm trying to execute a powershell program that will open the browser with some website and take screenshot of that webpage and store it somewhere. Its working when I'm logged into the VM. But as ...
Omkar's user avatar
  • 11
1 vote
0 answers
95 views

Understanding kernel process scheduling

I am learning kernel/OS and having a hard time understanding how context switch/scheduling works at lower level. For example, I have a program simply loops: while (1) {} If I run above code on a ...
kal's user avatar
  • 11
1 vote
0 answers
378 views

Windows 10 Task Scheduler does not run after manual trigger

I have a job which should be run several times a day, I usually set it up to run every 2 hours, 3 hours, or 4 hours. Sometimes I revise the code and manually run it to test. The test run works ...
user67275's user avatar
  • 2,072
1 vote
1 answer
1k views

Trigger an event based only on user inactivity

Windows 10 Task Scheduler can trigger an event after certain time of idle status, where the 'idle' is defined by user keyboard mouse input and other conditions such as CPU usage. Can I define a ...
user67275's user avatar
  • 2,072
1 vote
1 answer
605 views

Watch for process start, then execute command

Short of hacking together a service to monitor process launches, is there any other way I can go about attaching code, or executing a command/process to an event handler for another specific process ...
paddywan's user avatar
  • 342
1 vote
0 answers
35 views

Start shutdown after one hour of playing - Trigger problems

I am playing a game which is very addicting. I would rather limit the amount of time spent on that game to one hour per day, therefore, I need my (Windows 10) pc to turn off after one hour. I am using ...
Emanuele Polonia's user avatar
1 vote
0 answers
545 views

xcopy in task scheduler ends with error 4

I created a task in task scheduler to copy a specific file to a server each midnight. When I run the command normally in command line it works fine, but the task always ends with exit code 4 and the ...
Petr Synek's user avatar
1 vote
0 answers
2k views

Task Scheduler requires account when enabling Run whether user is logged on or not

So basically when I try to make new task in my Task Scheduler in windows 10 home, and then enabling Run whether user is logged on or not it requires an account, Then I can see a list of some accounts,...
Dorki's user avatar
  • 121
1 vote
2 answers
8k views

Windows 10: Using Task Scheduler to run a VBScript file?

I am migrating over from Windows 7 to Windows 10. In 7, I ran a VBS file through Task Scheduler that shut down Microsoft Outlook in order to prepare the .pst file for nightly backup. I want to do the ...
Chuck's user avatar
  • 45
1 vote
0 answers
617 views

Task Scheduler does not run bat file at the bat file's location

I am running a server and I'm intending to run a .bat file on startup. However, when it runs, it cannot read the files from its original location. Heres a better explanation: The .bat file runs "...
YJJcoolcool's user avatar
1 vote
0 answers
27 views

Unable to start Task Scheduler

There are some stuff I'm trying to do but can't because Task scheduler isn't running and when I try to start Task Scheduler an error message appears.
user1074568's user avatar
1 vote
0 answers
2k views

Cannot run batch in Task Scheduler when security optons set to "Run whether user logged on or not"

@echo off rem Note: This file is an alternative launcher for DocFetcher. How to use it: rem 1) Modify this file as needed. rem 2) Move this file one level up into the DocFetcher folder. rem 3) ...
Paul's user avatar
  • 11
1 vote
0 answers
1k views

Why doesn't Outlook properly open when scheduled to start using Task Scheduler?

I have scheduled a task in Task Scheduler to start Outlook at a certain time in the very early morning hours so it can execute a macro on startup. My settings in Task Scheduler are as follows. In ...
AHR's user avatar
  • 11
1 vote
1 answer
992 views

How to determine what file is scheduled to run with SchTasks.exe in batch?

For a given task I need to determine what file it is trying to run with a batch code. Currently I use schtasks /query /TN ITCMD-CHAT-NOTIF | find "Ready" to determine if the task is active, but I see ...
Mark Deven's user avatar
  • 1,618
1 vote
0 answers
319 views

Windows 7: Task Scheduler/Engine reduces the Working Set/memory of applications, is there anyway to stop this?

I've been trying to auto-start some Auto-HotKey scripts using the Task Scheduler since it allows the scripts to run with admin privileges without a UAC prompt. Usually, the scripts fail after several ...
RedLetter's user avatar
1 vote
0 answers
1k views

Windows task scheduler does not kill child process

My task scheduler task has got one action: Start application--> D:\test.bat The batch test.bat spawns a child process (for example): notepad.exe When I manually start this task and end this task, it ...
Peter's user avatar
  • 1,055
1 vote
0 answers
4k views

Scheduled task running on demand but not by itself with stored Windows credentials

I have a scheduled task that is supposed to run an application located in a server. The access to the server is only allowed to a specific user, so in order to be able to execute such application, or ...
user1676874's user avatar
1 vote
0 answers
551 views

LockWorkStation not working in Powershell through Task Scheduler

I'm writing a script which receive commands from Amazon Echo bridged by IFTTT. The process goes as follows: I ask Alexa to trigger "X" IFTTT sends that to Dropbox Applet Dropbox writes a text file ...
Explisam's user avatar
  • 111