Questions tagged [windows-task-scheduler]
Task Scheduler is a component of Microsoft Windows that provides the ability to schedule the launch of programs or scripts at predefined times or after specified time intervals.
555
questions
4
votes
2
answers
12k
views
CMD option to exit OneDrive
I am running OneDrive sync by creating scheduled tasks in Windows Task Scheduler. I have two tasks, one to start OneDrive's desktop app and the other kills it.
I am currently using taskkill to get ...
4
votes
2
answers
9k
views
Is there a way to see how much time it took for a task to finish running in Task Scheduler (Windows)?
I have a task that starts a .bat file with some operation with files on a file system and I am interested in evaluating the time it takes for a task to get the job done.
I can see date/time when the ...
4
votes
1
answer
804
views
High-privilege autorun programs (tasks) stopping on their own
There’s a program that I want to be automatically run on startup, but because it requires elevated privileges, UAC interferes with it auto-running.
I used the Task Scheduler method of working around ...
4
votes
2
answers
6k
views
Acting on exit code in Windows Task Scheduler
I have the following .bat script:
set /a num=%random% %%2
exit /b %num%
I would like to execute that batch script in Windows Task Scheduler in such a way that when the exit code is 1 Task Scheduler ...
4
votes
3
answers
24k
views
Windows scheduler that runs every x minutes daily on the command line
Is there a way to schedule a task (.bat) through the command line that runs every five minutes daily?
I also want it to run even if the user isn't logged on. What is the exact command line syntax?
4
votes
1
answer
8k
views
How to wait for networking before runinng a task at startup on Windows 7
Is it possible to have a task wait for networking to be ready before running? The only networking related option that I see is "Start only if the following network connection is available", which ...
4
votes
2
answers
15k
views
Is it possible to use the AT command to run a command every 5 minutes?
The Windows AT command has an "every" parameter, which can take days of the week, and a "time" parameter specifying the time of day, however I'd like to run a command every 5 minutes. Any way to do ...
4
votes
1
answer
2k
views
Where are scheduled tasks stored in an offline Windows 10 partition/hard drive?
I found this similar question: Where are scheduled tasks stored in an offline windows 10 image?, which however is about finding the tasks in an image file of a Windows installation.
I am looking for a ...
4
votes
2
answers
10k
views
Task Scheduler - Task Keeps Becoming Disabled
I have a task that I entered into Windows Task Scheduler (I have Windows 8.1) set to run automatically on system log-on and to repeat every 5 minutes indefinitely; however, after every time it runs, ...
4
votes
1
answer
900
views
Task Schedule on resume from idle?
With schtasks.exe (Windows Task Scheduler for command prompt), you can make a task that is triggered on idle, which I use. However, is it possible to make a trigger on resume from idle? I.E., when the ...
4
votes
4
answers
19k
views
How to close a browser window open by a scheduled task in Windows
I have some scheduled tasks that opens IE Windows on the background to execute periodic routines.
The problem is, as the day goes on, several IE instances are left executing on the background and ...
4
votes
1
answer
3k
views
Automatically running a windows bat file after returning from idle
First off, the background on what I want to do:
I am running rosetta@home on my computers at home and work, and I often find minirosetta tasks stuck in memory when I resume using the computer after a ...
4
votes
1
answer
2k
views
SCHTASKS - Suppress warning, answer N (NOT /F)
If I have a batch file creating a scheduled task, and it gets run multiple times, I'd like to have it just ignore subsequent attempts to create the task. I'm aware of the /F parameter that forces the ...
4
votes
3
answers
3k
views
Can't wake up Windows 10 machine with task scheduler
I have successfully set up sleep and wake up tasks for Windows 7 that have functioned correctly for more than a month. After a upgrade to Windows 10 the wake up task has ceased working.
I have tried ...
4
votes
1
answer
2k
views
Powershell scripts works manually but not as a scheduled task
I have a powershell script that converts .doc to .pdf files. When I execute it manually, it works perfectly on my windows server 2012.
When I execute it as a scheduled task, opens an instance of Word,...