History helps you keep track of all the events of a scheduled task. Here is how to quickly enable history in the Task Scheduler.
Task Scheduler is one of the most powerful applications in Windows OS. It lets you create all kinds of scheduled tasks for repeatable tasks. For example, suppose you always open a program after starting the system; you can make a scheduled task so that the program is automatically opened after the system starts. Put simply, using the Task Scheduler; you can automate from the simplest of things to the complex of tasks as long as you know what and how to do.
When a task is executed, the Task Scheduler can keep track of all events that occurred during the task’s run. This is called task history. As you can guess, the Task Scheduler history will help you better understand the task flow and troubleshoot the scheduled task if something goes wrong.
However, the Task Scheduler History is disabled by default. If you open the Task Scheduler and select a scheduled task, you can see the “History (disabled)” tab in the bottom section. When the history feature is disabled, the program will not record the scheduled task events. Though not a big deal, for the most part, it is one of those features that you wish is enabled when the time comes. So, it is better to turn it on when you have the chance.
In this quick and straightforward Windows guide, let me show you how to enable history in the Task Scheduler.
Enable History in Task Scheduler
To enable Task Scheduler history, you have to use the “Enable All Tasks History” option. It is available in the Task Scheduler itself. Here is where to find it.
- Press the “Start key + R” shortcut.
- Type “taskschd.msc” and click “Ok” to open Task Scheduler.
- Select “Task Scheduler (local)” on the left sidebar.
- Click the “Enable all tasks history” option on the right sidebar.
- Close the Task Scheduler.
- The Task History is now enabled.
As the first thing, we need to open the Task Scheduler. You can do that using the “taskschd.msc” Run command or by searching for it in the Start menu. After opening the Task Scheduler, select “Task Scheduler (local)” on the left sidebar and click on the “Enable all tasks history” option on the right sidebar.
After that, close the Task Scheduler.
From now on, the Task Scheduler will automatically log all the task events in the History tab. You can see the history tab by selecting the task in the Task Scheduler. Of course, you can also delete task scheduler history as and when needed.
Command to enable Task Scheduler history
You can enable history in Task Scheduler using the “wevtutil” command. Here is how.
First, open the elevated Command Prompt window. Search for Command Prompt in the Start menu, right-click on the result, and select “Run as administrator.” Execute the below command in the command window.
wevtutil set-log Microsoft-Windows-TaskScheduler/Operational /enabled:true
As soon as you execute the command, the Task Scheduler history is turned on. You will not see any confirmation message, but you can rest assured that it is turned on. From this point, Task Scheduler will keep a log of all the events during the task’s run.
That is all. It is that simple to enabled history in Task Scheduler.
I hope that helps.
If you need help, comment below.