On a machine running “Windows 7 Professional” I have created a task with option “Run whether user is logged on or not”. When I create the task I am asked the user credential to run the task. Issue is that every time I edit the task, say merely updating the task description, every time I am being asked to provide password. Why it is like so?
In Windows XP, when editing the task next time, it doesn’t ask for password.
I have used Task Scheduler COM API 1.0 in a C# application to create and edit tasks programmatically. In Windows XP environment when user edits the task through the C# application, I save the task with updated information without asking for the password. And it works just fine.
*
But in Windows 7 environment, edited task information is getting saved and C# application is successfully getting back the last saved information. But only issue is that changes are NOT reflecting in “Windows Task Scheduler” panel and also changes are NOT taking effect. Say if a daily task run time is changed from 4 PM to 8 PM, it does not work. Though when C# application query the task information from Windows, it get back 8 PM.
*
When C# application edits and save the task information along with user credentials every time, all works just fine. But I see it a nuisance every time asking for password.
*
More...