Check out the following link: https://taskscheduler.codeplex.com/wikipage?title=Examples&referringTitle=Documentation#get
You need to use the RegisterChanges method after making changes to the properties exposed via the Definition. You can also call the RegisterTaskDefinition method from the task's parent folder with the same task name and then you have the ability to change the user or password.
You need to use the RegisterChanges method after making changes to the properties exposed via the Definition. You can also call the RegisterTaskDefinition method from the task's parent folder with the same task name and then you have the ability to change the user or password.