# Set-RASPubVDIApp

## NAME

Set-RASPubVDIApp

## SYNOPSIS

Modifies properties of a published VDI application.

## SYNTAX

**Set-RASPubVDIApp** \[[Id](#id-string)] _(uint)_\*\*\
\[-[ConnectTo](#ConnectTo) {AnyGuest}]\
\[[CreateShortcutInStartFolder](#createshortcutinstartfolder-string)_(bool)_]\
\[[CreateShortcutInStartUpFolder](#createshortcutinstartupfolder-string)_(bool)_]\
\[[CreateShortcutOnDesktop](#createshortcutondesktop-string)_(bool)_] \[[Description](#description-string)_(string)_] \[-[EnabledMode](#EnabledMode)\
{Disabled | Enabled | Maintenance}]\
\[[ExcludePrelaunch](#excludeprelaunch-string)_(bool)_] \[[Icon](#icon-string) _(string)_]\
\[[IconIndex](#iconindex-string) _(uint)_]\
\[[InheritMaintenance](#inheritmaintenance-string)_(bool)_]\
\[[InheritShortcutDefaultSettings](#inheritshortcutdefaultsettings-string)_(bool)_]\
\[-[MaintenanceMessage\_de\_DE](#MaintenanceMessage_de_DE)_(string)_]\
\[-[MaintenanceMessage\_en\_US](#MaintenanceMessage_en_US)_(string)_]\
\[-[MaintenanceMessage\_es\_ES](#MaintenanceMessage_es_ES)_(string)_]\
\[-[MaintenanceMessage\_fr\_FR](#MaintenanceMessage_fr_FR)_(string)_]\
\[-[MaintenanceMessage\_it\_IT](#MaintenanceMessage_it_IT)_(string)_]\
\[-[MaintenanceMessage\_ja\_JP](#MaintenanceMessage_ja_JP)_(string)_]\
\[-[MaintenanceMessage\_ko\_KR](#MaintenanceMessage_ko_KR)_(string)_]\
\[-[MaintenanceMessage\_nl\_NL](#MaintenanceMessage_nl_NL)_(string)_]\
\[-[MaintenanceMessage\_pt\_BR](#MaintenanceMessage_pt_BR)_(string)_]\
\[-[MaintenanceMessage\_zh\_CN](#MaintenanceMessage_zh_CN)_(string)_]\
\[-[MaintenanceMessage\_zh\_TW](#MaintenanceMessage_zh_TW)_(string)_] \[[Name](#name-string) _(string)_]\
\[[Package](#package-string) _(string)_]\
\[[PackagedApp](#packagedapp-string) _(string)_]\
\[[Parameters](#parameters-string) _(string)_]\
\[[Persistent](#persistent-string) _(bool)_]\
\[[PreferredRoutingEnabled](#preferredroutingenabled-string)_(bool)_] \[-[PublishToSite](#PublishToSite)_(_[_Site\[\]_](../types/site)_)_]\
\[-[PublishToSiteIds](#PublishToSiteIds)_(uint\[])_]\
\[[ReplicateMaintenance](#replicatemaintenance-string)_(bool)_]\
\[[ReplicateShortcutSettings](#replicateshortcutsettings-string)_(bool)_] \[[SiteId](#siteid-string) _(uint)_]\
\[[StartIn](#startin-string) _(string)_]\
\[[StartOnLogon](#startonlogon-string) _(bool)_]\
\[[StartPath](#startpath-string) _(string)_]\
\[[Target](#target-string) _(string)_]\
\[-[VDIHostPool](#VDIHostPool)_(_[_VDIHostPool_](../types/vdihostpool)_)_]\
\[[VDIHostPoolId](#vdihostpoolid-string) _(uint)_]\
\[-[VDITemplate](#VDITemplate)_(_[_Template_](../types/template)_)_]\
\[-[WinType](#WinType) {Normal | Maximized |\
Minimized}]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

**Set-RASPubVDIApp**\
\[-[InputObject](#inputobject)]_(_[_PubItem_](../types/pubitem)_)_\
\[-[ConnectTo](#ConnectTo) {AnyGuest}]\
\[[CreateShortcutInStartFolder](#createshortcutinstartfolder-string)_(bool)_]\
\[[CreateShortcutInStartUpFolder](#createshortcutinstartupfolder-string)_(bool)_]\
\[[CreateShortcutOnDesktop](#createshortcutondesktop-string)_(bool)_] \[[Description](#description-string)_(string)_] \[-[EnabledMode](#EnabledMode)\
{Disabled | Enabled | Maintenance}]\
\[[ExcludePrelaunch](#excludeprelaunch-string)_(bool)_] \[[Icon](#icon-string) _(string)_]\
\[[IconIndex](#iconindex-string) _(uint)_]\
\[[InheritMaintenance](#inheritmaintenance-string)_(bool)_]\
\[[InheritShortcutDefaultSettings](#inheritshortcutdefaultsettings-string)_(bool)_]\
\[-[MaintenanceMessage\_de\_DE](#MaintenanceMessage_de_DE)_(string)_]\
\[-[MaintenanceMessage\_en\_US](#MaintenanceMessage_en_US)_(string)_]\
\[-[MaintenanceMessage\_es\_ES](#MaintenanceMessage_es_ES)_(string)_]\
\[-[MaintenanceMessage\_fr\_FR](#MaintenanceMessage_fr_FR)_(string)_]\
\[-[MaintenanceMessage\_it\_IT](#MaintenanceMessage_it_IT)_(string)_]\
\[-[MaintenanceMessage\_ja\_JP](#MaintenanceMessage_ja_JP)_(string)_]\
\[-[MaintenanceMessage\_ko\_KR](#MaintenanceMessage_ko_KR)_(string)_]\
\[-[MaintenanceMessage\_nl\_NL](#MaintenanceMessage_nl_NL)_(string)_]\
\[-[MaintenanceMessage\_pt\_BR](#MaintenanceMessage_pt_BR)_(string)_]\
\[-[MaintenanceMessage\_zh\_CN](#MaintenanceMessage_zh_CN)_(string)_]\
\[-[MaintenanceMessage\_zh\_TW](#MaintenanceMessage_zh_TW)_(string)_] \[[Name](#name-string) _(string)_]\
\[[Package](#package-string) _(string)_]\
\[[PackagedApp](#packagedapp-string) _(string)_]\
\[[Parameters](#parameters-string) _(string)_]\
\[[Persistent](#persistent-string) _(bool)_]\
\[[PreferredRoutingEnabled](#preferredroutingenabled-string)_(bool)_] \[-[PublishToSite](#PublishToSite)_(_[_Site\[\]_](../types/site)_)_]\
\[-[PublishToSiteIds](#PublishToSiteIds)_(uint\[])_]\
\[[ReplicateMaintenance](#replicatemaintenance-string)_(bool)_]\
\[[ReplicateShortcutSettings](#replicateshortcutsettings-string)_(bool)_] \[[SiteId](#siteid-string) _(uint)_]\
\[[StartIn](#startin-string) _(string)_]\
\[[StartOnLogon](#startonlogon-string) _(bool)_]\
\[[StartPath](#startpath-string) _(string)_]\
\[[Target](#target-string) _(string)_]\
\[-[VDIHostPool](#VDIHostPool)_(_[_VDIHostPool_](../types/vdihostpool)_)_]\
\[[VDIHostPoolId](#vdihostpoolid-string) _(uint)_]\
\[-[VDITemplate](#VDITemplate)_(_[_Template_](../types/template)_)_]\
\[-[WinType](#WinType) {Normal | Maximized |\
Minimized}]\
\[_(_[_CommonParameters_](#CommonParameters)_)_]

## DESCRIPTION

Modifies properties of a published VDI application.

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

To set filtering options, use the Pub Filtering cmdlets.

## PARAMETERS

## Persistent (bool)

Specifies whether the connection is persistent or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ConnectTo ([VDIMatchingMode](../types/vdimatchingmode))

Specifies the 'Matching Mode' option to connect with.

Acceptable values: AnyGuest.

Possible values: AnyGuest

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## VDIHostPoolId (uint)

Specifies the VDI Host Pool from which to publish an application.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## VDIHostPool ([VDIHostPool](../types/vdihostpool))

Specifies the VDI Host Pool from which to publish an application.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## VDITemplate ([Template](../types/template))

Specifies the RAS template from which to publish an application.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Target (string)

File name and path of a published application executable.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## StartIn (string)

Folder name in which to start a published application.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Parameters (string)

Optional parameters to pass to the published application executable.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Package (string)

The MSIX Package.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PackagedApp (string)

The application within the MSIX package.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WinType ([WindowType](../types/windowtype))

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

Possible values: Normal, Maximized, Minimized

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ReplicateShortcutSettings (bool)

Replicate shortcut settings to all sites.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CreateShortcutOnDesktop (bool)

Create a shortcut on a client's desktop.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CreateShortcutInStartFolder (bool)

Create a shortcut in the client's Start folder.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## CreateShortcutInStartUpFolder (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## StartPath (string)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritShortcutDefaultSettings (bool)

Inherit default shortcut settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## StartOnLogon (bool)

Start a resource automatically when a user logs on.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExcludePrelaunch (bool)

Exclude application from prelaunch.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Name (string)

A new name to assign to the published resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Icon (string)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IconIndex (uint)

Icon index

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ReplicateMaintenance (bool)

Replicate Maintenance

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritMaintenance (bool)

Inherit Maintenance

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnabledMode

([PubResourceEnabledMode](../types/pubresourceenabledmode))\
Changes the availability status of the published resource.

Possible values: Disabled, Enabled, Maintenance

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_en\_US (string)

Maintenance message for the published resource in English.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_ja\_JP (string)

Maintenance message for the published resource in Japanese.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_fr\_FR (string)

Maintenance message for the published resource in French.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_es\_ES (string)

Maintenance message for the published resource in Spanish.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_it\_IT (string)

Maintenance message for the published resource in Italian.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_pt\_BR (string)

Maintenance message for the published resource in Portuguese.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_nl\_NL (string)

Maintenance message for the published resource in Dutch.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_de\_DE (string)

Maintenance message for the published resource in German.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_zh\_TW (string)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_zh\_CN (string)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaintenanceMessage\_ko\_KR (string)

Maintenance message for the published resource in Korean.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Description (string)

Published resource description.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PublishToSite ([Site\[\]](../types/site))

An array of sites to which to publish a resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PublishToSiteIds (uint\[])

An array of sites to which to publish a resource.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreferredRoutingEnabled (bool)

Enable or disable Preferred Routing.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Id (uint)

Published resource ID.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([PubItem](../types/pubitem))

An object specifying the published resource.

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

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        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 documentation. 
```

## INPUTS

[PubItem](../types/pubitem)

## OUTPUTS

-none-

## EXAMPLES

\*\*---------- EXAMPLE 1 ----------

Set-RASPubVDIApp -Id 1 -Enabled $false

Disables a published application specified by ID.\
\*\*---------- EXAMPLE 2 ----------

Set-RASPubVDIApp $PubVDIApp -Enabled $false

Disables a published application specified by the $PubVDIApp object.\
\*\*---------- EXAMPLE 3 ----------

Get-RASPubVDIApp -Id 1 | Set-RASPubVDIApp -Enabled $false

Disables a published application specified by an object obtained from\
the pipeline output.\
\*\*---------- EXAMPLE 4 ----------

Set-RASPubVDIApp -Id 1 -Package "AppPackage2" -PackagedApp "TestApp2"

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

## RELATED LINKS

* [Get-RASPubVDIApp](get-raspubvdiapp)
* [Remove-RASPubVDIApp](remove-raspubvdiapp)
* [Set-RASPubDefaultSettings](set-raspubdefaultsettings)
