The following process works in my machine Windows 10 Pro 64 bit.
Scheduled tasks are stored in this registry
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule]
. Backup/export this wholeSchedule
registry key.Delete the whole
Schedule
registry key by adding this line in a new .reg file[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule]
. And also delete "%SystemRoot%\System32\Tasks" and "%SystemRoot%\SysWOW64\Tasks" (only for 64bit OS) with takeown and icacls command.But deleting that registry key task scheduler and Defragment shows an error. [![Task Schedular error][1]][1][![Defragment error][2]][2]
Copy the
SD
reg_binary value of the path[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree]
from that previous backup in this new registry file. This solves the task scheduler error.Also add this line
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\Defrag\ScheduledDefrag]
to solve the defragment error. Here is the whole registry file::
Alternatively, with command SchTasks /Delete /TN * /F
See also:: Is there a way to quickly delete/disable ALL scheduled Tasks? [1]: https://i.sstatic.net/AjQJv.png [2]: https://i.sstatic.net/FvGy1.png [3]: https://i.sstatic.net/J2Qup.png