Quantcast
Channel: Task Scheduler Managed Wrapper
Viewing all articles
Browse latest Browse all 2206

New Post: Is that permission issue, then how do I fix this?

$
0
0
Hello,
  1. 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..
  1. When running the ConsoleApp with admin right in command window, it works file.
  2. When running the ConsoleApp without admin right, it didn't work. (GetTask method returns null, so no update happened)
  3. When running the ConsoleApp under context of Windows Task Scheduler(Under Actions tab), it throws exception, System.IO.FileNotFoundException
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?

Thanks,

Viewing all articles
Browse latest Browse all 2206

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>