# Set-RASPubLocalApp.md

## NAME

Set-RASPubLocalApp

## SYNOPSIS

Modifies properties of a published application.

## SYNTAX

**Set-RASPubLocalApp** \[[Id](#id-string)] *(uint)* \[[AndroidEnabled](#androidenabled-string) *(bool)*] \[[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)*] \[[InheritShortcutDefaultSettings](#inheritshortcutdefaultsettings-string) *(bool)*] \[[iOSEnabled](#iosenabled-string) *(bool)*] \[[LinuxEnabled](#linuxenabled-string) *(bool)*] \[[MacEnabled](#macenabled-string) *(bool)*] \[[Name](#name-string) *(string)*] \[[PreferredRoutingEnabled](#preferredroutingenabled-string) *(bool)*] \[-[PublishToSite](#PublishToSite) *(*[*Site\[\]*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/site)*)*] \[-[PublishToSiteIds](#PublishToSiteIds) *(uint\[])*] \[[ReplicateLocalAppSettings](#replicatelocalappsettings-string) *(bool)*] \[[ReplicateShortcutSettings](#replicateshortcutsettings-string) *(bool)*] \[[SiteId](#siteid-string) *(uint)*] \[[StartOnLogon](#startonlogon-string) *(bool)*] \[[StartPath](#startpath-string) *(string)*] \[[URL](#url-string) *(string)*] \[[UserPortalEnabled](#userportalenabled-string) *(bool)*] \[[WindowsEnabled](#windowsenabled-string) *(bool)*] \[[WindowsParameters](#windowsparameters-string) *(string)*] \[[WindowsStartIn](#windowsstartin-string) *(string)*] \[[WindowsTarget](#windowstarget-string) *(string)*] \[[WindowsUseIfAvailable](#windowsuseifavailable-string) *(bool)*] \[-[WindowsWinType](#WindowsWinType) {Normal | Maximized | Minimized}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

\*\*Set-RASPubLocalApp \[-[InputObject](#inputobject)] *(*[*PubItem*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/pubitem)*)* \[[AndroidEnabled](#androidenabled-string) *(bool)*] \[[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)*] \[[InheritShortcutDefaultSettings](#inheritshortcutdefaultsettings-string) *(bool)*] \[[iOSEnabled](#iosenabled-string) *(bool)*] \[[LinuxEnabled](#linuxenabled-string) *(bool)*] \[[MacEnabled](#macenabled-string) *(bool)*] \[[Name](#name-string) *(string)*] \[[PreferredRoutingEnabled](#preferredroutingenabled-string) *(bool)*] \[-[PublishToSite](#PublishToSite) *(*[*Site\[\]*](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/site)*)*] \[-[PublishToSiteIds](#PublishToSiteIds) *(uint\[])*] \[[ReplicateLocalAppSettings](#replicatelocalappsettings-string) *(bool)*] \[[ReplicateShortcutSettings](#replicateshortcutsettings-string) *(bool)*] \[[SiteId](#siteid-string) *(uint)*] \[[StartOnLogon](#startonlogon-string) *(bool)*] \[[StartPath](#startpath-string) *(string)*] \[[URL](#url-string) *(string)*] \[[UserPortalEnabled](#userportalenabled-string) *(bool)*] \[[WindowsEnabled](#windowsenabled-string) *(bool)*] \[[WindowsParameters](#windowsparameters-string) *(string)*] \[[WindowsStartIn](#windowsstartin-string) *(string)*] \[[WindowsTarget](#windowstarget-string) *(string)*] \[[WindowsUseIfAvailable](#windowsuseifavailable-string) *(bool)*] \[-[WindowsWinType](#WindowsWinType) {Normal | Maximized | Minimized}] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies properties of a published application.

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

To set filtering options, use the Pub Filtering cmdlets (e.g. Set-RASPubItemClientFilter).

## PARAMETERS

## URL (string)

URL.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsEnabled (bool)

Windows: Whether the application is enabled for the operating system or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsUseIfAvailable (bool)

Windows: Use the following application if available on local device.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsStartIn (string)

Windows: Application working directory.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsTarget (string)

Windows: Application target file. (i.e. calc.exe, file.txt, etc.).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsParameters (string)

Windows: Application parameters.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WindowsWinType ([WindowType](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/windowtype))

Windows: Window Type: 0=Normal, 1=Maximized, 2=Minimized.

Possible values: Normal, Maximized, Minimized

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MacEnabled (bool)

Mac: Whether the application is enabled for the operating system or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## LinuxEnabled (bool)

Linux: Whether the application is enabled for the operating system or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## iOSEnabled (bool)

iOS: Whether the application is enabled for the operating system or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AndroidEnabled (bool)

Android: Whether the application is enabled for the operating system or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UserPortalEnabled (bool)

UserPortal: Whether the application is enabled for the operating system or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ReplicateLocalAppSettings (bool)

Whether to replicate local application settings or not.

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

## EnabledMode

([PubResourceEnabledMode](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/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
```

## Description (string)

Published resource description.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PublishToSite ([Site\[\]](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/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](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/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](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/pubitem)

## OUTPUTS

-none-

## EXAMPLES

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

Set-RASPubLocalApp -Id 1 -Enabled $false

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

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

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

Set-RASPubLocalApp -Id 56 -URL "mock/example/url"

Modify the URL parameter (application properties) according to passed string.

## RELATED LINKS

* [Get-RASPubLocalApp](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/get-raspublocalapp)
* [Remove-RASPubLocalApp](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-raspublocalapp)
* [Set-RASRule](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/set-rasrule)
* [Set-RASCriteria](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/set-rascriteria)
* [Set-RASPubDefaultSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/set-raspubdefaultsettings)
