# CMD Execute Action

The **CMD Execute Action** node can be used to run simple Windows command-line commands such as `hostname`, `uptime`, `start`, and similar commands.

This node can only be executed on a Windows client operating system within a client stream. Executing it in a server stream or on a different client OS will return the following message:\
`Invalid operating system — Windows required`.

{% hint style="info" %}
Complex or concatenated commands should be avoided. If more advanced execution is required, it is strongly recommended to create a batch file in advance and execute that file using this node.
{% endhint %}

The result of the node can be retrieved either via the [{stream.last\_result}](/helmut4-releases/helmut4-components/streamdesigner/wildcards/result-or-return-wildcards-2/stream-last_result.md) wildcard or directly through [{node.result.?}](/helmut4-releases/helmut4-components/streamdesigner/wildcards/result-or-return-wildcards-2/node-result.md).

When the **Async** option is enabled, no result is returned because the command runs in the background while the following node(s) are already being processed.

<figure><img src="/files/2gFnHkeoPoKh0rmxdNN9" alt="" width="350"><figcaption><p>CMD Execute Action</p></figcaption></figure>


---

# 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://docs.helmut.de/helmut4-releases/helmut4-components/streamdesigner/nodes/actions/misc-21/os-3/cmd-execute-action.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.
