Site icon Winhelponline

Task Scheduler service is not available; will attempt to reconnect

When you launch the Task Scheduler window, or when a specific task is run, the following error may pop up:

Task Scheduler service is not available. Task Scheduler will attempt to reconnect to it.

This error may occur although the Task Scheduler service is running.

Task Scheduler service is not available. Task Scheduler will attempt to reconnect

This error occurs due to network conditions set for the task. If the task is configured to run only when a specific network is available, the error occurs if that specific network is unavailable.

If that specific network connection is unavailable, Windows shouldn’t throw an error. This, clearly is a bug in Windows.

Follow this workaround if your task doesn’t require a network, or if it can work with any network that is available.

First, identify the task which was configured with the network condition. If a recently run task caused the error, you can identify the “last run” task using different ways.

To view the list of tasks configured to start only if a network connection is available and with a specific network connection, run this command from an elevated PowerShell (PowerShell.exe) window.

gci -path c:\windows\system32\tasks\* -recurse | select-string -pattern "</Id>" | select-object filename,line

This lists all the tasks that are configured to use a specific network ID. Here is the XML markup from a sample task.

<RunOnlyIfNetworkAvailable>true</RunOnlyIfNetworkAvailable>
    <NetworkSettings>
      <Id>{115AA1E6-4975-424A-989B-622B814D0174}</Id>
      <Name>XT1068 4219</Name>
    </NetworkSettings>

Note: {115AA1E6-4975-424A-989B-622B814D0174} represents the Belkin network profile on my computer. FYI, the list of network profiles are under the CurrentVersion\NetworkList\Profiles registry key.

  1. Once you identify the offending task, open Task Scheduler.
  2. Double-click to open the Properties of the offending task, select the Conditions tab.
  3. Under Network, uncheck Start only if the following network connection is available.

    However, if the task needs network connectivity to run correctly, enable the checkbox, but select Any connection from the dropdown list box.

This fixes the error Task Scheduler service is not available. Task Scheduler will attempt to reconnect to it in Task Scheduler.

Exit mobile version