> For the complete documentation index, see [llms.txt](https://www.netexec.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.netexec.wiki/rdp-protocol/command-execution.md).

# Command Execution

{% hint style="info" %}
This functionality is still in beta testing and was added in 2025
{% endhint %}

```
netexec rdp ip -u user -p password -x whoami
```

You can also add the flag `--cmd-delay` and `--clipboard-delay` to increase the time if the target is very slow:

<figure><img src="https://361548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb0qbsNvsXjRTsQcNipGM%2Fuploads%2Fgit-blob-c205517a8ed6357d4874330bd9f940fc794526a3%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
The use of -x option will disconnect the target user if connected (like a lock), not logoff therefore no work is lost and no application is closed.
{% endhint %}
