In some cases, i was able to kill weird process like that using Process Explorer from the Sysinternals suite
https://learn.microsoft.com/en-us/sysinternals/downloads/
But if this is still not working, the only way is to reboot
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a server with Windows Server 2008 R2 and a service process (our custom service) running on it under SYSTEM account. A service has presumably hanged and I wanted to stop it. I tried stopping via Management Console "Services" snap-in, but it didn't help, service process still running, despite in the Management Console it is already marked as not running. Is there a way to kill it from the command line? Note that service runs under the SYSTEM account. I have full administrative privileges on the server.
I have tried pskill from console with elevated privileges (just as pskill PID), but it didn't do the job: it has reported that process killed, but I still see it in the Task Manager.
Taskkill also doesn't help:
C:\>taskkill /f /im myservice.exe
ERROR: The process "myservice.exe" with PID 1268 could not be terminated.
Reason: There is no running instance of the task.
But the process still visible in the Task Manager.
Update:
Powerhell Stop-Process -Name myservice -Force also didn't work.
Any ideas how to really kill the process (except rebooting the server)?
In some cases, i was able to kill weird process like that using Process Explorer from the Sysinternals suite
https://learn.microsoft.com/en-us/sysinternals/downloads/
But if this is still not working, the only way is to reboot
A service has presumably hanged
As far as I know a reboot may be needed here.
--please don't forget to upvote and Accept as answer if the reply is helpful--