> 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-uddashboard.md).

# New-UDDashboard

### Sinossi

Crea una nuova dashboard.

### Sintassi

```powershell
New-UDDashboard [-Title <String>] [-Pages <DashboardPage[]>] [-Theme <Hashtable>] [-Scripts <String[]>] [-Stylesheets <String[]>] [-Logo <String>] [-DefaultTheme <String>] [-DisableThemeToggle] [-HeaderPosition <String>] [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>] [-NavigationLayout <String>] [-Navigation <Hashtable[]>] [-HideUserName] [-HideNavigation] [-LoadNavigation <Endpoint>] [-HeaderContent <Endpoint>] [-PageNotFound <Endpoint>] [-NotAuthorized <Endpoint>] [-SessionTimeoutModal <ScriptBlock>] [-Menu <Endpoint>] [<CommonParameters>]

    New-UDDashboard [-Title <String>] -Content <Endpoint> [-Theme <Hashtable>] [-Scripts <String[]>] [-Stylesheets <String[]>] [-Logo <String>] [-DefaultTheme <String>] [-DisableThemeToggle] [-HeaderPosition <String>] [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>] [-NavigationLayout <String>] [-Navigation <Hashtable[]>] [-HideUserName] [-HideNavigation] [-LoadNavigation <Endpoint>] [-HeaderContent <Endpoint>] [-PageNotFound <Endpoint>] [-NotAuthorized <Endpoint>] [-SessionTimeoutModal <ScriptBlock>] [-Menu <Endpoint>] [<CommonParameters>]
```

### Descrizione

Crea una nuova dashboard. Questo componente è l'elemento radice di tutte le dashboard. È possibile definire contenuto, pagine, temi e altro ancora.

### Parametri

#### -Title

Il titolo della dashboard.

```
Required?                    false
Position?                    named
Default value                PowerShell Universal
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Content

Il contenuto di questa dashboard. Quando si utilizza il contenuto, viene creata una dashboard con una singola pagina.

```
Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Pages \<DashboardPage\[]>

Le pagine di questa dashboard. Utilizzi New-UDPage per definire una pagina e passi un array di pagine a questo parametro.

```
Required?                    false
Position?                    named
Default value                @()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Theme

Il tema di questa dashboard. È possibile definire un tema con New-UDTheme.

```
Required?                    false
Position?                    named
Default value                (Get-UDTheme -Name $UDDefaultTheme)
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Scripts \<String\[]>

File JavaScript da eseguire al caricamento di questa dashboard. Questi file JavaScript possono essere assoluti e ospitati in una CDN di terze parti oppure può ospitarli lei stesso con New-PSUPublishedFolder.

```
Required?                    false
Position?                    named
Default value                @()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Stylesheets \<String\[]>

File CSS da eseguire al caricamento di questa dashboard. Questi file CSS possono essere assoluti e ospitati in una CDN di terze parti oppure può ospitarli lei stesso con New-PSUPublishedFolder.

```
Required?                    false
Position?                    named
Default value                @()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Logo

Un logo da visualizzare nella barra di navigazione. Può utilizzare New-PSUPublishedFolder per ospitare questo file di logo.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -DefaultTheme

Il tema predefinito da mostrare al caricamento della pagina. Per impostazione predefinita viene utilizzato il tema chiaro.

```
Required?                    false
Position?                    named
Default value                Light
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -DisableThemeToggle [<SwitchParameter>]
        Disables the toggle for the theme.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -HeaderPosition

Posizione dell'intestazione all'interno della dashboard.

```
Required?                    false
Position?                    named
Default value                static
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -HeaderColor

Il colore dell'intestazione. Questo sovrascriverà i colori del tema.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -HeaderBackgroundColor

Il colore di sfondo dell'intestazione. Questo sovrascriverà i colori del tema.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -NavigationLayout

Il layout della navigazione. I valori validi sono 'Temporary' e 'Permanent'.

```
Required?                    false
Position?                    named
Default value                Temporary
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Navigation \<Hashtable\[]>

La navigazione della dashboard. Si tratta di un array di elementi di navigazione.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -HideUserName [<SwitchParameter>]
        Obsolete. This parameter was intended for testing purposes.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    -HideNavigation [<SwitchParameter>]
        Obsolete. This parameter was intended for testing purposes.

Required?                    false
Position?                    named
Default value                False
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -LoadNavigation

Un endpoint per caricare gli elementi di navigazione. Questo endpoint deve restituire un array di elementi di navigazione.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -HeaderContent

Un endpoint per caricare contenuto nell'intestazione.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -PageNotFound

Un endpoint per caricare contenuto quando una pagina non viene trovata.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -NotAuthorized

Un endpoint per caricare contenuto quando un utente non è autorizzato.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -SessionTimeoutModal

Un blocco di script che verrà eseguito alla scadenza della sessione.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Menu

Un endpoint per caricare un menu nella dashboard.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

    <CommonParameters>
        This cmdlet supports the common parameters: Verbose, Debug,
        ErrorAction, ErrorVariable, WarningAction, WarningVariable,
        OutBuffer, PipelineVariable, and OutVariable. For more information, see
        about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).
```

### Output

\-------------------------- ESEMPIO 1 --------------------------

```
PS > Creates a new dashboard with a single page.

New-UDDashboard -Title 'My Dashboard' -Content {
    New-UDTypography -Text 'Hello, world!'
}




-------------------------- EXAMPLE 2 --------------------------

PS > Creates a new dashboard with multiple pages.

$Pages = @(
    New-UDPage -Name 'HomePage' -Content {
        New-UDTypography -Text 'Home Page'
    }
    New-UDPage -Name 'Page2' -Content {
        New-UDTypography -Text 'Page2'
    }
)

New-UDDashboard -Title 'My Dashboard' -Pages $Pages
```


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/it/comandi-powershell/new-uddashboard.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
