如果您登陆此网页,您可能已经知道如何使用任务计划程序(Task Scheduler)来创建计划任务。现在,您可能正在向自己和互联网搜索引擎询问如何重命名已在(internet search)Task Scheduler中创建和计划的任务。虽然对某些人来说这似乎是一个微不足道的行动,但事情并不像看起来那么简单。让我们看看为什么,以及如何改变它:
为什么任务计划程序(Task Scheduler)中没有“重命名任务(rename task)”选项?
人们会期望重命名Windows 任务(Windows task)是一件简单的事情。您应该打开任务计划程序(Task Scheduler),找到要重命名的任务并搜索重命名选项,这似乎很明显。好吧(Well),当你这样做时,你会发现没有这样的选择。
任务计划程序(Task Scheduler)中没有可用的重命名任务选项(rename task option),因为这会使操作系统(operating system)容易受到威胁。为了更好地理解,假设病毒开始重命名您的所有计划任务。您设置和启用的每个任务都可以更改。这就是为什么在Windows(Windows)中没有明显的方法来重命名计划任务的原因。
如何在任务计划程序中重命名任务(Task Scheduler)
我们知道没有明显的方法可以更改已在Task Scheduler中创建的任务的名称。然而,就没有办法了吗?答案是有办法的。但是,它不像“右键单击和重命名(click & rename)”操作那样流畅和直接。简而言之,您必须导出然后导入相同的任务才能更改其名称。
首先,打开任务计划程序并在(Task Scheduler)任务计划程序库(Task Scheduler Library)中查找要重命名的任务。然后,单击或点击(click or tap)它以选择它。
在“任务计划程序(Task Scheduler)”窗口右侧的“操作(Actions)”侧栏中,单击或点击“导出(Export)”选项。
或者,您也可以右键单击或点击并按住任务名称,然后选择(name and select) 导出(Export)。
在“另存为(Save As)”窗口中,键入要用于任务的名称并将其保存在计算机上的某个位置。您导出的任务保存为“.xml”文件。只要(Just)记住你保存它的地方。
保存任务后,您将返回任务计划程序(Task Scheduler)的主窗口。选择您刚刚导出的任务并将其删除。
您可以从“操作(Actions)”侧边栏或其右键菜单中执行此操作。
原来的计划任务现在没有了。要取回它,但这次使用新名称,请重新检查操作(Actions)侧边栏,然后单击或点击“导入任务”。("Import Task.")
导航到您之前保存导出任务的位置,选择它并单击或点击打开(Open)。
任务计划程序(Task Scheduler)现在打开一个名为“创建任务”("Create Task.")的对话框。在常规(General)选项卡中,第一个可用字段是新任务的名称(Name)。您可以保留保存时已为导出文件设置的名称,也可以使用新名称填写名称(Name)字段。保留原始任务的所有其他设置,因此除非您想更改其他设置,否则请按OK。
在任务计划程序(Task Scheduler)中,您现在可以看到原始计划任务具有您为其选择的新名称。
您知道在任务计划程序(Task Scheduler)中重命名任务的其他解决方法吗?
使用任务计划程序(Task Scheduler)重命名任务集并不像您想的那么简单。如您所知,这是出于安全原因而发生的。但是,这并不意味着无法重命名任务。您可以使用我们的解决方法来完成这项工作。如果您知道重命名使用Task Scheduler创建的任务的其他方法,请不要犹豫,让我们和其他读者知道。您可以使用下面的评论部分,或讨论这个主题。
How to rename a Windows task created with Task Scheduler
If you landed on this web page, you probably alrеady know how to work with Task Scheduler to create scheduled tasks. Now it may be that you are asking yourself and the internet search engines about a way to rename a task that is already created and scheduled in Task Scheduler. While it may seem a trivial action to some, things are not as simple as they appear to be. Let's see why, and how we can change that:
Why there is no "rename task" option in the Task Scheduler?
One would expect that renaming a Windows task is a simple thing to do. It might seem obvious that you should open the Task Scheduler, find the task you want to rename and search for an option to rename it. Well, when you do that, you find that there is no such option.
There is no rename task option available in Task Scheduler because that would make the operating system vulnerable to threats. To get a better idea, imagine that a virus starts renaming all your scheduled tasks. Every task you have set and enabled could be changed. This is why there is no obvious way to rename scheduled tasks in Windows.
How to rename a task in Task Scheduler
We know that there is no obvious way to change the name of a task already created in Task Scheduler. However, is there no way at all? The answer is that there is a way. However, it is not as smooth and straightforward as a "right click & rename" action. To put it briefly, you have to export and then import the same task to be able to change its name.
First, open the Task Scheduler and look for the task you want to rename in the Task Scheduler Library. Then, click or tap on it to select it.
On the right side of the Task Scheduler window, in the Actions sidebar, click or tap on the Export option.
Alternatively, you can also right-click or tap and hold on the task's name and select Export.
In the Save As window, type the name you want to use for your task and save it somewhere on your computer. The task you export is saved as a ".xml" file. Just remember where you saved it.
After you save the task, you are brought back to the main window of the Task Scheduler. Select the task you just exported and delete it.
You can do that either from the Actions sidebar or its right-click menu.
The original scheduled task is now gone. To get it back, but this time with a new name, recheck the Actions sidebar and click or tap on "Import Task."
Navigate to the location where you saved the exported task earlier, select it and click or tap Open.
The Task Scheduler now opens a dialog named "Create Task." In the General tab, the first available field is the Name of the new task. You can keep the name you already set for the exported file when you saved it, or you can fill the Name field with a new one. All the other settings of the original task are kept, so unless you want to change something else, press OK.
In the Task Scheduler, you can now see that the original scheduled task bears the new name you chose for it.
Do you know other workarounds for renaming tasks in Task Scheduler?
Renaming a task set with Task Scheduler is not an action as straightforward as you might be tempted to think. As you know now, this happens for security reasons. However, that does not mean that it is impossible to rename a task. You can use our workaround for this job. If you know of other ways to rename tasks created with Task Scheduler, do not hesitate to let us and the other readers know. You can use the comments section below for that, or for discussing this subject.