Which WMIC command kills a running process by PID?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which WMIC command kills a running process by PID?

Explanation:
Killing a running Windows process by PID with WMIC relies on targeting the specific process using the processid property and then invoking delete to terminate that instance. The process class represents an active process, and the delete method ends it. Filtering by processid ensures you affect exactly the intended process; using a name could hit multiple instances if more than one process shares that name. A command that simply lists processes does not terminate anything, and using the service class targets services rather than processes, so it wouldn’t reliably kill a process by PID.

Killing a running Windows process by PID with WMIC relies on targeting the specific process using the processid property and then invoking delete to terminate that instance. The process class represents an active process, and the delete method ends it. Filtering by processid ensures you affect exactly the intended process; using a name could hit multiple instances if more than one process shares that name. A command that simply lists processes does not terminate anything, and using the service class targets services rather than processes, so it wouldn’t reliably kill a process by PID.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy