问题描述
我需要从ASP.NET Web应用程序在Windows Server 2003的Windows Task Scheduler中创建和修改任务. Web应用程序在其下运行的网络服务无法进行更改.出现System.UnauthorizedAccessException异常.
I need to create and modify tasks in Windows Task Scheduler on Windows Server 2003 from an ASP.NET web application. The Network Service that the web app runs under is unable to make the changes. It errors with an System.UnauthorizedAccessException exception.
从我的桌面上的Visual Studio中运行可以正常工作.
It works fine running from Visual Studio on my desktop.
授予帐户需要什么权限,以便可以从ASP.NET修改任务?
What permissions do I need to grant an account so that the tasks can be modified from ASP.NET?
推荐答案
该帐户需要对任务"目录具有读/写权限.这是路径:
The account needs to have read/write permissions to the "Tasks" directory. Here's the path:
%SystemRoot%\system32\Tasks\
这篇关于在Windows Task Scheduler中创建/修改任务所需的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!