Hi all,
how can i change the password for a scheduled Task that is associated to run with a certain account? Is this even possible? Thanks for any hint.
yb
Comments: ** Comment from web user: dahall **
how can i change the password for a scheduled Task that is associated to run with a certain account? Is this even possible? Thanks for any hint.
yb
Comments: ** Comment from web user: dahall **
```
var t = TaskService.Instance.GetTask("TaskName");
TaskService.Instance.RootFolder.RegisterTaskDefinition("TaskName", t.Definition,
TaskCreation.CreateOrUpdate, "newUserDomain\\newUserName", "newUserPassword",
TaskLogonType.Password);
```