Wednesday, January 26, 2011

How to force Kill process in Vista?

Ok, I've tried in the task manager - it didn't worked. Then I've tried in command line by:

taskkill /im name.exe /F

And it says (it's a translation from polish, so it's not exact):

ERROR: can't end process "name.exe" with PID 6788.
Cause: Access denied.

Anybody encountered this? Any solution other then reboot?

  • Use Win32 api, after having set rights on pid.

  • First, ensure you are running taskkill as an elevated administrator.

    Then try Process Explorer from the Sysinternals Suite: http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx

    Finally, if a debugger is attached to the process, you may not be able to kill it and will need to log off the user session that the process is running under or even restart the machine.

  • For a foolproof solution, just use pskill from Sysinternals (now owned by Microsoft)

    Assuming you have the privileges pskill will kill any process. I've had processes that TASKKILL and various other methods wouldn't be able to terminate whereas pskill will. (This was for an installation routine, where I needed to kill the process to replace the executable)

    From sascha
  • I tried all suggestions here and other places and just this one works for me in a similar case:
    Advanced Process Termination:
    http://www.softpedia.com/get/System/Launchers-Shutdown-Tools/Advanced-Process-Termination.shtml
    APT suggests 18 different ways to kill a process and has a user interface.
    17th way worked for me.

    From donamir

0 comments:

Post a Comment