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

# Invoke-PSUWorkflow

Invoke-PSUWorkflow esegue un flusso di lavoro configurato di PowerShell Universal per nome, ID o oggetto flusso di lavoro.

## SINOSSI

Esegue un flusso di lavoro in PowerShell Universal.

## SINTASSI

```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>]`. Qui `-Credential` è una variabile di credenziale PSU per l'esecuzione del flusso di lavoro, non le credenziali Basic dell'API di gestione.

## DESCRIZIONE

Esegue un flusso di lavoro configurato selezionato per nome, ID o oggetto flusso di lavoro (accetta l'input della pipeline). Fornisca gli input dichiarati del flusso di lavoro tramite `-Parameters`: i nomi sconosciuti generano un errore. Sostituisca l'ambiente di esecuzione o la coda e, facoltativamente, attenda il completamento. Con `-Wait`, il cmdlet delega a `Wait-PSUJob`; in caso contrario, restituisce il job creato.

## ESEMPI

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

## PARAMETRI

| Parametro                | Descrizione                                                                                                               |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------- |
| `-Name`                  | Nome del flusso di lavoro obbligatorio nel set di parametri predefinito; senza distinzione tra maiuscole e minuscole.     |
| `-Id`                    | ID numerico del flusso di lavoro obbligatorio nel set di parametri Id.                                                    |
| `-Workflow`              | Oggetto flusso di lavoro; accetta l'input della pipeline.                                                                 |
| `-Parameters`            | Hashtable dei valori di input dichiarati del flusso di lavoro; i nomi di parametro sconosciuti non riescono.              |
| `-Environment`           | Sostituzione dell'ambiente di esecuzione (alias `-PowerShellVersion`).                                                    |
| `-Queue`                 | Coda di esecuzione o gruppo di computer (alias `-ComputerGroup`).                                                         |
| `-Wait`                  | Attende il completamento del job del flusso di lavoro.                                                                    |
| `-WaitTimeout`           | Timeout in secondi usato durante l'attesa; un valore omesso o zero lascia l'attesa senza questa sostituzione del timeout. |
| `-WaitForDebugger`       | Attende il collegamento di un debugger prima dell'esecuzione.                                                             |
| `-Notes`                 | Note associate al job del flusso di lavoro.                                                                               |
| `-Credential`            | Variabile di credenziale PSU usata per l'esecuzione.                                                                      |
| `-Tags`                  | Tag associati al job.                                                                                                     |
| `-Silent`                | Elimina l'output dell'operazione di attesa.                                                                               |
| `-ComputerName`          | URL o nome host dell'API di gestione PSU (alias `-Uri`).                                                                  |
| `-AppToken`              | Token dell'app dell'API di gestione.                                                                                      |
| `-UseDefaultCredentials` | Usa le credenziali Windows correnti.                                                                                      |
| `-Integrated`            | Usa il client di gestione nel processo.                                                                                   |
| `-TrustCertificate`      | Ignora gli errori di convalida del certificato.                                                                           |
| `-Cookies`               | Riutilizza i cookie di autenticazione della sessione.                                                                     |

## LINK CORRELATI

[Get-PSUWorkflow](/powershell-universal/it/comandi-powershell/get-psuworkflow.md)

## AUTORIZZAZIONI

Il token di accesso richiede `automation.workflows/execute` per eseguire questo cmdlet in remoto. Recuperare prima un flusso di lavoro con `Get-PSUWorkflow` richiede anche `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/it/comandi-powershell/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.
