Task Scheduler service is not available

Posted: June 19, 2014 in Solved, Windows General
Tags: , ,

Another one of those “this has been bugging me for ages” things. Sometime *ages* ago one of my servers had an unexpected shutdown (crash/bugcheck whatever). After it came back up and all the various repair and recovery stuff completed it was back to normal… more or less.

One thing that started happening was that the task scheduler would throw an error “Task Scheduler is not available. Task Scheduler will attempt to reconnect to it.” every time it was opened, and some scheduled tasks didn’t always seem to trigger.


Overall I didn’t bother about it too much as I planned to decommission the server anyway. One and a half years later, the server is still going :sigh:

Hunting around for Task Scheduler related settings eventually led me to this Registry branch: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree

Which follows the list of scheduled tasks you see through the Task Scheduleder GUI. The ID’s are then pointers to task details under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks

Note: Usual cautions apply. Editing the registry can break things, and the changes below worked for me. Your results may vary, so caution and backups should be applied before making changes.

  1. Close the Task Scheduler GUI if it is open
  2. First, export a copy of the “Tree” and “Tasks” Keys. If you mess something up you can just re-import them to set things back to before
  3. Right-click “Tree” and select permissions. Add “Full Control” to the Administrators group
    1. This will not be easily reversible, so expect to leave this in place once finished
  4. Rename each of the Keys under Tree one at a time. e.g. add .bak to each entry (Microsoft -> Microsoft.bak)
    1. After each rename, start the GUI
    2. When the error does not appear, note the last entry that was renamed
  5. If the “problem” entry was a folder, then name it back to normal and repeat the process on the subfolders until the actual task is found
  6. Once the problem task has been found, then leave it renamed and recreate it in the GUI

If the task is one of the Microsoft default ones, it may be possible to “restore” it using the steps in the following article:


If the file in your tasks folder is Zero bytes or corrupted, then you can get a copy of the file from another computer running the same OS and version. Copy it from the other machine to a temp location and import from there.

  1. Krd says:

    This worked for me. Thanks

  2. Manlio Laschena says:

    On Tree I was unable to get the authorizations to change names to Microsoft folder and sub.

  3. Peter says:


    I was getting this exact error, and in addition every 30 seconds there was an event from Security-SPP saying ‘Failed to schedule Software Protection service for restart. Error Code: 0x80070005.’

    Your point 3 solved both problems instantly, no other action required. Thanks 😀

Leave a Reply to Peter Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s