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

# New-RASPubVDIApp

## SYNOPSIS

Adds a published VDI application to a Site.

## SYNTAX

```powershell
New-RASPubVDIApp [-Name] <string> [-ConnectTo {AnyGuest}] [-Description <string>]
 [-EnabledMode {Disabled | Enabled | Maintenance}] [-EnableStaticAssignmentToHost <bool>]
 [-Icon <string>] [-IconIndex <uint>] [-InheritMaintenance <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>] [-Package <string>] [-PackagedApp <string>]
 [-Parameters <string>] [-ParentFolder <PubFolder>] [-ParentId <uint>] [-PreviousId <uint>]
 [-PreviousItem <PubItem>] [-PublishToSite <Site[]>] [-PublishToSiteIds <uint[]>]
 [-ReplicateMaintenance <bool>] [-SiteId <uint>] [-StartIn <string>]
 [-StartOnLogon <SwitchParameter>] [-Target <string>] [-VDIHostPool <VDIHostPool>]
 [-VDIHostPoolId <uint>] [-VDITemplate <Template>] [-VDITemplateId <uint>]
 [-WinType {Normal | Maximized | Minimized}] [<CommonParameters>]
```

## DESCRIPTION

Adds a published VDI application to a Site.

You must specify the -Name and -Target parameters, or the -Package and -PackagedApp parameters.

All other parameters are optional. If connecting to Any Desktop, one must specify a VDI Pool Id or Object.

## EXAMPLES

### Example 1

```powershell
New-RASPubVDIApp -Name "My VDI App" -Target "%windir%\system32\myapp.exe"
```

Adds a published application package to the Licensing Server site and specifies the app name and executable.

### Example 2

```powershell
New-RASPubVDIApp -Name "My VDI App" -Package "AppPackage1" -PackagedApp "TestApp1"
```

Adds a published application package to the Licensing Server Site and specifies the application name and executable.

## PARAMETERS

### -EnableStaticAssignmentToHost

Specifies whether the static assignment to host is enabled or not.

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

### -ConnectTo

Specifies the 'Matching Mode' option to connect with.

Acceptable values: AnyGuest. Default: AnyGuest.

Possible values: AnyGuest

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

```yaml
Type: VDIMatchingMode
Required: False
Position: Named
Default value: AnyGuest
Accept pipeline input: False
Accept wildcard characters: False
```

### -VDIHostPoolId

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

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

### -VDIHostPool

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

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

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

### -VDITemplateId

Specifies the VDI Template ID from which to publish an application.

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

### -VDITemplate

Specifies the RAS Template from which to publish an application.

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

```yaml
Type: Template
Required: False
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
```

### -StartOnLogon

Enable or disable the 'Start automatically when user logs on' option.

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
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: Normal
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
```

### -ReplicateMaintenance

Whether the option 'Replicate Maintenance' is enabled or not.

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

### -InheritMaintenance

Whether to inherit default Maintenance settings.

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

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

## RELATED LINKS

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