Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Windows store the settings for Scheduled Tasks console?

I would like to know where Windows stores information for Scheduled Tasks. I would like to be able to find the reference for the name, schedule, or command to run associated with a given task. This may not be practical or possible, but I would also like a means to edit the scheduled tasks and their attributes outside the Schedule Tasks console. I've assumed that the data would be in the Registry somewhere, since I doubt it would be stored in a normal file, but I'm uncertain where I should be looking.

like image 491
Evan Avatar asked Dec 08 '13 13:12

Evan


People also ask

Where are Windows Task Scheduler tasks stored?

There are two different folders labeled "tasks". The first folder is relative to the scheduled tasks that would appear in the task scheduler, these are in c:\windows\tasks. The second tasks folder is located in c:\windows\system32\tasks.

Where are scheduled jobs stored?

Scheduled jobs are stored on disk and registered in Task Scheduler. The jobs can be managed in Task Scheduler or by using the Scheduled Job cmdlets in Windows PowerShell.

Where are scheduled tasks stored in Windows 10 registry?

Yes, I know that the scheduled tasks are stored in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule...) and the mentioned folder with the task is visible there.

Where is the Task Scheduler log file location?

1 Answer. open Event Viewer and navigate to Applications and Services Logs / Microsoft / Windows / TaskScheduler / Optional, you will see all the Task Histories. The . evt files are under C:\Windows\System32\Winevt\Logs directory.


1 Answers

Windows stores scheduled tasks as XML files, AND in the registry.

You can find them in a few places:

Filesystem:

%systemroot%\System32\Tasks
%systemroot%\Tasks

Registry:

HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\Taskcache\Tasks
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\Taskcache\Tree

Note: You can't edit the XML files directly in \Tasks for security reasons. See here for more information: https://serverfault.com/questions/440496/ok-to-edit-tasks-xml-file-in-c-windows-system32-tasks

To work with importing the XML files without going through the scheduled task UI you can look at these:

Schtasks.exe
Powershell Scheduled Task Cmdlets

like image 159
malexander Avatar answered Oct 17 '22 14:10

malexander