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
How to invoke taskscheduler from IIS Hosted - .Net core app running under AppPool
Selvam M
0
Reputation points
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
1,269 questions
1 answer
Sort by: Most helpful
-
Max Jaxon 0 Reputation points
2025-05-14T15:27:31.27+00:00