在Windows Task Scheduler中创建/修改任务所需的权限 [英] Permissions required to create/modify tasks in Windows Task Scheduler

查看:530
本文介绍了在Windows Task Scheduler中创建/修改任务所需的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从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中创建/修改任务所需的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