The Task Scheduler service works by managing ''Tasks''; ''Task'' refers to the action (or actions) 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. In addition, a task also can contain metadata that defines how the actions will be executed, such as the security context the task will run in. Tasks are serialized to <code>.job</code> files and are stored in the [[Special folders|special folder]] titledtotitled ''Task Folder'', organized in subdirectories. Programmatically, the task folder is accessed using the <code>ITaskFolder</code> interface or the <code>TaskFolder</code> scripting object and individual tasks using the <code>IRegisteredTask</code> interface or <code>RegisteredTask</code> object.<ref>{{cite web