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
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 ...
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 ...
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 ...
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\...
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 ...
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 ...
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 (...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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 ...
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 ...
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:
...
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 ...
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 ...
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 ...
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 ...
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 ...
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" &...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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,...
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 ...
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 "...
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.
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) ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...