> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-raspubavdapp.md).

# Set-RASPubAVDApp

## SYNOPSIS

Modifies properties of a published AVD application.

## SYNTAX

```powershell
Set-RASPubAVDApp [-Id] <uint> -AVDHostPoolID <uint> [-CreateShortcutInStartFolder <bool>]
 [-CreateShortcutInStartUpFolder <bool>] [-CreateShortcutOnDesktop <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-ExcludePrelaunch <bool>] [-Icon <string>]
 [-IconIndex <uint>] [-InheritMaintenance <bool>] [-InheritShortcutDefaultSettings <bool>]
 [-MaintenanceMessage_de_DE <string>] [-MaintenanceMessage_en_US <string>]
 [-MaintenanceMessage_es_ES <string>] [-MaintenanceMessage_fr_FR <string>]
 [-MaintenanceMessage_it_IT <string>] [-MaintenanceMessage_ja_JP <string>]
 [-MaintenanceMessage_ko_KR <string>] [-MaintenanceMessage_nl_NL <string>]
 [-MaintenanceMessage_pt_BR <string>] [-MaintenanceMessage_zh_CN <string>]
 [-MaintenanceMessage_zh_TW <string>] [-Name <string>] [-Package <string>] [-PackagedApp <string>]
 [-Parameters <string>] [-PreferredRoutingEnabled <bool>] [-PublishToSite <Site[]>]
 [-PublishToSiteIds <uint[]>] [-ReplicateMaintenance <bool>] [-ReplicateShortcutSettings <bool>]
 [-SiteId <uint>] [-StartIn <string>] [-StartOnLogon <bool>] [-StartPath <string>]
 [-Target <string>] [-WinType {Normal | Maximized | Minimized}] [<CommonParameters>]
```

```powershell
Set-RASPubAVDApp [-InputObject] <PubItem> -AVDHostPoolID <uint>
 [-CreateShortcutInStartFolder <bool>] [-CreateShortcutInStartUpFolder <bool>]
 [-CreateShortcutOnDesktop <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-ExcludePrelaunch <bool>] [-Icon <string>]
 [-IconIndex <uint>] [-InheritMaintenance <bool>] [-InheritShortcutDefaultSettings <bool>]
 [-MaintenanceMessage_de_DE <string>] [-MaintenanceMessage_en_US <string>]
 [-MaintenanceMessage_es_ES <string>] [-MaintenanceMessage_fr_FR <string>]
 [-MaintenanceMessage_it_IT <string>] [-MaintenanceMessage_ja_JP <string>]
 [-MaintenanceMessage_ko_KR <string>] [-MaintenanceMessage_nl_NL <string>]
 [-MaintenanceMessage_pt_BR <string>] [-MaintenanceMessage_zh_CN <string>]
 [-MaintenanceMessage_zh_TW <string>] [-Name <string>] [-Package <string>] [-PackagedApp <string>]
 [-Parameters <string>] [-PreferredRoutingEnabled <bool>] [-PublishToSite <Site[]>]
 [-PublishToSiteIds <uint[]>] [-ReplicateMaintenance <bool>] [-ReplicateShortcutSettings <bool>]
 [-SiteId <uint>] [-StartIn <string>] [-StartOnLogon <bool>] [-StartPath <string>]
 [-Target <string>] [-WinType {Normal | Maximized | Minimized}] [<CommonParameters>]
```

## DESCRIPTION

Modifies properties of a published AVD application.

Use only the parameters (application properties) that you want to modify.

To set filtering options, use the Pub Filtering cmdlets.

This is an Experimental feature which is subject to slight changes.

## EXAMPLES

### Example 1

```powershell
Set-RASPubAVDApp -Id 1 -Enabled $false
```

Disables a published application specified by ID.

### Example 2

```powershell
Set-RASPubAVDApp $PubAVDApp -Enabled $false
```

Disables a published application specified by the $PubAVDApp object.

### Example 3

```powershell
Get-RASPubAVDApp -Id 1 | Set-RASPubAVDApp -Enabled $false
```

Disables a published application specified by an object obtained from the pipeline output.

