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

# Set-RASPubLocalApp

## SYNOPSIS

Modifies properties of a published application.

## SYNTAX

```powershell
Set-RASPubLocalApp [-Id] <uint> [-AndroidEnabled <bool>] [-CreateShortcutInStartFolder <bool>]
 [-CreateShortcutInStartUpFolder <bool>] [-CreateShortcutOnDesktop <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-ExcludePrelaunch <bool>] [-Icon <string>]
 [-IconIndex <uint>] [-InheritShortcutDefaultSettings <bool>] [-iOSEnabled <bool>]
 [-LinuxEnabled <bool>] [-MacEnabled <bool>] [-Name <string>] [-PreferredRoutingEnabled <bool>]
 [-PublishToSite <Site[]>] [-PublishToSiteIds <uint[]>] [-ReplicateLocalAppSettings <bool>]
 [-ReplicateShortcutSettings <bool>] [-SiteId <uint>] [-StartOnLogon <bool>] [-StartPath <string>]
 [-URL <string>] [-UserPortalEnabled <bool>] [-WindowsEnabled <bool>] [-WindowsParameters <string>]
 [-WindowsStartIn <string>] [-WindowsTarget <string>] [-WindowsUseIfAvailable <bool>]
 [-WindowsWinType {Normal | Maximized | Minimized}] [<CommonParameters>]
```

```powershell
Set-RASPubLocalApp [-InputObject] <PubItem> [-AndroidEnabled <bool>]
 [-CreateShortcutInStartFolder <bool>] [-CreateShortcutInStartUpFolder <bool>]
 [-CreateShortcutOnDesktop <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-ExcludePrelaunch <bool>] [-Icon <string>]
 [-IconIndex <uint>] [-InheritShortcutDefaultSettings <bool>] [-iOSEnabled <bool>]
 [-LinuxEnabled <bool>] [-MacEnabled <bool>] [-Name <string>] [-PreferredRoutingEnabled <bool>]
 [-PublishToSite <Site[]>] [-PublishToSiteIds <uint[]>] [-ReplicateLocalAppSettings <bool>]
 [-ReplicateShortcutSettings <bool>] [-SiteId <uint>] [-StartOnLogon <bool>] [-StartPath <string>]
 [-URL <string>] [-UserPortalEnabled <bool>] [-WindowsEnabled <bool>] [-WindowsParameters <string>]
 [-WindowsStartIn <string>] [-WindowsTarget <string>] [-WindowsUseIfAvailable <bool>]
 [-WindowsWinType {Normal | Maximized | Minimized}] [<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).

## EXAMPLES

### Example 1

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

Disables a published application specified by ID.

### Example 2

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

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

### Example 3

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

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

## PARAMETERS

### -URL

URL.

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

### -WindowsEnabled

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

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

### -WindowsUseIfAvailable

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

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

### -WindowsStartIn

Windows: Application working directory.

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

### -WindowsTarget

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

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

### -WindowsParameters

Windows: Application parameters.

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

### -WindowsWinType

Windows: Window Type: 0=Normal, 1=Maximized, 2=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
```

### -MacEnabled

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

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

### -LinuxEnabled

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

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

### -iOSEnabled

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

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

### -AndroidEnabled

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

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

### -UserPortalEnabled

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

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

### -ReplicateLocalAppSettings

Whether to replicate local application settings or not.

```yaml
Type: bool
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
```

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

### -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-RASPubLocalApp](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-raspublocalapp.md)
* [Remove-RASPubLocalApp](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/remove-raspublocalapp.md)
* [Set-RASRule](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasrule.md)
* [Set-RASCriteria](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rascriteria.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-raspublocalapp.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.
