> 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/invoke-psuworkflow.md).

# Invoke-PSUWorkflow

Invoke-PSUWorkflow führt einen konfigurierten PowerShell Universal-Workflow nach Name, ID oder Workflowobjekt aus.

## SYNOPSIS

Führt einen Workflow in PowerShell Universal aus.

## SYNTAX

```powershell
Invoke-PSUWorkflow -Name <String> [-Parameters <Hashtable>] [-Environment <String>] [-Queue <String>] [-Wait] [-WaitTimeout <Int32>] [<ExecutionOptions>] [<ConnectionOptions>]
Invoke-PSUWorkflow -Id <Int64> [-Parameters <Hashtable>] [<ExecutionOptions>] [<ConnectionOptions>]
Invoke-PSUWorkflow -Workflow <Workflow> [-Parameters <Hashtable>] [<ExecutionOptions>] [<ConnectionOptions>]
```

`<ExecutionOptions>`: `[-WaitForDebugger] [-Environment <String>] [-Notes <String>] [-Credential <Variable>] [-Wait] [-Queue <String>] [-WaitTimeout <Int32>] [-Tags <Tag[]>] [-Silent]`. `<ConnectionOptions>`: `[-ComputerName <String>] [-AppToken <String>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies] [<CommonParameters>]`. Hier ist `-Credential` eine PSU-Anmeldeinformationsvariable für die Workflowausführung und nicht die Basic-Anmeldeinformationen der Verwaltungs-API.

## BESCHREIBUNG

Führt einen konfigurierten Workflow aus, der nach Name, ID oder Workflowobjekt ausgewählt wird (akzeptiert Pipelineeingabe). Übergeben Sie deklarierte Workfloweingaben über `-Parameters`: unbekannte Namen führen zu einem Fehler. Überschreiben Sie die Ausführungsumgebung oder die Warteschlange und warten Sie optional auf den Abschluss. Mit `-Wait` delegiert das Cmdlet an `Wait-PSUJob`; andernfalls gibt es den erstellten Job zurück.

## BEISPIELE

```powershell
Invoke-PSUWorkflow -Name 'DailyMaintenance'
Invoke-PSUWorkflow -Name 'Deploy' -Parameters @{ Environment = 'Test' } -Wait
```

## PARAMETER

| Parameter                | Beschreibung                                                                                                                            |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| `-Name`                  | Erforderlicher Workflowname im Standardparametersatz; ohne Berücksichtigung der Groß-/Kleinschreibung.                                  |
| `-Id`                    | Erforderliche numerische Workflow-ID im Parametersatz Id.                                                                               |
| `-Workflow`              | Workflowobjekt; akzeptiert Pipelineeingabe.                                                                                             |
| `-Parameters`            | Hashtable der deklarierten Workfloweingabewerte; unbekannte Parameternamen schlagen fehl.                                               |
| `-Environment`           | Überschreibung der Ausführungsumgebung (Alias `-PowerShellVersion`).                                                                    |
| `-Queue`                 | Ausführungsqueue oder Computergruppe (Alias `-ComputerGroup`).                                                                          |
| `-Wait`                  | Wartet, bis der Workflowjob abgeschlossen ist.                                                                                          |
| `-WaitTimeout`           | Timeout in Sekunden, das beim Warten verwendet wird; ein weggelassener oder Nullwert lässt das Warten ohne diese Timeoutüberschreibung. |
| `-WaitForDebugger`       | Wartet vor der Ausführung auf das Anhängen eines Debuggers.                                                                             |
| `-Notes`                 | Dem Workflowjob zugeordnete Notizen.                                                                                                    |
| `-Credential`            | Für die Ausführung verwendete PSU-Anmeldeinformationsvariable.                                                                          |
| `-Tags`                  | Dem Job zugeordnete Tags.                                                                                                               |
| `-Silent`                | Unterdrückt die Ausgabe des Wartevorgangs.                                                                                              |
| `-ComputerName`          | URL oder Hostname der PSU-Verwaltungs-API (Alias `-Uri`).                                                                               |
| `-AppToken`              | App-Token der Verwaltungs-API.                                                                                                          |
| `-UseDefaultCredentials` | Verwendet die aktuellen Windows-Anmeldeinformationen.                                                                                   |
| `-Integrated`            | Verwendet den prozessinternen Verwaltungsclient.                                                                                        |
| `-TrustCertificate`      | Ignoriert Fehler bei der Zertifikatsvalidierung.                                                                                        |
| `-Cookies`               | Verwendet die Authentifizierungscookies der Sitzung erneut.                                                                             |

## VERWANDTE LINKS

[Get-PSUWorkflow](/powershell-universal/de/powershell-befehle/get-psuworkflow.md)

## BERECHTIGUNGEN

Das Zugriffstoken erfordert `automation.workflows/execute`, um dieses Cmdlet remote auszuführen. Das vorherige Abrufen eines Workflows mit `Get-PSUWorkflow` erfordert außerdem `automation.workflows/read`.


---

# 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/invoke-psuworkflow.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.
