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

# New-UDPage

New-UDPage definerer en navigerbar side i et PowerShell Universal-dashboard og konfigurerer dens URL, indhold, navigation, sidehoved, ikon og layout.

## Synopsis

Opretter en side i et dashboard.

## Syntaks

### Simple (standard)

```
New-UDPage [-Id <String>] [-Name <String>] [-Url <String>] [-Description <String>] [-Role <String[]>]
 -Content <Endpoint> [-DefaultHomePage] [[-Title] <String>] [-OnLoading <ScriptBlock>]
 [-NavigationLayout <String>] [-Navigation <Hashtable[]>] [-Logo <String>] [-HeaderPosition <String>]
 [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>] [-HeaderContent <Endpoint>]
 [-HideUserName] [-HideNavigation] [-Icon <Object>] [-LoadTitle <Endpoint>] [-Static] [-Generated]
 [-Layout <DesignerPageLayout>] [-BackgroundImage <String>] [-BackgroundRepeat] [-LogoComponent <Hashtable>]
 [-AutoInclude] [<CommonParameters>]
```

### Advanced

```
New-UDPage [-Id <String>] [-Name <String>] [-Url <String>] [-Description <String>] [-Role <String[]>]
 -Content <Endpoint> [-DefaultHomePage] [[-Title] <String>] [-Blank] [-OnLoading <ScriptBlock>]
 [-HeaderPosition <String>] [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>]
 [-HideUserName] [-HideNavigation] [-Icon <Object>] [-Static] [-Generated] [-Layout <DesignerPageLayout>]
 [-BackgroundRepeat] [-AutoInclude] [<CommonParameters>]
```

### DynamicNav

```
New-UDPage [-Id <String>] [-Name <String>] [-Url <String>] [-Description <String>] [-Role <String[]>]
 -Content <Endpoint> [-DefaultHomePage] [[-Title] <String>] [-OnLoading <ScriptBlock>]
 [-NavigationLayout <String>] [-Logo <String>] [-LoadNavigation <Endpoint>] [-HeaderPosition <String>]
 [-HeaderColor <DashboardColor>] [-HeaderBackgroundColor <DashboardColor>] [-HeaderContent <Endpoint>]
 [-HideUserName] [-HideNavigation] [-Icon <Object>] [-LoadTitle <Endpoint>] [-Static] [-Generated]
 [-Layout <DesignerPageLayout>] [-BackgroundImage <String>] [-BackgroundRepeat] [-LogoComponent <Hashtable>]
 [-AutoInclude] [<CommonParameters>]
```

## Beskrivelse

Opretter en side i et dashboard.

## Eksempler

## Parametre

### -Blank

Opretter en side uden et sidehoved.

```yaml
Type: SwitchParameter
Parameter Sets: Advanced
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Content

Indholdet af denne side.

```yaml
Type: Endpoint
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DefaultHomePage

Om denne side er standardstartsiden. Kun én side kan være en standardstartside.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Description

Beskrivelsen af denne side.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HeaderBackgroundColor

Headerens baggrundsfarve.

```yaml
Type: DashboardColor
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HeaderColor

Headerens forgrundsfarve.

```yaml
Type: DashboardColor
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HeaderContent

Yderligere sidehovedindhold, der skal medtages.

```yaml
Type: Endpoint
Parameter Sets: Simple, DynamicNav
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HeaderPosition

Hvordan sidehovedet placeres.

```yaml
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: absolute, fixed, relative, static, sticky

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HideNavigation

Om navigationen skal skjules.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -HideUserName

Om brugernavnet skal skjules, når der bruges et godkendt dashboard.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Icon

Det ikon, der skal vises i navigationen for denne side.

```yaml
Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

Id'et for denne side.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -LoadNavigation

Brugerdefineret navigation, der skal indlæses dynamisk.

```yaml
Type: Endpoint
Parameter Sets: DynamicNav
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -LoadTitle

Indlæser titlen på denne side dynamisk.

```yaml
Type: Endpoint
Parameter Sets: Simple, DynamicNav
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Logo

URL'en til det logo, der skal vises i headeren.

```yaml
Type: String
Parameter Sets: Simple, DynamicNav
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Name

Navnet på denne side.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Navigation

Den statiske navigation, der skal vises på denne side.

```yaml
Type: Hashtable[]
Parameter Sets: Simple
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -NavigationLayout

Hvordan navigationen vises.

```yaml
Type: String
Parameter Sets: Simple, DynamicNav
Aliases:
Accepted values: Temporary, Permanent

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -OnLoading

Indhold, der skal vises, når siden indlæses.

```yaml
Type: ScriptBlock
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Role

Den rolle, der er påkrævet for at se denne side.

```yaml
Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Title

Titlen, der skal vises i sidehovedet og titellinjen på denne side.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Url

URL'en for denne side.

```yaml
Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Static

En statisk sides indhold indlæses ikke dynamisk, når en bruger besøger den, og konstrueres i stedet, når dashboardet startes.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Generated

Om denne side blev genereret af PowerShell Universal-appdesigneren.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Layout

Layoutet af komponenter for denne side. Bruges af appdesigneren.

```yaml
Type: DesignerPageLayout
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -BackgroundImage

Det baggrundsbillede, der skal vises på denne side.

```yaml
Type: String
Parameter Sets: Simple, DynamicNav
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -BackgroundRepeat

Om baggrundsbilledet skal gentages.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -LogoComponent

Den logokomponent, der skal vises i sidehovedet.

```yaml
Type: Hashtable
Parameter Sets: Simple, DynamicNav
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AutoInclude

Medtager automatisk denne side. Det er ikke nødvendigt at kalde Get-UDPage i hovedappen.

```yaml
Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

Denne cmdlet understøtter de fælles parametre: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -Verbose, -WarningAction, -WarningVariable og -ProgressAction. Se [about\_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216) for at få flere oplysninger.

## Input

### Ingen

## Output

### System.Object

## Noter

## Relaterede links


---

# 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-udpage.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.
