任务计划程序自动停止
操作系统使用任务计划程序(Task Scheduler)来计划所有后台进程、启动应用程序并管理它们。后面使用的方法是调度计算任何进程完成所需的所有资源。它根据这些进程的要求和优先级创建队列。当一切都设置好后,所有的任务都被发送到处理器执行。它基于时间和内存消耗工作。除此之外,任何人都可以创建自己的任务并安排它们。
到目前为止,您可能已经了解任务计划程序(Task Scheduler)的正常工作是必要的。如果您在任务计划程序(Task Scheduler)无法正常工作时遇到某个错误,那么这对您来说可能是个问题。这是因为你所有的后台任务、正在进行的任务和即将到来的任务都在发生冲突,让你的机器一次又一次地死机。
现在让我们了解它为什么不起作用以及解决问题的可能方法是什么。
在我们开始之前,让我们假设您已通过从不可靠的来源下载任何驱动程序或应用程序来安装它。现在错误的可能原因可能是,错误的注册表项,损坏的应用程序等。其他原因可能是,禁用任务计划程序(Task Scheduler)的服务,缺乏管理员权限,计划程序使用的树缓存损坏。
您可能不知道系统错误背后的哪个原因。这意味着您可能必须遵循以下文章中提到的每种方法。请(Please)记住,在每种方法完成后,您都必须重新启动系统。在开始之前,请记住先创建一个系统还原点。
任务计划程序未运行
如果任务计划程序(Task Scheduler)自动停止或未在您的Windows 10系统上运行,您需要执行以下操作:
- 检查(Check)并启动任务计划程序(Task Scheduler)服务
- 更改服务配置
- (Start Task Scheduler)使用命令提示符(Command Prompt)启动任务计划程序
- 运行系统文件检查器
- 删除(Delete)损坏的任务计划程序树缓存(Task Scheduler Tree Cache)。
1]检查(Check)并启动任务计划程序(Task Scheduler)服务
这是可以执行的最简单的步骤。检查Windows 服务(Windows Services),重新启动它们是即使您的系统管理员也会毫无疑问地执行的基本操作之一。
按Win + R键。将出现运行(Run)对话框。
键入services.msc并按 Enter。服务管理器(Services Manager)窗口将打开。
在服务列表中搜索Task Scheduler。
检查新窗口Service status是否设置为Running并且Startup type是否设置为Automatic。如果不是,则将其更改为相同的。接下来按开始(Start)按钮。
在这里,您的错误应该得到解决。但是,如果您的服务已经在运行,如屏幕截图所示,则转到下一个方法。
2]更改服务配置
如果上述方法无法启动Service,请尝试此方法。
打开开始菜单并输入cmd。从菜单中选择以管理员身份运行。(Run as administrator)
键入“ SC config schedule start= auto ”并按 Enter。
如果您收到的最后一条消息是[SC] Change Service Config SUCCESS,那么调度程序将开始工作。
重新启动系统,一切顺利。
3]使用命令提示符(Command Prompt)启动任务计划程序(Start Task Scheduler)
如果上述方法不起作用并且您的服务仍然无法正常工作,那么您也可以使用命令提示符(Command Prompt)或Windows PowerShell启用它。
按Win + X键。将打开一个快速访问菜单。(Quick Access)
这应该让事情开始。
4]运行系统文件检查器
现在您知道服务运行正常,您可以使用此方法。运行系统文件检查器查找可能损坏的系统文件,修复和维护它们。
按Win + X键。将打开一个快速访问菜单。(Quick Access)
从列表中选择Windows PowerShell (Admin)或命令提示符 (Admin)(Command Prompt (Admin))。
您将知道该过程何时完成并检查调度程序现在是否正在运行。如果没有,那么您可以转到下一个方法。
5]删除(Delete)损坏的任务计划程序树缓存(Task Scheduler Tree Cache)
这个方法有点冗长,一步一步走,你可能会发现错误没有了。
按Win + R键。运行(Run)对话框将打开。
转到以下注册表项:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree
转到开始搜索并键入Task Scheduler。单击(Click)应用程序,它现在应该可以工作了。如果确实如此,请执行以下步骤以找出阻止它的原因。
还原您之前所做的更改。将注册表重命名为Tree。
继续执行步骤 2(Step 2),直到找到调度程序显示错误的密钥。
找到罪魁祸首后,右键单击它并选择Delete。
重新启动系统并查看。
这些是您可以尝试克服任务计划程序(Task Scheduler)问题的一些方法。如果任何方法对您不起作用,请确保恢复您对系统所做的任何更改。(Make)
Task Scheduler not running or starting programs in Windows 11/10
Task Scheduler stops automatically
The Task Scheduler is used by the OS to schedule all the background processes, launch applications and manage them. The method used behind is that the schedular calculates all the resources required by any process to get completed. It creates the queue of such processes according to their requirements and priority. When everything is set, all the tasks are then sent to the processor to get executed. It works on the basis of time and memory consumption. Adding to it, anyone can create their own tasks and schedule them.
By now you may have understood that the proper working of the Task Scheduler is a necessity. If you are facing a certain error as Task Scheduler is not working, then it might be a problem for you. It is because of all of your background tasks, ongoing tasks, and upcoming tasks are clashing and making your machine to freeze again and again.
Let us now understand why it isn’t working and what can be the possible method to solve the issue.
Before we start, let’s assume that you have installed any driver or application by downloading it from an unreliable source. Now the possible reasons for error can be, faulty registry entry, corrupted application, etc. Other reasons could be, disabled service of Task Scheduler, absence of admin rights, corrupted tree cache used by the scheduler.
You may not know which of the mentioned reason is behind the error on your system. This means you may have to follow each and every method mentioned in the article below. Please keep in mind that you have to restart your system after the completion of each method. And before you begin, remember to create a system restore point first.
Task Scheduler is not running
If the Task Scheduler stops automatically or is not running on your Windows 10 system, you need to do the following things:
- Check and start Task Scheduler service
- Change the Service configuration
- Start Task Scheduler using Command Prompt
- Run System File Checker
- Delete the corrupted Task Scheduler Tree Cache.
1] Check and start Task Scheduler service
This is the most simple step one can perform. Checking Windows Services, restarting them is one of the basic things that even your system admin will also perform without a doubt.
Press Win + R keys. The Run dialog box will appear.
Type services.msc and press enter. The Services Manager window will open up.
In the list of Services search for Task Scheduler.
Check the new window whether the Service status is set to Running and Startup type is set to Automatic. If not then change it to the same. Next press the Start button.
Here you go, your error should get resolved. But if your service was already running as shown in the screenshot, then move to the next method.
2] Change the Service configuration
If the above method fails to start the Service, then try this method.
Open Start Menu and type cmd. Select Run as administrator from the menu.
Type “SC config schedule start= auto” and press Enter.
If the final message you get is [SC] Change Service Config SUCCESS then the scheduler will start working.
Restart your system and you are good to go.
3] Start Task Scheduler using Command Prompt
If the above method didn’t work and your service is still not working then you can enable it using Command Prompt or Windows PowerShell too.
Press Win + X keys. A Quick Access menu will open up.
This should get things started.
4] Run System File Checker
Now that you know the service is running properly, you can go with this method. Running System File Checker looks for potentially corrupted system files, repairs and maintains them.
Press Win + X keys. A Quick Access menu will open up.
Select Windows PowerShell (Admin) or Command Prompt (Admin) from the list.
You will know when the process is completed and check whether the scheduler is running now or not. If not then you may go to the next method.
5] Delete the corrupted Task Scheduler Tree Cache
This method is a bit lengthy, go through the steps one by one and you may find that the error is no more.
Press Win + R keys. The Run dialog box will open up.
Go to the following Registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree
Go to Start search and type Task Scheduler. Click on the application, it should work now. If it does then go through the following steps to find out what was stopping it.
Revert the changes you made previously. Rename the registry as Tree.
Keep doing Step 2 until you find the key due to which the scheduler was showing error.
Once the culprit is found, right-click on it and select Delete.
Restart your system and see.
These were some of the methods you can try to overcome the problem of Task Scheduler. Make sure to revert any changes you made to the system if any of the methods didn’t work for you.