Posted On October 6, 2021

Use CMD to Kill All Instances of a Program / Process

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Use CMD to Kill All Instances of a Program / Process

This can be invoked in an un-elevated session. The command is:

taskkill /F /IM <PROGRAM.EXE>

Sample output:

PS C:\WINDOWS\system32> taskkill /F /IM iexplore.exe
SUCCESS: The process "iexplore.exe" with PID 14060 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 41036 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 12836 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 40696 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 26112 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 3272 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 80368 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 52624 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 23604 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 34608 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 37360 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 23164 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 29096 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 59356 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 56920 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 79644 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 58124 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 16884 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 54112 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 75388 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 3092 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 38984 has been terminated.
SUCCESS: The process "iexplore.exe" with PID 76288 has been terminated.

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

VSS Error: Snapshots were found, but they were outside of your allowed context

Error: PS C:\Windows\system32> vssadmin delete shadows /for=c: /allvssadmin 1.1 - Volume Shadow Copy Service administrative…

How To Install Graylog in a Kubernetes Cluster Using Helm Charts

The following narrative is based on the assumption that a Kubernetes (current stable version 20.10)…

Add a Domain Group to Local Administrators Group

$checkGroup="Administrators" $addMember="KIMCONNECT\Desktop Admins" # Dynamic Credential $who = whoami if ($who.substring($who.length-2, 2) -eq "-admin"){$username=$who;} else…