PsKill.exe / PsKill64.exe (SysInternals)

Kill processes by name or process ID.

      PsKILL [- ] [-t] [\\computer [-u user] [-p passwd]] process_name | process_id


   computer   The computer on which the process is running. Default=local system 

   -p passwd  Specify a password for user (optional). Passed as clear text.
              If omitted, you will be prompted to enter a hidden password.

   -u user    Specify a user name for login to remote computer(optional).

   -t         Kill the process and its descendants.

              The process or processes to be killed.

   -accepteula Suppress the display of the license dialog.

   -          Help, display the supported options.

To kill a process on a remote system requires administrative privileges on the remote system.

When installing pskill.exe just ensure it is placed somewhere in either the system PATH or in the current directory.

When launched for the first time, PsKill will prompt you to accept the EULA.
You can avoid this by writing the license registry key:

Set-ItemProperty -Path 'Registry::HKEY_CURRENT_USER\Software\Sysinternals' -Name 'EulaAccepted' -Value 1


Kill all instances of notepad.exe running on \\workstation64:

C:\> pskill.exe \\workstation64 notepad.exe

“Never trust a man who, when left alone with a tea cosy, doesn’t try it on” ~ Billy Connolly

Related commands

TSKILL - Kill process on a Terminal Server.
TASKKILL - End a running process.
ProcDump - Monitor an application for CPU spikes.
PsList - List detailed information about processes.
The process button of Task Manager in Windows will also identify the process ID (PID.)
PsSuspend - Suspend processes, so they can be continued at a later point in time.
Equivalent PowerShell: Stop-Process - Stop a running process. (kill).
Equivalent bash command (Linux): kill - Stop a process from running.

Copyright © 1999-2024
Some rights reserved