dahall wrote:
You are almost there:AMAZING that worked .... I thought I was close enough but coudnt get get worked ...your solution is a magic...:)using (TaskService ts = new TaskService()) { Task t = ts.GetTask(taskName); if (t != null) { if (!t.Enabled) { t.Enabled = true; t.RegisterChanges(); } } }