> For the complete documentation index, see [llms.txt](https://tools.thehacker.recipes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tools.thehacker.recipes/mimikatz/modules/misc/lock.md). Agents can also search and read this documentation through its [MCP server](https://tools.thehacker.recipes/~gitbook/mcp).

# lock

`misc::lock` locks the screen. It can come in handy with [`misc::memssp`](https://tools.thehacker.recipes/mimikatz/modules/misc/memssp.md). It has the following command line argument:

* `/process`: Default one is **explorer.exe**

```
mimikatz # misc::lock
```
