# Defeating LAPS

### Using NetExec when LAPS installed on the domain

If LAPS is used inside the domain, is can be hard to use NetExec to execute a command on every computer on the domain.

Therefore, a new core option has been added `--laps`! If you have compromised an accout that can read LAPS password you can use NetExec like this

```bash
nxc winrm <ip> -u user-can-read-laps -p pass --laps
```

{% hint style="info" %}
If the default administrator name is not "administrator" add the user after the option

`--laps name`
{% endhint %}


---

# 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://www.netexec.wiki/winrm-protocol/defeating-laps.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.
