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

# New-RASPubLocalApp

## SYNOPSIS

Creates a published application to a Site.

## SYNTAX

```powershell
New-RASPubLocalApp [-Name] <string> [-AndroidEnabled <bool>] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-Icon <string>] [-IconIndex <uint>]
 [-iOSEnabled <bool>] [-LinuxEnabled <bool>] [-MacEnabled <bool>] [-ParentFolder <PubFolder>]
 [-ParentId <uint>] [-PreviousId <uint>] [-PreviousItem <PubItem>] [-PublishToSite <Site[]>]
 [-PublishToSiteIds <uint[]>] [-ReplicateLocalAppSettings <bool>] [-SiteId <uint>] [-URL <string>]
 [-UserPortalEnabled <bool>] [-WindowsEnabled <bool>] [-WindowsParameters <string>]
 [-WindowsStartIn <string>] [-WindowsTarget <string>] [-WindowsUseIfAvailable <bool>]
 [-WindowsWinType {Normal | Maximized | Minimized}] [<CommonParameters>]
```

## DESCRIPTION

Creates a published application to a Site.

You must specify the -Name. All other parameters are optional.

## EXAMPLES

### Example 1

```powershell
New-RASPubLocalApp -Name "My Local App"
```

Creates a published application locally.

### Example 2

```powershell
New-RASPubLocalApp -Name "My Local App" -WindowsEnabled 1
```

Creates a published application locally and specifies the application is enabled for Windows.

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

### -Name

Published resource name.

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

### -ParentFolder

Parent publishing folder.

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

```yaml
Type: PubFolder
Required: False
Position: Named
Default value: None
Accept pipeline input: true (ByValue, ByPropertyName)
Accept wildcard characters: False
```

### -ParentId

Parent publishing folder ID.

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

### -PreviousItem

Previous published item.

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

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

### -PreviousId

Previous published ID.

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

### -Icon

An icon to use for a publishing resource.

This 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

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 IDs to which to publish a resource.

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

### -SiteId

Site ID in which to publish the specified Item.

If the parameter is omitted, the site ID of the Licensing Server will be used.

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

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

## OUTPUTS

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

## RELATED LINKS

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