Cannot End Service Processes with Task Manager

Last reviewed: October 29, 1997
Article ID: Q155075
The information in this article applies to:
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SYMPTOMS

You may receive the following warning message when you try to end a process with Task Manager:

   The operation could not be completed. Access is denied.

CAUSE

Killing a process is done with a call to TerminateProcess (Win32 API). By default, it is not possible to kill a process that is running under a security context different than the one of the process who issued the call to TerminateProcess.

RESOLUTION

To work around this problem, use the KILL command line utility (available with the Windows NT 4.0 Resource Kit) to kill processes that do not run under the security context of the logged on user.

MORE INFORMATION

It is possible to kill any process even though it is a service or a system process by previously enabling the debug privilege. This privilege is assigned to Administrators and is disabled in the access token. Task Manager does not make any use of the debug privilege unlike the KILL utility.

You may assign this privilege to other users with User Manager. To do so:

  1. On the Policies menu, click User Rights.

  2. Click Show Advanced User Rights so that it is selected.

  3. In the Right box, click Debug Programs, and then click Add to add users.


Additional query words: 4.00
Keywords : NTSrvWkst ntutil kbtool
Version : WinNT:4.0
Platform : winnt


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: October 29, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.