Microsoft KB Archive/305612

= How to prevent a user from running Task Scheduler in Windows =

Article ID: 305612

Article Last Modified on 2/23/2004

-

APPLIES TO


 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows 2000 Server
 * Microsoft Windows XP Professional
 * Microsoft Windows XP Home Edition

-



This article was previously published under Q305612



Important This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows Registry

IN THIS TASK
SUMMARY
 * Prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying local policy settings
 * How to prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying local policy settings



SUMMARY
This step-by-step article describes how to prevent a user from running or stopping Task Scheduler in Windows XP.

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.

back to the top

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 &quot;Prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying registry settings&quot; 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: <ol style="list-style-type: lower-alpha;"> Double-click Prevent Task Run or End.</li> Click Enabled, and then click OK.</li> Double-click Prohibit New task Creation.</li> Click Enabled, and then click OK.</li> Double-click Prohibit Task deletion.</li> Click Enabled, and then click OK.</li> Double-click Prohibit Drag-and-Drop.</li> Click Enabled, and then click OK.</li></ol> </li> On the File menu of the Group Policy snap-in, click Exit.</li></ol>

back to the top

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. <ol> Log on as Administrator to the computer where you want to modify the registry settings.</li> Click Start, and then click Run.</li> In the Open box, type regedit, and then click OK.</li> In Registry Editor, locate the following key:

</li> In the details pane, follow these steps: <ol style="list-style-type: lower-alpha;"> Right-click DragAndDrop, and then click Modify.</li> <li>In the Edit DWORD Value dialog box, type 1, and then click OK.</li> <li>Right-click Execution, and then click Modify.</li> <li>In the Edit DWORD Value dialog box, type 1, and then click OK.</li> <li>Right-click Task Creation, and then click Modify.</li> <li>In the Edit DWORD Value dialog box, type 1, and then click OK.</li> <li>Right-click Task Deletion, and then click Modify.</li> <li>In the Edit DWORD Value dialog box, type 1, and then click OK.</li></ol> </li> <li>On the File menu of Registry Editor, click Exit.</li></ol>

back to the top

Keywords: kbhowtomaster kbenv KB305612

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.