> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/de/powershell-befehle/send-psuevent.md).

# Send-PSUEvent

Send-PSUEvent sendet Ereignisdaten oder Remotebefehle an eine Event-Hub-Verbindung oder an eine verbundene Computersitzung.

## SYNOPSIS

Sendet Daten oder Befehle an einen Event-Hub, einen Computer oder eine Computergruppe.

## SYNTAX

```powershell
Send-PSUEvent -Hub <String> [-ConnectionId <String>] [-Data <Object>] [-Timeout <Int32>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
Send-PSUEvent -Hub <String> [-ConnectionId <String>] [-Command <String>] [-Parameters <Hashtable>] [-Timeout <Int32>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
Send-PSUEvent -Computer <String> [-Data <Object>] [-ScriptBlock <ScriptBlock>] [-Timeout <Int32>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
Send-PSUEvent -Computer <String> [-Command <String>] [-Parameters <Hashtable>] [-Timeout <Int32>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
Send-PSUEvent -ComputerGroup <String> [-Data <Object>] [-ScriptBlock <ScriptBlock>] [-Timeout <Int32>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
Send-PSUEvent -ComputerGroup <String> [-Command <String>] [-Parameters <Hashtable>] [-Timeout <Int32>] [-ComputerName <String>] [-AppToken <String>] [-Credential <PSCredential>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]
```

## BESCHREIBUNG

Sendet serialisierte Daten oder fordert die Ausführung eines Befehls auf verbundenen Agents an. Wählen Sie einen Ereignishub mit `-Hub`, einen Agent mit `-Computer` oder eine Gruppe mit `-ComputerGroup` aus. Verwenden Sie für einen Agent `-ScriptBlock` für einen Skriptaufruf oder `-Command` und `-Parameters` für einen Modulbefehl; diese Optionen gehören zu unterschiedlichen Parametersätzen. `-Timeout` beträgt standardmäßig 30 Sekunden. `Invoke-PSUCommand` ist ein Alias.

## BEISPIELE

```powershell
Send-PSUEvent -Hub 'MyHub' -Data @{ Name = 'Adam' }
Send-PSUEvent -ComputerGroup 'Build agents' -Command 'Get-Process' -Parameters @{ Name = 'pwsh' } -Timeout 30
```

## PARAMETER

| Parameter                | Beschreibung                                                                                                  |
| ------------------------ | ------------------------------------------------------------------------------------------------------------- |
| `-Hub`                   | Name des Ereignishubs; Ereignisdaten gehen an alle Verbindungen, es sei denn, `-ConnectionId` wird angegeben. |
| `-ConnectionId`          | An eine bestimmte Verbindung des Hubs senden.                                                                 |
| `-Computer`              | Zielt auf einen verbundenen Computer.                                                                         |
| `-ComputerGroup`         | Zielt auf eine verbundene Computergruppe.                                                                     |
| `-Data`                  | Objekt, das serialisiert und an einen Hub oder Computer gesendet wird.                                        |
| `-ScriptBlock`           | Skript, das auf einem Computer oder einer Computergruppe ausgeführt wird.                                     |
| `-Command`               | Modulbefehl, der auf einem Computer, einer Gruppe oder einem Hub ausgeführt wird.                             |
| `-Parameters`            | Hashtable der Parameter, die an `-Command` übergeben werden.                                                  |
| `-Timeout`               | Wartezeit auf das Ergebnis in Sekunden; der Standardwert ist 30.                                              |
| `-ComputerName`          | PSU-Server-URL für eine remote Verwaltungsverbindung; Alias: `-Uri`.                                          |
| `-AppToken`              | App-Token für eine remote Verwaltungsverbindung.                                                              |
| `-Credential`            | Anmeldeinformationen für die Verwaltungs-API.                                                                 |
| `-UseDefaultCredentials` | Verwenden Sie die aktuellen Windows-Anmeldeinformationen für die Verwaltungsverbindung.                       |
| `-Integrated`            | Verwenden Sie den prozessinternen PSU-Verwaltungsclient, wenn das Cmdlet innerhalb von PSU ausgeführt wird.   |
| `-TrustCertificate`      | Eine Remoteverbindung mit einem nicht vertrauenswürdigen TLS-Zertifikat zulassen.                             |
| `-Cookies`               | Authentifizierungscookies in dieser PowerShell-Sitzung wiederverwenden und beibehalten.                       |

## BERECHTIGUNGEN

Das Zugriffstoken erfordert `apis.eventhubs/execute`, um dieses Cmdlet remote auszuführen. Das gilt auch, wenn der Befehl einen Computer oder eine Computergruppe als Ziel hat.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/powershell-universal/de/powershell-befehle/send-psuevent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
