2018-01-23 11:44:48 +00:00
|
|
|
# taskkill
|
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
> Terminate a process by its process ID or name.
|
2020-09-16 13:19:57 +01:00
|
|
|
> More information: <https://docs.microsoft.com/windows-server/administration/windows-commands/taskkill>.
|
2018-01-23 11:44:48 +00:00
|
|
|
|
2021-08-15 18:59:09 +01:00
|
|
|
- Terminate a process by its ID:
|
2018-01-23 11:44:48 +00:00
|
|
|
|
|
|
|
`taskkill /pid {{process_id}}`
|
|
|
|
|
|
|
|
- Terminate a process by its name:
|
|
|
|
|
|
|
|
`taskkill /im {{process_name}}`
|
|
|
|
|
|
|
|
- Forcefully terminate a specified process:
|
|
|
|
|
|
|
|
`taskkill /pid {{process_id}} /f`
|
|
|
|
|
|
|
|
- Terminate a process and its child processes:
|
|
|
|
|
|
|
|
`taskkill /im {{process_name}} /t`
|
|
|
|
|
|
|
|
- Terminate a process on a remote machine:
|
|
|
|
|
|
|
|
`taskkill /pid {{process_id}} /s {{remote_name}}`
|
|
|
|
|
|
|
|
- Display information about the usage of the command:
|
|
|
|
|
|
|
|
`taskkill /?`
|