Aug 19, 2015 at 2:11 PM
Edited Aug 19, 2015 at 3:05 PM
- Created a task (Let's say this is TaskA)
When running the task..user account : SYSTEM
Set Run with highest privileges.
Set Action to run a console exe application (Let's say this is ConsoleApp) at the specific time.
In that ConsoleApp, what it does is to add one more trigger based on some business logic..and call RegisterChanges to update...
Here are what I noticed..
- When running the ConsoleApp with admin right in command window, it works file.
- When running the ConsoleApp without admin right, it didn't work. (GetTask method returns null, so no update happened)
I think this is a security related issue... I CANNOT change the SYSTEM account to some other account for the TaskA. Is there any way that ConsoleApp should be run under the context of Windows Task Scheduler to make update happen?