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

# New-PSUDashboard

New-PSUDashboard opretter en ny app i PowerShell Universal ud fra en filsti, scriptindhold eller et modul ved hjælp af det ældre dashboard-cmdlet-navn.

## Synopsis

Opretter en ny app i PowerShell Universal.

## Syntaks

```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]`. Her er `-Credential` navnet på appens legitimationsoplysning til udførelse, ikke Basic-legitimationsoplysninger til Management API.

## Beskrivelse

Dette ældre cmdlet-navn er et alias for `New-PSUApp`. Opret appen fra en lagerfil, inline-indhold eller en modulkommando. `-FilePath` er valgfri i standardparametersættet. `-Component` bevares af hensyn til kompatibilitet, men bruges ikke. `-Critical` bevirker, at en fejl ved appstart får slutpunktet `/api/v1/status` til at returnere 500.

## Eksempler

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

Opretter en app ved hjælp af filen `app.ps1` i lageret og serverer den på `/app`.

## Parametre

| Parameter                 | Beskrivelse                                                                                    |
| ------------------------- | ---------------------------------------------------------------------------------------------- |
| `-Name`                   | Påkrævet appnavn.                                                                              |
| `-FilePath`               | Sti til app-scriptet i lageret.                                                                |
| `-Content`                | Indlejret app-scriptblok (påkrævet i parametersættet Content).                                 |
| `-Module`                 | Modul, der indeholder den kommando, der definerer appen.                                       |
| `-Command`                | Modulkommando, der bruges til at definere appen.                                               |
| `-BaseUrl`                | App-URL-sti (f.eks. `/app`); er som standard `/`.                                              |
| `-Environment`            | Kørselsmiljø for appen.                                                                        |
| `-GrantAppToken`          | Tildeler appbrugere et app-token til at få adgang til PSU som dem selv.                        |
| `-Maintenance`            | Aktiverer vedligeholdelsestilstand.                                                            |
| `-Authenticated`          | Kræver godkendelse for appen.                                                                  |
| `-Role`                   | Roller med tilladelse til at få adgang til appen.                                              |
| `-DisableAutoStart`       | Deaktiverer opstart med serveren.                                                              |
| `-Component`              | Mulighed for bagudkompatibilitet; bruges ikke.                                                 |
| `-SessionTimeout`         | App-sessionstimeout.                                                                           |
| `-IdleTimeout`            | Inaktiv timeout for appen.                                                                     |
| `-AutoDeploy`             | Udruller appændringer automatisk.                                                              |
| `-Description`            | Beskrivelse af appen.                                                                          |
| `-Credential`             | Navn på appens udførelseslegitimationsoplysning (ikke godkendelse til administrations-API'en). |
| `-DisableErrorToast`      | Undertrykker appens fejltoastmeddelelser.                                                      |
| `-DisableStartupLog`      | Deaktiverer appens opstartslog.                                                                |
| `-VerboseErrorMessages`   | Viser udførlige fejlmeddelelser for appen.                                                     |
| `-Tag`                    | Mærker anvendt på appen.                                                                       |
| `-DisableInteractiveHost` | Deaktiverer interaktive værtsfunktioner såsom `Read-Host`.                                     |
| `-FavIcon`                | App-favicon.                                                                                   |
| `-OnSessionTimeout`       | Scriptblok, der skal køres ved sessionstimeout.                                                |
| `-ComputerGroup`          | Computergrupper, der er tildelt appen.                                                         |
| `-AvailableInBranch`      | Begrænser appen til disse grene.                                                               |
| `-Critical`               | Behandler en fejl ved app-opstart som en fejl i statusslutpunktet.                             |
| `-ComputerName`           | URL eller værtsnavn for PSU-målserveren (alias `-Uri`).                                        |
| `-AppToken`               | App-token til Management API.                                                                  |
| `-UseDefaultCredentials`  | Bruger de aktuelle Windows-legitimationsoplysninger.                                           |
| `-Integrated`             | Bruger den integrerede administrationsklient i processen.                                      |
| `-TrustCertificate`       | Ignorerer fejl ved certifikatvalidering.                                                       |
| `-Cookies`                | Genbruger sessionscookies til godkendelse.                                                     |

## Tilladelser

Adgangstokenet kræver `apps/create` for at køre denne cmdlet eksternt.


---

# 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/da/powershell-kommandoer/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.
