词条 | Windows Task Scheduler |
释义 |
}}{{Infobox software | screenshot = Windows 7 Task Scheduler.png | screenshot_size = 300px | caption = Management console for Task Scheduler 2.0 in Windows 7 | developer = Microsoft | other_names = taskschd.msc | replaces = System Agent | service_name = Task Scheduler ( Schedule )| operating system = Microsoft Windows | genre = Windows service }} Task Scheduler is a component of Microsoft Windows that provides the ability to schedule the launch of programs or scripts at pre-defined times or after specified time intervals: job scheduling (task scheduling). It was first introduced in the Microsoft Plus! for Windows 95 as System Agent[1] but was renamed to Task Scheduler in Internet Explorer 4.0 and Windows 98. The Windows Event Log service must be running before the Task Scheduler starts up. This service should not be confused with the scheduler that allocates CPU resources to processes already in memory. VersionsTask Scheduler 1.0Task Scheduler 1.0 is included with Windows NT 4.0 (with Internet Explorer 4.0 or later), Windows 2000, Windows XP and Windows Server 2003.[2] It runs as a Windows Service, and the task definitions and schedules are stored in binary In addition to the graphical user interface for Task Scheduler in Control Panel, Windows provides two command-line tools for managing scheduled task: Task Scheduler 2.0Task Scheduler 2.0 was introduced with Windows Vista and included in Windows Server 2008 as well.[2] The redesigned Task Scheduler user interface is now based on Management Console. In addition to running tasks on scheduled times or specified intervals, Task Scheduler 2.0 also supports calendar and event-based triggers, such as starting a task when a particular event is logged to the event log, or when a combination of events has occurred. Also, several tasks that are triggered by the same event can be configured to run either simultaneously or in a pre-determined chained sequence of a series of actions, instead of having to create multiple scheduled tasks. Tasks can also be configured to run based on system status such as being idle for a pre-configured amount of time, on startup, logoff, or only during or for a specified time. XPath expressions can be used to filter events from the Windows Event Log. Tasks can also be delayed for a specified time after the triggering event has occurred, or repeat until some other event occurs. Actions that need to be done if a task fails can also be configured. The actions that can be taken in response to triggers, both event-based as well as time-based, not only include launching applications but also take a number of custom actions. Task Scheduler includes a number of actions built-in, spanning a number of applications; including send an e-mail, show a message box, or fire a COM handler when it is triggered. Custom actions can also be specified using the Task Scheduler API. Task Scheduler keeps a history log of all execution details of all the tasks.[10] Windows Vista uses Task Scheduler 2.0 to run various system-level tasks;[11] consequently, the Task Scheduler service can no longer be disabled (except with a simple registry tweak). Task Scheduler 2.0 exposes an API to allow computer programs and scripts create tasks.[12] It consists of 42 COM interfaces.[13] The Windows API does not, however, include a managed wrapper for Task Scheduler though an open source implementation exists.{{citation needed|date=May 2014}} The job files for Task Scheduler 2.0 are XML-based, and are human-readable, conforming to the Task Scheduler Schema.[12] Although possible, Microsoft advises not to create the job files by hand, and instead, use the Task Scheduler API.{{Citation needed|date=May 2014}} Other features
TasksThe 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 Column 'Last Result'The Last Result column displays a completion code. The common codes for scheduled tasks are:[15][16]
BugsOn Windows 2000 and Windows XP, tasks assigned to run with SYSTEM privileges do not function when the computer is prepared for disk imaging with On Windows Vista or Windows Server 2008, where Service Pack 2 is not installed, the next execution time displayed in Task Scheduler may be wrong.[18] On Windows Vista, 7, 2008, and 2008 R2: The MMC Component says that you are running "Task Scheduler 1.0" when in fact you are running 2.0, this is a trivial bug so it wasn't noticed, and is likely due to the re-write of the task scheduler. The version has been corrected to 2.0 in Windows 8 and in 2012. See also
References1. ^{{cite web| url = http://www.technofileonline.com/texts/tec032998.html| title = Windows 98: Stable and fast, as well as 'new and improved'| author = Al Fasoltd| publisher = The Syracuse Newspapers| date = March 29, 1998| accessdate = 2007-10-06}} 2. ^1 {{cite web | url = http://msdn2.microsoft.com/en-us/library/aa446802.aspx| title = About the Task Scheduler| accessdate = 2007-10-06| work = MSDN| publisher = Microsoft}} 3. ^{{cite web|url=http://support.microsoft.com/kb/272962|title=How to Enable the Scheduled Tasks Icon in Windows Me|date=January 29, 2007|work=Support|publisher=Microsoft|deadurl=yes|archiveurl=https://web.archive.org/web/20080130185556/http://support.microsoft.com/kb/272962|archivedate=January 30, 2008}} 4. ^{{Cite web|url = https://msdn.microsoft.com/en-us/library/windows/desktop/aa383581%28v=vs.85%29.aspx|title = Task Scheduler 1.0 Interfaces|date = |accessdate = 30 May 2014|website = MSDN|publisher = Microsoft|last = |first = }} 5. ^{{cite web|url=http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=601d75e2-f907-4e51-ad88-adb818df1d27|title=Task Scheduler Using VBScript|work=Download Center|publisher=Microsoft|date=March 22, 2004|deadurl=yes|archiveurl=https://web.archive.org/web/20060504033359/http://www.microsoft.com/downloads/details.aspx?FamilyID=601d75e2-f907-4e51-ad88-adb818df1d27&displaylang=en|archivedate=May 4, 2006}} 6. ^{{cite web|title=Schtasks|url=https://technet.microsoft.com/en-us/library/bb490996.aspx|work=Microsoft TechNet|publisher=Microsoft|accessdate=18 May 2014}} 7. ^{{cite web|title=At|url=https://technet.microsoft.com/en-us/library/bb490866.aspx|work=Microsoft TechNet|publisher=Microsoft|accessdate=18 May 2014}} 8. ^{{Cite web|url = http://support.microsoft.com/kb/313565|title = How To Use the AT Command to Schedule Tasks|date = 30 October 2006|website = Support|publisher = Microsoft}} 9. ^{{Cite web|url = http://support.microsoft.com/kb/121562/EN-US|title = Applications Started with AT Are Not Interactive|date = 20 February 2007|website = Support|publisher = Microsoft|deadurl=yes|archiveurl=https://web.archive.org/web/20041029024318/http://support.microsoft.com/kb/121562/EN-US/|archivedate=October 29, 2004}} 10. ^{{cite web|url=http://www.microsoft.com/technet/windowsvista/mgmntops/taskschd.mspx|title=Windows Vista Task Scheduler|date=March 3, 2006|accessdate=April 24, 2006|work=Microsoft TechNet|publisher=Microsoft|deadurl=yes|archiveurl=https://web.archive.org/web/20060412035343/http://www.microsoft.com/technet/windowsvista/mgmntops/taskschd.mspx|archivedate=April 12, 2006}} 11. ^{{cite web|url=http://support.microsoft.com/kb/939039|title=Description of the scheduled tasks in Windows Vista|date=August 24, 2007|deadurl=no|archiveurl=https://web.archive.org/web/20071022033307/http://support.microsoft.com/kb/939039|archivedate=October 22, 2007}} 12. ^1 {{cite web| url = http://msdn.microsoft.com/msdnmag/issues/07/10/WindowsCPP/| title = Task Scheduler 2.0| author = Kenny Kerr| work = MSDN| publisher = Microsoft| accessdate = 2007-10-06| date = October 2007| deadurl = yes| archiveurl = https://web.archive.org/web/20071226223747/http://msdn.microsoft.com/msdnmag/issues/07/10/WindowsCPP/| archivedate = December 26, 2007}} 13. ^{{Cite web|url = https://msdn.microsoft.com/en-us/library/aa383600%28v=vs.85%29.aspx|title = Task Scheduler 2.0 Interfaces|date = |accessdate = 30 May 2014|website = MSDN|publisher = Microsoft|last = |first = }} 14. ^{{cite web| url = http://msdn2.microsoft.com/en-us/library/aa382589.aspx| title = Tasks (Windows)| work = MSDN| publisher = Microsoft| accessdate = 2007-10-06}} 15. ^{{cite web|title=How to troubleshoot scheduled tasks in Windows XP and in Windows Server 2003|url=http://support.microsoft.com/kb/308558|work=Support|publisher=Microsoft|accessdate=3 Sep 2013|date=22 May 2013}} 16. ^{{cite web|url=http://msdn.microsoft.com/en-gb/library/windows/desktop/aa383604(v=vs.85).aspx|title=Task Scheduler Error and Success Constants|work=MSDN|publisher=Microsoft}} 17. ^{{cite web|title=Scheduled tasks may not start if you used a System Preparation image to install Windows XP or Windows 2000|url=http://support.microsoft.com/kb/313111|work=Support|publisher=Microsoft|accessdate=19 May 2012|date=1 July 2004|deadurl=yes|archiveurl=https://web.archive.org/web/20080926011921/http://support.microsoft.com/kb/313111|archivedate=26 September 2008}} 18. ^{{cite web|title=The value in the Next Run Time field in Task Scheduler is incorrect in Windows Vista and in Windows Server 2008|url=http://support.microsoft.com/kb/950035|work=Support|publisher=Microsoft|accessdate=19 May 2012|date=15 October 2008}} External links
3 : Windows administration|Windows services|1995 software |
随便看 |
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。