There may be occasions you want to prevent a user from to running a Task Scheduler before the intended date and time, or there may be occasions when an administrator does not want a user to add new scheduled tasks to the computer. Use the following procedures to gain more control over what you can do with Task Scheduler.
Prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying local policy settings
Note The following procedure only applies to Windows XP Professional, Windows Server 2000, or Windows Server 2003. To do this in Windows XP Home edition, see the "Prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying registry settings" section of this article.
- Log on as Administrator to the computer where you want to modify the Local Policy settings.
- Click Start, and then click Run.
- In the Open box, type gpedit.msc , and then click OK.
- In the left pane of the console, expand the Computer configuration node.
- Expand Administrative Templates, and then expand Windows Components.
- Click Task Scheduler.
- In the Task Scheduler pane, do the following:
- Double-click Prevent Task Run or End.
- Click Enabled, and then click OK.
- Double-click Prohibit New task Creation.
- Click Enabled, and then click OK.
- Double-click Prohibit Task deletion.
- Click Enabled, and then click OK.
- Double-click Prohibit Drag-and-Drop.
- Click Enabled, and then click OK.
- On the File menu of the Group Policy snap-in, click Exit.
How to prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying local policy settings
Warning If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
- Log on as Administrator to the computer where you want to modify the registry settings.
- Click Start, and then click Run.
- In the Open box, type regedit, and then click OK.
- In Registry Editor, locate the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Task Scheduler5.0
- In the details pane, follow these steps:
- Right-click DragAndDrop, and then click Modify.
- In the Edit DWORD Value dialog box, type 1, and then click OK.
- Right-click Execution, and then click Modify.
- In the Edit DWORD Value dialog box, type 1, and then click OK.
- Right-click Task Creation, and then click Modify.
- In the Edit DWORD Value dialog box, type 1, and then click OK.
- Right-click Task Deletion, and then click Modify.
- In the Edit DWORD Value dialog box, type 1, and then click OK.
- On the File menu of Registry Editor, click Exit.