When I change the password (or do any kind of update) to an existing task on Server 2008, the "Do not store password" checkbox is always reset to Checked.
Possibly related, in the debugger I always see td.Settings.RunOnlyIfLoggedOn = true.
I am doing the update with:
TaskDefinition td = task.Definition;
taskservice.RootFolder.RegisterTaskDefinition(.taskname, td, TaskCreation.CreateOrUpdate,
taskservice.RootFolder.Tasks[i];
Is there some way to make it leave the "Do not store password" setting alone?
Bill
Possibly related, in the debugger I always see td.Settings.RunOnlyIfLoggedOn = true.
I am doing the update with:
TaskDefinition td = task.Definition;
taskservice.RootFolder.RegisterTaskDefinition(.taskname, td, TaskCreation.CreateOrUpdate,
username,password);
task was retrieved with:taskservice.RootFolder.Tasks[i];
Is there some way to make it leave the "Do not store password" setting alone?
Bill