using (TaskService tasksrvc = new TaskService(@"\\" + servername, username, domain, password, true)) { Task task = tasksrvc.FindTask(taskSchedulerName); task.Run(); }