Search code examples
c#scheduled-tasks

Windows Task Scheduler - Last Run Time and Last Run Result


We have several scheduled jobs running in our various servers. I was looking if I could do something to see all the scheduled tasks along with the last run time and the last run result.

I have looked at this CodeProject article but I couldn't find anything for the last run details.

Also, I have looked at the XML file located at

C:\Windows\System32\Tasks

Using this file I can get the jobs but not the last run details.

I would like to know how I should proceed to get the jobs along with their last run details from remote computers.


Solution

  • You might want to try the managed wrapper for the scheduler API: http://taskscheduler.codeplex.com/

    Project is migrated to https://github.com/dahall/taskscheduler