Force-Close a Frozen Program with taskkill
End an unresponsive application from Command Prompt using taskkill by image name or PID.
01Command
$ taskkill /IM notepad.exe /F :: or by process id: taskkill /PID 12345 /F02What it does
When Task Manager itself struggles or you prefer the command line, taskkill ends processes directly. /IM targets the executable name and /PID targets a specific process id; /F forces termination instead of politely asking the window to close. Find the exact image name or PID with Task Manager's Details tab or `tasklist`.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- taskkillEvidence: Reference lists /IM, /PID and /F (forceful termination) flags for ending one or more tasks or processes.
- TaskKill — Kill processes from the command lineEvidence: Shows TASKKILL /IM image name usage and the /F force flag.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
Register a recurring Windows task entirely from the command line — ideal for scripts, cleanup jobs, and monitoring probes you want to run unattended.
Use the System File Checker to verify every protected Windows system file against known-good copies and automatically replace the damaged ones.
Use Windows Package Manager to install, search, and upgrade thousands of applications from the community repository in one command.