Score:0

Why cant i kill the task remotly through my .bat Script? [solved]

nr flag

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

Firewall is already disabled.

I have no idea what it could be...

[Edit]

I used the PSExec tool form "https://learn.microsoft.com/en-us/sysinternals/downloads/psexec". The tool solved the problem for me.

Prem avatar
cn flag
We have to Debug your Issue : (1) Directly try this command on the server itself , to check what it shows. (2) Try tasklist in the command to check the output. (3) Try terminating some other Process eg notepad , to check the output. You can include all that Debug Data in your Post , which will enable troubleshooting your Issue further !
Censored4452 avatar
nr flag
Thank you for your comment. I already got the solution for my problem. I used the PSExec tool form "https://learn.microsoft.com/en-us/sysinternals/downloads/psexec". That helped for me :)
in flag
Great that you were able to solve your problem, but please don't edit the solution into your question. This way the question stays in the system forever as "unsolved". Instead, post your solution as an answer and accept it. You will even get some reputation for it.
Prem avatar
cn flag
I think the Solution is a Workaround or a Co-incidence , we will not know why the Original Command did not work. Oh Well , OP has got a Working Alternative , hence no way to figure out the Original Issue now. @GeraldSchneider
Score:0
nr flag

I already got the solution for my problem. I used the PSExec tool form "learn.microsoft.com/en-us/sysinternals/downloads/psexec". That helped for me :)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.