This article was previously published under Q155075
You may receive the following warning message when you try to end a processwith Task Manager:
The operation could not be completed. Access is denied.
Stopping a process is done with a call to TerminateProcess (Win32 API). Bydefault, it is not possible to kill a process that is running under asecurity context different than the one of the process who issued the callto TerminateProcess.
To work around this problem, use the KILL command line utility (availablewith the Windows Resource Kit) to stop processes that do not rununder the security context of the logged on user.
It is possible to end any process even though it is a service or a systemprocess by previously enabling the debug privilege. This privilege isassigned to Administrators and is disabled in the access token. While TaskManager does not make use of the debug privilege, the KILLutility does.
You may assign this privilege to users other than Administrators with User Manager. To assign this privilege do the following:
On the Policies menu, click User Rights.
Select Show Advanced User Rights.
In the Right box, click Debug Programs, and then click Add to add users.
In Windows 2000 the process is slightly different. You may assign the debug privilege to non-Administrator users use the following steps:
Open the Group Policy snap-in, choose the Local Policy in this case and User Rights Assignment.
In the right pane, double-click Debug Programs.
Click the Add to add other users.
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base: