Windows Server

Explore new task scheduler triggers in Windows Server 2008

The additional trigger settings available in Windows Server 2008 allow for more complex rules for creating scheduled tasks in the Windows environment. Learn more about these settings.

The task scheduler in Windows Server 2008 is quite different from what is in previous versions of Windows Server. The key elements to a scheduled task are triggers, actions, conditions, and settings.

The triggers and actions area in Windows Server 2008 has an increased number of settings that you can use for a scheduled task. Looking at the task triggers, the standard options are available for scheduled tasks; it's also possible to have the task triggered on a schedule, system boot, or user logon.

Some of the more important triggers include the following:

  • Event trigger: A scheduled task can be launched when a specified event occurs in the event log.
  • User session connection: This is similar to the logon trigger, but it is expanded to include remote desktop connections and settings for specific users.
  • User session disconnection: It can trigger a scheduled task when a user's session is disconnected but not logged off within a session.
  • Workstation locking: When the computer is sent to a locked state on the console, the scheduled task can be configured to run at that time.
The interface for selecting the triggers for a scheduled task is improved in Windows Server 2008, and it's context sensitive. Figure A shows the selection of user session connection for the task trigger. Figure A

Figure A

Once you select the triggers, you may want to configure additional rules to allow specific behavior for the task and the environment in which it will interact. For example, you can select a delay task option for most triggers. This will accommodate a back-end process recovery without interfering with a busy system during boot or other scenarios where a window of time may be needed before running the task after the triggered condition has been met. Figure B shows the Delay Task For a scheduled task. Figure B

Figure B

The additional trigger settings available in Windows Server 2008 allow for more complex rules for creating scheduled tasks in the Windows environment. Complex local scheduled task settings, however, do not scale well in terms of manageability.

Stay on top of the latest Windows Server 2008 tips and tricks with our free Windows Server newsletter, delivered each Wednesday. Automatically sign up today!


Rick Vanover is a software strategy specialist for Veeam Software, based in Columbus, Ohio. Rick has years of IT experience and focuses on virtualization, Windows-based server administration, and system hardware.


running Server 2008 i have a task that needs to run every 30 seconds any ideas?? used to be able to in 2003, whats the deal here, big better but not as fast?


Task scheduler says everything is running and completing but nothing happens. Does anyone have any ideas on what could be going on? It seems like some permissions issue. Everything is being done as the Administrator.


i have a problem whre the task shows everyting normal but actualy nothing hapends and the task dose not run. if you know a solution or you know an update to run pleas send it to


i m facing a problem with task scheduler , actually its not working according to its time duration period


I have the same problem. I specified my task to run every hour for 19 hours Mon-Fri. It does not stop running and runs even on weekends. I have an open case with MS and they're trying to help but they have no clue.

Editor's Picks