### Example 4

```powershell
Set-RASPubAVDApp -Id 1 -Package "AppPackage2" -PackagedApp "TestApp2"
```

Modifies the package and application package details of the published application specified by ID.

## PARAMETERS

### -AVDHostPoolID

The AVD Host Pool ID.

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

### -Target

File name and path of a published application executable.

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

### -StartIn

Folder name in which to start a published application.

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

### -Parameters

Optional parameters to pass to the published application executable.

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

### -Package

The MSIX Package.

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

### -PackagedApp

The application within the MSIX package.

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

### -WinType

Published application window type. Acceptable values: Normal, Maximized, Minimized.

Possible values: Normal, Maximized, Minimized

Type reference: [WindowType](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/windowtype.md)

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

### -ReplicateShortcutSettings

Replicate shortcut settings to all sites.

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

### -CreateShortcutOnDesktop

Create a shortcut on a client's desktop.

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

### -CreateShortcutInStartFolder

Create a shortcut in the client's Start folder.

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

### -CreateShortcutInStartUpFolder

Create a shortcut in the client's Auto Start folder.

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

### -StartPath

Specifies the path in the Start folder where the shortcut will be created.

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

### -InheritShortcutDefaultSettings

Inherit default shortcut settings.

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

### -StartOnLogon

Start a resource automatically when a user logs on.

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

### -ExcludePrelaunch

Exclude application from prelaunch.

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

### -PreferredRoutingEnabled

Enable or disable Preferred Routing.

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

### -Name

A new name to assign to the published resource.

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

### -Icon

Published resource icon file name. Can be an executable (.exe), a .dll or a .ico file.

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

### -IconIndex

Icon index

Specifies the index of the icon that will be loaded from the binary specified in the Icon property

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

### -ReplicateMaintenance

Replicate Maintenance

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

### -InheritMaintenance

Inherit Maintenance

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

### -EnabledMode

Changes the availability status of the published resource.

Possible values: Disabled, Enabled, Maintenance

Type reference: [PubResourceEnabledMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubresourceenabledmode.md)

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

### -MaintenanceMessage\_en\_US

Maintenance message for the published resource in English.

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

### -MaintenanceMessage\_ja\_JP

Maintenance message for the published resource in Japanese.

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

### -MaintenanceMessage\_fr\_FR

Maintenance message for the published resource in French.

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

### -MaintenanceMessage\_es\_ES

Maintenance message for the published resource in Spanish.

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

### -MaintenanceMessage\_it\_IT

Maintenance message for the published resource in Italian.

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

### -MaintenanceMessage\_pt\_BR

Maintenance message for the published resource in Portuguese.

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

### -MaintenanceMessage\_nl\_NL

Maintenance message for the published resource in Dutch.

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

### -MaintenanceMessage\_de\_DE

Maintenance message for the published resource in German.

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

### -MaintenanceMessage\_zh\_TW

Maintenance message for the published resource in Chinese (Traditional).

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

### -MaintenanceMessage\_zh\_CN

Maintenance message for the published resource in Chinese (Simplified).

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

### -MaintenanceMessage\_ko\_KR

Maintenance message for the published resource in Korean.

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

### -Description

Published resource description.

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

### -PublishToSite

An array of sites to which to publish a resource.

Type reference: [Site\[\]](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/site.md)

```yaml
Type: Site[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PublishToSiteIds

An array of sites to which to publish a resource.

```yaml
Type: uint[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

Published resource ID.

```yaml
Type: uint
Required: True
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -InputObject

An object specifying the published resource.

To obtain the object, use the Get-PubItem cmdlet.

Type reference: [PubItem](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubitem.md)

```yaml
Type: PubItem
Required: True
Position: 0
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -SiteId

Site ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### [PubItem](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/pubitem.md)

## OUTPUTS

### None

## RELATED LINKS

* [Get-RASPubAVDApp](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-raspubavdapp.md)
* [Remove-RASPubAVDApp](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/remove-raspubavdapp.md)
* [Set-RASPubDefaultSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-raspubdefaultsettings.md)


---

# 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.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-raspubavdapp.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.
