How to prevent a user from running Task Scheduler in Windows

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Support for Windows Server 2003 ended on July 14, 2015

Microsoft ended support for Windows Server 2003 on July 14, 2015. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

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
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 "Prevent users from adding new tasks or deleting tasks in Task Scheduler by modifying registry settings" section of this article.
  1. Log on as Administrator to the computer where you want to modify the Local Policy settings.
  2. Click Start, and then click Run.
  3. In the Open box, type gpedit.msc , and then click OK.
  4. In the left pane of the console, expand the Computer configuration node.
  5. Expand Administrative Templates, and then expand Windows Components.
  6. Click Task Scheduler.
  7. In the Task Scheduler pane, do the following:
    1. Double-click Prevent Task Run or End.
    2. Click Enabled, and then click OK.
    3. Double-click Prohibit New task Creation.
    4. Click Enabled, and then click OK.
    5. Double-click Prohibit Task deletion.
    6. Click Enabled, and then click OK.
    7. Double-click Prohibit Drag-and-Drop.
    8. Click Enabled, and then click OK.
  8. On the File menu of the Group Policy snap-in, click Exit.
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.
  1. Log on as Administrator to the computer where you want to modify the registry settings.
  2. Click Start, and then click Run.
  3. In the Open box, type regedit, and then click OK.
  4. In Registry Editor, locate the following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Task Scheduler5.0
  5. In the details pane, follow these steps:
    1. Right-click DragAndDrop, and then click Modify.
    2. In the Edit DWORD Value dialog box, type 1, and then click OK.
    3. Right-click Execution, and then click Modify.
    4. In the Edit DWORD Value dialog box, type 1, and then click OK.
    5. Right-click Task Creation, and then click Modify.
    6. In the Edit DWORD Value dialog box, type 1, and then click OK.
    7. Right-click Task Deletion, and then click Modify.
    8. In the Edit DWORD Value dialog box, type 1, and then click OK.
  6. On the File menu of Registry Editor, click Exit.
back to the top
Properties

Article ID: 305612 - Last Review: 02/23/2004 17:46:28 - Revision: 3.2

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

  • kbenv kbhowtomaster KB305612
Feedback