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.

The Task Scheduler service works by managing tasks. A task refers to the action(s) taken in response to trigger(s). A task is defined by associating a set of actions, which can include launching an application or taking some custom-defined action, to a set of triggers, which can either be time-based or event-based.

563 questions
131
votes
10 answers

How to prevent Windows 10 waking from sleep when traveling in bag?

I am not turning laptop off, but rather putting into hibernation, as it starts much faster and I can continue working without starting all apps again. It was working long time from Windows XP to Windows 8.1. However now (after upgrade to Windows…
TN.
  • 2,090
43
votes
2 answers

How can I run a scheduled task as SYSTEM

I can't add SYSTEM account in task scheduler. When I try to add it becomes MYDOMAIN\SYSTEM and I get invalid user error. Can I use SYSTEM account to run a scheduled task?
31
votes
6 answers

Starting scheduled task by detecting connection of USB device

I know it has been discussed that it is not possible to start an application from an usb drive upon connection due to limitations of autorun (or autoplay??) in Win 7. But it is possible to create a scheduled task having an event type trigger. Surely…
28
votes
5 answers

Automatically close program at a scheduled time each day

Is there a way to automagically determine if a program is running and close it at scheduled time, say 3 am every day? Maybe use task scheduler to close said application? if this is possible any direction would be appreciated. Vista or Win7
user8407
27
votes
3 answers

Should a scheduled task remain in the "Running" state?

I'm new to using the task scheduler and I'm using it to run a batch file provided online when the computer boots. I r-clicked it and told it to run. It did and all is fine, but the Status of the task is still "Running." I just want to make sure…
NSouth
  • 393
26
votes
1 answer

In Task Scheduler what is the difference between "at logon" and "at startup"?

They both sound synonymous. Do programs "at startup" run before the programs "at logon"? Or do they still run if you don't logon?
20
votes
3 answers

Will Windows Scheduled Tasks execute if the computer was off at the scheduled time?

If I schedule a task using windows task scheduler for, say, 2 minutes from now, and for some reason the computer is shut down 1 minute from now, and turned on 3 minutes from now, will the task that was scheduled still run? If not, what can I do to…
20
votes
8 answers

Can't modify task "Reboot" in win10 home

I have windows 10 home, and I'm logged in as my user, which has administrator privilege. I go in the "Task Scheduler", under "Task Scheduler Library > Microsoft > Windows > UpdateOrchestrator", there's a task named "Reboot". I right-click for the…
msb
  • 1,535
17
votes
2 answers

What is the difference between "stop the task if it runs longer than" inside Trigger and under Settings tab?

When I schedule a task in Windows Task Scheduler, I can set "stop the task if it runs longer than" inside task trigger or inside Settings tab. If I set it inside the trigger it does not automatically populate into Settings, so I think it's…
alpav
  • 477
16
votes
2 answers

How to import a scheduled task automatically from an XML file?

I have created a scheduled task in Windows 7. The task is running perfectly well on my computer. I have also exported the task to an XML file and want to create the same task on another computer automatically. How can I import the XML file…
krumiya
  • 161
16
votes
4 answers

Windows 7 Task Scheduler is giving me an error saying "The specified account name is not valid"?

I am running Windows 7 on a Dell Precision workstation. I started having this issue right after changing my PC name. I get the error message when in the Task Scheduler Library folder and right-click a task to Disable it. Also, when I click Create…
14
votes
3 answers

How do I prevent the Windows 10 "Maintenance Activator" from waking my PC randomly (even after disabling wake timers)?

Windows 10 wakes randomly after putting it to sleep. I have tried all proposed solutions from this old question: I have added a disable flag for the automatic maintenance in the registry, disabled the Media Center update scheduled task, disabled…
13
votes
3 answers

Creating Task With a Batch File - run task as soon as possible if missed

When creating a task with a batch file or command line, how do I specify the following option? Run task as soon as possible after a scheduled start is missed I know that this option exists via the GUI, but I need to specify it via command line.
13
votes
4 answers

How to schedule a Windows task on wake?

I created a task in Task Scheduler to run at system startup, and it works great. However, I want to change it to run every time Windows wakes from sleep and I cannot figure it out. The relevant options available to me are at startup (currently), at…
12
votes
1 answer

Run a scheduled task after a Windows service is started

I want to run a scheduled task every time after a given service is started. I have looked for a way to set a trigger on a service start, so that the service in question may be started automatically at system start or manual restarted on run…
1
2 3
37 38