How To Enable History In Task Scheduler On Windows 11

People are currently reading this guide.

 Users can schedule and automate tasks on their computers using the powerful Task Scheduler feature in Windows 11. To successfully track the performance and execution of activities, task history monitoring is essential. The history component of Task Scheduler, however, could occasionally be disabled by default. We'll walk you through four easy ways in this blog post to enable history in Task Scheduler on Windows 11.

Using the GUI (Graphical User Interface)

Open Task Scheduler 

Click the Start button, type "Task Scheduler" into the search bar, and then click the application that shows up in the search results.

Go to the Task Scheduler Library 

Open Task Scheduler and expand "Task Scheduler Library."

Choose Task Scheduler Properties 

Right-click "Task Scheduler Library" and select "Properties."

Enable Task History 

Go to the "History" tab in the "Task Scheduler Properties" window and select the checkbox next to "Enable All Tasks History." To save the changes, click "OK".

Using Command Prompt

Launch Command Prompt as Administrator 

To launch Command Prompt with administrative rights, right-click the Start button and choose "Windows Terminal (Admin)".

Enable Task History 

enter after you type the following command:

schtasks /Change /TN * /ENABLE

All current tasks in Task Scheduler will have history enabled when this command is run.

Using PowerShell

Launch PowerShell as an administrator 

In the Start menu, type "PowerShell," then right-click "Windows PowerShell" and select "Run as Administrator."

Enable Task History 

enter the command shown below, then hit enter:

Get-ScheduledTask | Set-ScheduledTask -History $true

This PowerShell command makes all tasks history-enabled.

Modifying the Registry

Editing the Windows Registry should be done with caution. Pay close attention to these instructions.

Open Registry Editor 

To start the Registry Editor, press Win + R to open the Run dialog, type "regedit," and then hit Enter.

Navigate to the Task Scheduler Key 

Navigate to the following location in the Registry Editor:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache

Change the History key

In the right-hand pane, look for a DWORD value with the name "EnableHistory". Create it if it doesn't already exist by right-clicking and choosing "New" > "DWORD (32-bit) Value."

Enable Task History 

To enable task history, double-click "EnableHistory" and adjust its value to "1".

Conclusion

Windows 11's Task Scheduler is a useful tool, and turning on task history can greatly improve job management and debugging capabilities. We have covered four simple techniques: utilizing the GUI, Command Prompt, PowerShell, and Registry Editor to enable history in Task Scheduler. You may make sure that task history is saved and available by using any of these procedures, giving you useful information about how your planned tasks performed and were carried out.

Any Issues? - Live Connect

You have our undying gratitude for your visit!