How to invoke taskscheduler from IIS Hosted - .Net core app running under AppPool

Selvam M 0 Reputation points
2025-05-07T14:05:22.2633333+00:00

Hi,

Am running an ASP Net core application in which am trying to invoke task scheduler - Start, read detail(last run).

I can able to execute well only if i add custom account in IIS App pool.

But i would like to execute - start, read with IISAppPoolIdentity.

Can anyone guide how to achieve this?

Thanks,

Selvam M

Developer technologies .NET .NET Runtime
{count} votes

1 answer

Sort by: Most helpful
  1. Max Jaxon 0 Reputation points
    2025-05-14T15:27:31.27+00:00

    To use IIS APPPOOL\YourAppPoolName identity for starting and reading a scheduled task, you need to grant it proper permissions. In Task Scheduler, set the task's "Security Options" to run as IIS APPPOOL\YourAppPoolName. Then, right-click the task folder > Properties > Security tab, and add the same identity with Read/Execute permissions. Also, ensure it has "Log on as a batch job" rights in Local Security Policy. This will allow your ASP.NET Core app to interact with the task without a custom account.
    For more information, you can visit the website

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.