0

I had added some basic tasks to display a message at regular intervals using Task scheduler. After upgrading to windows 10 , I am unable to view or edit them. The tasks are working fine (Message pop up is coming as scheduled).

When I tried to create a new task, I found that "Display a message" option is deprecated in windows 10. Is that the reason the tasks are not listed in the Task scheduler library? I am able to view the newly created task (with "Start a program" option). Is there any way to delete the old tasks I created prior to the upgrade?

Update:

As @Peter suggested, I could list the tasks using schtasks command. The tasks I created prior to upgrade are there in the list. But when I try to delete the task using schtasks /Delete /TN "\mytask" command, it is throwing an error:

ERROR: The specified task name "\mytask" does not exist in the system.

I could delete newly created tasks using the command btw.

Update:

Deleting the tasks from the C:\Windows\System32\Tasks folder fixed the issue for me. But for my coworker, a simple machine restart fixed the issue :)

1

3 Answers 3

1

You can open a command line window and type schtasks to list existing tasks, find your task and remember the folder and the taskname, then type schtasks /Delete /TN "\folder\task name" to delete that task.

You can also check whether a file for your task exists in:

C:\Windows\System32\Tasks

It may be okay to just delete the file but make a backup first.

2
  • That didn't work. It is showing an error message "ERROR: The specified task name "\lookout" does not exist in the system." But,I am able to delete the newly created task
    – Sharun
    Commented Jul 28, 2016 at 6:35
  • Have you included the full path? Check whether your old task is in a folder. Does schtasks /query /tn "taskname" work? Commented Jul 28, 2016 at 6:57
0

Do a machine restart. Most of the time it fixes the issue. Especially if you are facing the issue immediately after upgrading to windows 10.

If it doesn't work, you may have to delete the obsolete task using the Registry Editor as mentioned in comment by @w32sh, which involves deleting the tasks from C:\Windows\System32\Tasks as the final step.

0

Opening Task Scheduler on upgraded system will most likely display a disappointing message: The selected task “… task name…” no longer exists. To see the current task, click Refresh.

You will not be able to recreate tasks with the same name since those tasks are still present, regardless of the fact that those tasks will not be displayed when checked using PowerShell commands: Get-ScheduledTask or schtasks

Folder C:\Windows\System32\Tasks on upgraded system should still contain all the tasks created previously on Windows 7 PC.

After opening Task Scheduler interface (and acknowledging 1 by 1 that old tasks do not exist) , navigate from root “Task Scheduler (Local)” to Task Scheduler Library->Microsoft. While in the Microsoft subfolder the Action menu will list option Import Task…. Instead of the Action menu, you can also right click on the folder to select Import Task action Note that this action is not available in the level up Task Scheduler Library.

All tasks in C:\Windows\System32\Tasks are xml files, but none of them has the xml extension. Changing the file extension from XML files *.xml to All files . will allow you to select old “lost” Task and import it back.

2
  • I forgot to mention that you will also need to clean Windows registry a bit
    – Andrzej
    Commented Jun 19, 2017 at 18:49
  • 1. Make backup of 2 keys HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks & HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree 2. Delete all the entries referencing not available tasks. This is relatively easy for purging the Tree section, but a bit more tedious task for purging ..\TaskCache\Tasks, since each item ought to be carefully inspected before being deleted
    – Andrzej
    Commented Jun 19, 2017 at 18:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .