> 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/new-psudashboard.md).

# New-PSUDashboard

New-PSUDashboard crea una nuova app in PowerShell Universal a partire da un percorso di file, dal contenuto di uno script o da un modulo, utilizzando il nome legacy del cmdlet dashboard.

## SINOSSI

Crea una nuova app in PowerShell Universal.

## SINTASSI

```powershell
New-PSUDashboard -Name <String> [-FilePath <String>] [<AppOptions>] [<ConnectionOptions>] [<CommonParameters>]
New-PSUDashboard -Name <String> -Content <ScriptBlock> [<AppOptions>] [<ConnectionOptions>] [<CommonParameters>]
New-PSUDashboard -Name <String> [-Module <String>] [-Command <String>] [<AppOptions>] [<ConnectionOptions>] [<CommonParameters>]
```

`<AppOptions>`: `[-BaseUrl <String>] [-Environment <String>] [-GrantAppToken] [-Maintenance] [-Authenticated] [-Role <String[]>] [-DisableAutoStart] [-Component <DashboardComponent[]>] [-SessionTimeout <Int32>] [-IdleTimeout <Int32>] [-AutoDeploy] [-Description <String>] [-Credential <String>] [-DisableErrorToast] [-DisableStartupLog] [-VerboseErrorMessages] [-Tag <Tag[]>] [-DisableInteractiveHost] [-FavIcon <String>] [-OnSessionTimeout <ScriptBlock>] [-ComputerGroup <String[]>] [-AvailableInBranch <String[]>] [-Critical]`.

`<ConnectionOptions>`: `[-ComputerName <String>] [-AppToken <String>] [-UseDefaultCredentials] [-Integrated] [-TrustCertificate] [-Cookies]`. Qui `-Credential` è il nome della credenziale di esecuzione dell'app, non le credenziali Basic dell'API di gestione.

## DESCRIZIONE

Questo nome di cmdlet legacy è un alias di `New-PSUApp`. Crei l'app da un file del repository, da contenuto inline o da un comando di modulo. `-FilePath` è facoltativo nel set di parametri predefinito. `-Component` è mantenuto per compatibilità, ma non è usato. `-Critical` fa sì che un errore di avvio dell'app porti l'endpoint `/api/v1/status` a restituire 500.

## ESEMPI

```powershell
New-PSUDashboard -Name 'App' -BaseUrl '/app' -FilePath 'app.ps1'
```

Crea un'app usando il file `app.ps1` del repository e la pubblica in `/app`.

## PARAMETRI

| Parametro                 | Descrizione                                                                                |
| ------------------------- | ------------------------------------------------------------------------------------------ |
| `-Name`                   | Nome dell'app obbligatorio.                                                                |
| `-FilePath`               | Percorso dello script dell'app nel repository.                                             |
| `-Content`                | Blocco di script inline dell'app (obbligatorio nel set di parametri Content).              |
| `-Module`                 | Modulo che contiene il comando di definizione dell'app.                                    |
| `-Command`                | Comando di modulo usato per definire l'app.                                                |
| `-BaseUrl`                | Percorso URL dell'app (ad esempio `/app`); il valore predefinito è `/`.                    |
| `-Environment`            | Ambiente di esecuzione dell'app.                                                           |
| `-GrantAppToken`          | Concede agli utenti dell'app un token dell'app per accedere a PSU come se stessi.          |
| `-Maintenance`            | Abilita la modalità di manutenzione.                                                       |
| `-Authenticated`          | Richiede l'autenticazione per l'app.                                                       |
| `-Role`                   | Ruoli autorizzati ad accedere all'app.                                                     |
| `-DisableAutoStart`       | Disabilita l'avvio insieme al server.                                                      |
| `-Component`              | Opzione di compatibilità con le versioni precedenti; non usata.                            |
| `-SessionTimeout`         | Timeout di sessione dell'app.                                                              |
| `-IdleTimeout`            | Timeout di inattività dell'app.                                                            |
| `-AutoDeploy`             | Distribuisce automaticamente le modifiche dell'app.                                        |
| `-Description`            | Descrizione dell'app.                                                                      |
| `-Credential`             | Nome della credenziale di esecuzione dell'app (non l'autenticazione dell'API di gestione). |
| `-DisableErrorToast`      | Elimina le notifiche di errore dell'app.                                                   |
| `-DisableStartupLog`      | Disabilita il registro di avvio dell'app.                                                  |
| `-VerboseErrorMessages`   | Mostra messaggi di errore dettagliati dell'app.                                            |
| `-Tag`                    | Tag applicati all'app.                                                                     |
| `-DisableInteractiveHost` | Disabilita le funzionalità di host interattivo come `Read-Host`.                           |
| `-FavIcon`                | Favicon dell'app.                                                                          |
| `-OnSessionTimeout`       | Blocco di script da eseguire al timeout della sessione.                                    |
| `-ComputerGroup`          | Gruppi di computer assegnati all'app.                                                      |
| `-AvailableInBranch`      | Limita l'app a questi rami.                                                                |
| `-Critical`               | Considera l'errore di avvio dell'app come un errore dell'endpoint di stato.                |
| `-ComputerName`           | URL o nome host del server PSU di destinazione (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.                                      |

## AUTORIZZAZIONI

Il token di accesso richiede `apps/create` per eseguire questo cmdlet in remoto.


---

# 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/new-psudashboard.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.
