Scheduled Task Missing or Corrupted

Problem:

AM doesn't download new application versions and you receive the following error message when you click Start download in AM: Error when starting scheduled task. The system cannot find the file specified.

This might be caused by a missing or corrupted "Recast Software Application Manager - download" scheduled task.

Solution 1:

Create the missing scheduled task with the following command:

  • schtasks /Create /TR "'C:\ProgramData\Recast Software\Application Manager\PackageDownloader\DownloadSoftwares.cmd'" /RU system /SC DAILY /RI 30 /DU 24:00 /TN "Recast Software Application Manager - download"

If you receive error message stating there is already a task with a same name, and you cannot replace it, proceed to solution 2


Solution 2:

If the scheduled task is corrupted, you might not have all of the following files and registry keys in place, but remove the ones you might find.

  • Remove the following file
    • C:\Windows\System32\Tasks\Recast Software Application Manager - download
  • Remove the following registry key
    • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Recast Software Application Manager - download
  • Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks registry key
    • Find a key with Path and URI value of \Recast Software Application Manager - download
    • Remove the key.
  • Restart the server
  • Re-create the scheduled task with the following command:
    • schtasks /Create /TR "'C:\ProgramData\Recast Software\Application Manager\PackageDownloader\DownloadSoftwares.cmd'" /RU system /SC DAILY /RI 30 /DU 24:00 /TN "Recast Software Application Manager - download"
  • Start Application Manager for MECM and try downloading new application versions again.