This project has moved and is read-only. For the latest updates, please go here.

Task doesnt get triggered

Sep 1, 2011 at 3:35 PM

I am creating a Task on windows xp, and it works just fine. The problem is that the task doesn't get triggered. 

In order for it to get triggered, I have to manually open the task and "set password" next to the "Run As:" attribute, even that I have already supplied one at the time od creating the task.

This is my code to create the Task:

ts.RootFolder.RegisterTaskDefinition(name", td, TaskCreation.CreateOrUpdate, "", "lalala/*", TaskLogonType.Password ); 

Any ideas and help will be greatly appreciated.



Sep 9, 2011 at 12:08 AM

Try setting the TaskLogonType to InteractiveTokenOrPassword instead of Password.