Question

Difficulty: MediumMicrosoft Command-Line Tools

A system administrator is troubleshooting a Windows 11 workstation where a background service executable named analytics_service.exe has stopped responding and is causing severe system instability. The administrator opens an elevated Command Prompt and needs to forcefully terminate the process by specifying its executable name. Which of the following commands should the administrator run to accomplish this task?

  1. taskkill /f /im analytics_service.exeAnswer
  2. B
    taskkill /f /pid analytics_service.exe
  3. C
    kill -force analytics_service.exe
  4. D
    tasklist /f /im analytics_service.exe

Answer

The command taskkill /f /im analytics_service.exe forcefully terminates the specified executable by image name.
The command taskkill /f /im analytics_service.exe correctly uses the taskkill utility with the /f switch to forcefully close the process and the /im switch to identify the process by its image name.

Step-by-Step Solution

1
Identify the target command-line utility for ending running processes in Windows.
The utility taskkill is used in Command Prompt to terminate active tasks.
Windows Command Prompt uses taskkill for process termination.
2
Select the appropriate switches for forced termination using an image filename.
The /f flag forces process termination, and /im specifies the image name (analytics_service.exe).
The scenario requires ending the process using its image name rather than a numeric PID.

Key Concept

Terminating processes via command-line using taskkill flags
Rate this question