Kill a Process From the Windows Command Line

less than 1 minute read

To terminate a process from the command line of windows, use the taskkill command:

When you know the name of the program to stop:

taskkill /IM notepad.exe

Or when you know the process ID, eg 784:

taskkill /PID 784

For more usage variants, type taskkill /?

Some of this information about what processes are running can be obtained by the tasklist command, e.g. this tells you the Process ID (PID).