# stop

`process::stop` terminates a process by using the [NtTerminateProcess](https://www.geoffchappell.com/studies/windows/win32/ntdll/api/native.htm) Windows Native API function. The Win32 API equal one is [TerminateProcess](https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-terminateprocess). It has the following command line arguments:

* positional argument: the name of the process to stop
* `/pid`: the PID of the process

In the following example, the `/pid` of `notepad.exe` is `6500`*.*

```
C:\WINDOWS\system32>tasklist /v | findstr notepad
notepad.exe                   6500 RDP-Tcp#4                  4     15,388 K Running         hacklab\m3g9tr0n                                        0:00:00 Untitled - Notepad
```

```
mimikatz # process::stop notepad /pid:6500
NtTerminateProcess of 6500 PID : OK !
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://tools.thehacker.recipes/mimikatz/modules/process/stop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
