Find a Running Process and Its PID with tasklist

Check if a program is running and get its process ID using tasklist with findstr or the /FI filter.

WindowsProcessessystemcmdLow risk
Run `tasklist | findstr /i chrome` to see every matching process and its PID, or use `tasklist /FI "IMAGENAME eq chrome.exe"` to filter directly.

01Command

Command
$ tasklist | findstr /i chrome    ::  or filtered directly:  tasklist /FI "IMAGENAME eq chrome.exe"

02What it does

tasklist prints every running process with its image name, PID, session and memory use. Piping it through findstr quickly narrows a long list, while the /FI filter does the same without a second command. Once you have the PID you can pass it to taskkill, Stop-Process or other tools.

03Risk

RiskLow risk
!Warning: The image name is the executable name (e.g. chrome.exe), not the window title — a program can also run several copies with different PIDs.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • tasklist
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Syntax shows the /fi <filter> parameter (repeatable) for filtering tasks, e.g. by IMAGENAME, and that output includes the PID column.
  • TaskList — List processes running on the machine
    SS64 · technical · 2026-09-17
    Evidence: Documents the /FI filter option with the 'IMAGENAME eq name' filter string and shows the PID column in the default table output.

Last verified: 2026-09-19 · Category: System & Settings

06Related solutions