Why cant i kill the task remotly? [solved]

Censored4456 21 Reputation points
2022-11-21T17:14:39.31+00:00

I want to write a .bat Script, where i want to kill a task remotly from my pc on my windows server 2022.

When i try the command "taskkill /u Administrator /p mypassword /s 192.168.178.226 /im Cluster_Manager.exe /f /t"

it says:

Error: The process with pid 4664 (child process of pid 2384) could not be terminated. Cause: internal error

I have no idea what it could be...

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,124 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 31,571 Reputation points
    2022-11-22T13:16:49.737+00:00

    Try using psexec. https://learn.microsoft.com/en-us/sysinternals/downloads/psexec

    psexec \\192.168.178.226  -u Administrator -p mypassword -s taskkill.exe  /im Cluster_Manager.exe /f /t  
    

    The -s switch says to run the remote process as the system account. If that doesn't work, then you have something else going on.


1 additional answer

Sort by: Most helpful
  1. Rich Matheisen 44,776 Reputation points
    2022-11-21T22:35:42.56+00:00

    Not really anything to do with PowerShell, is it?

    Try using TSKILL instead.

    A process may refuse to die for many reasons. Unterminated I/Os, bad drivers, etc.