您可能知道任务计划程序(Task Scheduler)是什么以及它的作用。也许您还知道如何创建新的计划任务。但是管理现有的计划任务呢?您知道如何手动运行或停止计划任务吗?你知道如何禁用、删除、导出或导入一些计划任务吗?继续阅读并找出您可以从Windows中的任务计划程序中对现有任务执行的七项基本任务:(Task Scheduler)
注意:(NOTE:)您可能想先了解如何打开任务计划程序并浏览(Task Scheduler and browse)计划任务库。
1.在任务计划程序(Task Scheduler)中运行现有任务
任务计划程序(Task Scheduler)允许您按需运行任务,无论它何时设置为运行。浏览(Navigate)任务计划程序库(Task Scheduler Library)的文件夹以查找要运行的任务。
选择任务,然后在右侧面板中的Selected Item下,单击或点击Run。
请注意,仅当启用任务时,您才能按需运行任务。如果任务被禁用,则“运行”(Run)按钮不可见。此外,如果未选择“允许按需运行任务”("Allow task to be run on demand")设置,则无法手动运行该任务。在这种情况下,运行(Run)按钮是可见的,但是当您按下它时,您会收到如下消息:“要按需运行此任务,请打开任务属性对话框并选择允许任务按需运行检查设置选项卡上的框。”("To run this task on demand, open the task Properties dialog box and select the Allow task to be run on demand check box on the Settings tab.")
要按需运行任务,请选择它并单击/点击Properties。然后,转到“设置”(Settings)选项卡并选中“允许按需运行任务”("Allow task to be run on demand")复选框。
如果您还想了解如何在任务计划程序(Task Scheduler)中创建新的计划任务,请阅读:如何使用(How)任务计划程序(Task Scheduler)创建基本任务,分 5 步和如何(How)使用任务计划程序(Task Scheduler)创建高级任务(Create Advanced Tasks)。
2. 从任务计划程序(Task Scheduler)结束现有任务
您可以通过结束它来阻止正在运行的任务完成其操作。为此,请选择任务,然后在Selected Item下单击或点击End。
如果您的任务启用了“如果正在运行的任务在请求时没有停止,则强制它停止”("If the running task does not stop when requested, force it to stop")选项,如果在您尝试结束任务时它没有停止,则该任务将被强制结束。您可以通过编辑任务的属性(Properties)来调整此设置:转到“设置”(Settings)选项卡并选中“如果正在运行的任务在请求时没有停止,请强制停止”的框。("If the running task does not stop when requested, force it to stop.")
3.禁用任务计划程序(Task Scheduler)中的现有任务
要停止任务运行一段时间,您可以禁用它。禁用任务时,它不会按计划运行,也不会按需(schedule nor demand)运行,但仍保留在任务库(Task Library)中。此外,如果在您禁用它时它正在运行,它会继续运行直到完成其工作。
选择您感兴趣的任务,然后单击或点击(click or tap) 所选项目(Selected item)面板中的禁用。(Disable)
4.从任务(Task)计划启用现有(禁用)任务
如果任务被禁用,您可以启用它。启用后,任务将按计划运行,您也可以按需运行。选择要启用的任务,然后单击或点击“选定项目”(Selected item)面板中的启用(Enable)按钮。
5.从任务计划程序中(Task Scheduler)删除(Delete)现有任务
如果您不想再运行某个任务,可以将其删除。此操作将任务从任务库(Task Library)中完全删除。选择要删除的任务,然后在Selected Item中单击或点击Delete。
6. 从任务计划程序(Task Scheduler)中导出现有任务
任务计划程序允许您导出任务,以便其他用户或其他(Task Scheduler)Windows计算机可以导入和使用它。
任务被导出到一个XML 文件(XML file)中,其中包含任务的所有属性、触发器、操作、条件和设置。要导出任务,请选择它,然后单击或点击导出(Export)按钮。
键入导出任务的名称并选择您希望将其存储的位置。然后,单击或点击(click or tap) 保存(Save)。
7. 导入现有任务
要导入任务,您需要知道导出任务的XML 文件(XML file)的位置。单击(Click)或点击“操作(Actions)”面板中的“导入任务(Import task)”按钮将其导入。
选择XML 文件并单击(XML file and click)或点击打开(Open)。
任务已导入,并显示其属性,允许您根据自己的喜好进行其他更改。
注意:(NOTE:)任务计划程序(Task Scheduler)不提供重命名现有任务的选项。但是,如果您想这样做,您可以使用“导出(Export)”和“导入(Import)”选项来重命名任何计划任务。有关如何执行此操作的指导,请阅读本文:如何重命名使用任务计划程序(Task Scheduler)创建的Windows 任务(Windows task)。
您是否经常更改任务计划程序(Task Scheduler)中的现有任务?
任务计划程序(Task Scheduler)提供了多种用于管理和编辑任务的选项。此外,如果您使用多台设备,您可能会喜欢导出现有任务并将其导入其他设备的选项。您是否经常使用任务计划程序(Task Scheduler)更改现有任务?使用评论部分分享您使用此工具的思想体验。
7 things you can do with the existing tasks from Task Scheduler
You maу know what the Task Scheduler is and what it does. Maybe you also know how to create new scheduled tasks. But what about managing the existing scheduled tasks? Do you know how to run or stop scheduled tasks manually? Do you know how to disable, delete, export or import some scheduled tasks? Read on and find out the essential seven things that you can do with existing tasks from the Task Scheduler in Windows:
NOTE: You might want to first learn how to open the Task Scheduler and browse through the library of scheduled tasks.
1. Run an existing task in Task Scheduler
Task Scheduler allows you to run a task on demand, regardless of when it was set to run. Navigate through the folders of the Task Scheduler Library to find the task that you want to run.
Select the task and, in the panel on the right, under Selected Item, click or tap Run.
Note that you can run a task on demand only if it is enabled. If the task is disabled, the Run button is not visible. Also, the task cannot be run manually if the "Allow task to be run on demand" setting is not selected. In this case, the Run button is visible, but when you press it, you get a message like the one below: "To run this task on demand, open the task Properties dialog box and select the Allow task to be run on demand check box on the Settings tab."
To run the task on demand, select it and click/tap Properties. Then, go to the Settings tab and check the "Allow task to be run on demand" checkbox.
If you also want to learn how to create new scheduled tasks in Task Scheduler, read: How to create basic tasks with Task Scheduler, in 5 steps and How to Create Advanced Tasks with the Task Scheduler.
2. End an existing task from Task Scheduler
You can stop a running task from completing its actions by ending it. To do this, select the task and, under Selected Item, click or tap End.
If your task has the option "If the running task does not stop when requested, force it to stop" enabled, the task is forced to end if it did not stop when you tried to end it. You can adjust this setting by editing the tasks' Properties: go to the Settings tab and check the box that says: "If the running task does not stop when requested, force it to stop."
3. Disable an existing task in Task Scheduler
To stop a task from running for a certain period, you can disable it. When a task is disabled, it is not run on schedule nor demand, but it remains in Task Library. Also, if it is running when you disable it, it keeps on running until it finishes its job.
Select the task that you are interested in, and click or tap Disable in the Selected item panel.
4. Enable an existing (disabled) task from the Task Scheduled
If a task is disabled, you can enable it. Once enabled, the task is run on schedule, and you can also run it on demand. Select the task that you want to enable and click or tap the Enable button in the Selected item panel.
5. Delete an existing task from Task Scheduler
If you no longer want to run a task, you can delete it. This action completely removes the task from the Task Library. Pick the task to be deleted and, in the Selected Item click or tap Delete.
6. Export an existing task from the Task Scheduler
Task Scheduler allows you to export a task so it can be imported and used by other users or on other Windows computers.
The task is exported into an XML file which contains all the properties of the task, triggers, actions, conditions, and settings. To export a task, select it and then click or tap the Export button.
Type the name for your exported task and select the location where you would like it stored. Then, click or tap Save.
7. Import an existing task
To import a task, you need to know the location of the XML file where the task was exported. Click or tap the Import task button in the Actions panel to import it.
Select the XML file and click or tap Open.
The task is imported, and its properties are shown, allowing you to make additional changes, according to your preferences.
NOTE: The Task Scheduler does not offer an option to rename existing tasks. However, if you want to do so, you can use the Export and Import options to rename any of your scheduled tasks. For guidance on how to do that, read this article: How to rename a Windows task created with Task Scheduler.
Do you change existing tasks from the Task Scheduler often?
The Task Scheduler offers a wide variety of options for managing and editing tasks. Furthermore, if you are working with multiple devices, you might enjoy the option of exporting existing tasks and importing them on other devices. Are you changing existing tasks often, using the Task Scheduler? Use the comments section to share your thought experience with this tool.