snippetbashTip
taskkill — Terminate a process by its process ID or name. More information: <https://learn.microsoft.com/window
Viewed 0 times
commandterminatetaskkillprocessitsnamecli
windows
Problem
How to use the
taskkill command: Terminate a process by its process ID or name. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/taskkill>.Solution
taskkill — Terminate a process by its process ID or name. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/taskkill>.Terminate a process by its ID:
taskkill /pid {{process_id}}Terminate a process by its name:
taskkill /im {{process_name}}Forcefully terminate a specified process:
taskkill /pid {{process_id}} /fTerminate a process and its child processes:
taskkill /im {{process_name}} /tTerminate a process on a remote machine:
taskkill /pid {{process_id}} /s {{remote_name}}Display information about the usage of the command:
taskkill /?Code Snippets
Terminate a process by its ID
taskkill /pid {{process_id}}Terminate a process by its name
taskkill /im {{process_name}}Forcefully terminate a specified process
taskkill /pid {{process_id}} /fTerminate a process and its child processes
taskkill /im {{process_name}} /tTerminate a process on a remote machine
taskkill /pid {{process_id}} /s {{remote_name}}Context
tldr-pages: windows/taskkill
Revisions (0)
No revisions yet.