Over the past few days, I have searched a lot regarding checking for the availability of a scheduled task, if so <insert awesome here> . Basically, I have an application that installs and removes our scheduled tasks. Now I need to check the checkbox if the task is there, and not checked if it is not. There was a link to use:
ScheduledTasks st = new ScheduledTasks(server); string[] taskNames = st.GetTaskNames(); List<string> jobs = new List<string>(taskNames);
which doesn't work for me, it claims that the ScheduledTasks namespace was not found. I believe that I have what I need to install. "using Microsoft.Win32.TaskScheduler;"
source share