Soru

Zorluk: OrtaMicrosoft Command-Line Tools

A system administrator is troubleshooting a frozen proprietary application process named finance_app.exe on a Windows workstation. The administrator must first identify the Process Identifier (PID) associated with finance_app.exe and then forcibly terminate both the main process and all of its associated child processes using the Command Prompt. Which of the following commands will successfully accomplish these actions? (Select TWO.)

  1. tasklist /fi "imagename eq finance_app.exe"Cevap
  2. taskkill /im finance_app.exe /f /tCevap
  3. C
    kill -9 finance_app.exe
  4. D
    taskkill /pid 4321 /r /p

Cevap

The administrator must run 'tasklist /fi "imagename eq finance_app.exe"' to filter and retrieve the PID for finance_app.exe, and 'taskkill /im finance_app.exe /f /t' to forcibly terminate the specified executable along with all of its child processes.
The tasklist utility with the /fi filter allows a technician to search for running processes by criteria such as image name to discover their process ID (PID). To forcibly stop a hung application along with any dependent processes it launched, taskkill requires the /f (force) switch and the /t (tree) switch combined with either the /im (image name) or /pid (process ID) parameter.

Adım Adım Çözüm

1
Locate the PID for the frozen process.
Running 'tasklist /fi "imagename eq finance_app.exe"' returns the running task matching the specified image name and displays its corresponding PID.
Filtering tasks by image name prevents having to manually search through a lengthy list of active system processes.
2
Terminate the target process and its child processes forcibly.
Executing 'taskkill /im finance_app.exe /f /t' sends a force signal (/f) to terminate the specified image name (/im) and includes all spawned sub-processes (/t).
Standard termination requests may fail when an application is frozen or unresponsive, requiring forced tree termination.

Anahtar Kavram

Windows Process Management CLI Utilities (tasklist and taskkill)
Bu soruyu puanla