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.
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.
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With