Kill other users process in Task Manager "Access Denied" Server 2019

JoeyJoeyJoeJoe 21 Reputation points
2020-12-02T23:42:17.57+00:00

I need the ability to kill processes of other users on my RDS server. When I try this I receive the error message "Access denied" which implies I don't have the rights. I can kill my own processes but not other users. I have tried this both as domain administrator and local administrator and receive the same error. I can disconnect and sign off other users but I can't kill individual processes. I have also tried this using the command line taskkill command, same error. Any ideas would be appreciated.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,799 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,604 questions
0 comments No comments
{count} votes

Accepted answer
  1. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,756 Reputation points Microsoft Vendor
    2020-12-11T06:19:24.657+00:00

    Hi,

    Yes, my u1 is a standard domain user without domain administrator privileges.

    Does the issue occurs on all processes? Could the domain admin kill processes like notepad, calculate of the standard users?

    Please use domain admin account to locally log onto the server and then run command prompt as administrator.
    Input command"taskkill /f /PID processID" to try again.
    47197-image.png
    47198-image.png
    If this still does not work, you can run "gpresult /h gpresult.htm" to export the group policy and check if any security policy was set to limit the domain account's permission.

    Or if no special policy, you might need to capture some dumps or traces to further investigate the issue, which I suggest to contact Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.

    You may find phone number for your region accordingly from the link below:
    Global Customer Service phone numbers
    https://support.microsoft.com/en-us/help/4051701/global-customer-service-phone-numbers

    Thanks,
    Eleven

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,756 Reputation points Microsoft Vendor
    2020-12-03T06:33:39.68+00:00

    Hi,

    Please use command to kill the individual process. In my test lab, it succeeded.

    1. Use domain administrator to run CMD, and input "tasklist /s servername" to list all the processes running on the RDS server.
      https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/tasklist
    2. Then type "taskkill /s servername /PID processID" to kill the specific process
      https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill

    Thanks,
    Eleven

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    0 comments No comments

  2. JoeyJoeyJoeJoe 21 Reputation points
    2020-12-03T15:53:36.123+00:00

    Thank you for your reply but as I stated in my question I have already tried this method. I have tried using the servername, IP address, my own login that has administrator privileges, domain admin and also local built in administrator credentials. I have tried using the process name and the process ID.

    Again, these all work for processes that I start but I cannot kill processes of other users.

    0 comments No comments

  3. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,756 Reputation points Microsoft Vendor
    2020-12-04T08:39:38.89+00:00

    Hi,

    Thanks for your explanation. Since in my test lab, I can successfully terminated a user's process with the command or even in the task manager with domain administrator account, there might be some permission issue on your domain administrator account.

    Can you please create a new domain administrator account to have a try again?

    Thanks,
    Eleven

    0 comments No comments

  4. JoeyJoeyJoeJoe 21 Reputation points
    2020-12-07T22:47:58.713+00:00

    Okay I created another domain admin and still the same issue. Keep in mind this is on my Remote Desktop Server, not sure if your test included that. Here is the exact error message.

    45903-screenshot-2020-12-07-154610.png

    One other thing to note... When I am logged in as my new domain admin test user I can kill my own processes and also the normal domain admin processes... but I can't kill the processes of non-admins.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.