# New-RASPubAVDDesktop

### NAME

New-RASPubAVDDesktop\ <br>

### SYNOPSIS

Adds a published AVD desktop to a site.\ <br>

### SYNTAX

New-RASPubAVDDesktop \[-[Name](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#Name)] *\<string>* -[AVDHostPoolID](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#AVDHostPoolID) *\<uint>* \[-[AllowMultiMonitor](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#AllowMultiMonitor) {Enabled | Disabled | UseClientSettings}] \[-[Description](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#Description) *\<string>*] \[-[DesktopSize](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#DesktopSize) {UseAvailableArea | FullScreen | W640xH480 | W800xH600 | W854xH480 | W1024xH576 | W1024xH768 | W1152xH864 | W1280xH720 | W1280xH768 | W1280xH800 | W1280xH960 | W1280xH1024 | W1360xH768 | W1366xH768 | W1400xH1050 | W1440xH900 | W1600xH900 | W1600xH1024 | W1600xH1200 | W1680xH1050 | W1920xH1080 | W1920xH1200 | W1920xH1440 | W2048xH1152 | Custom}] \[-[Enabled](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#Enabled) *\<bool>*] \[-[EnabledMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#EnabledMode) {Disabled | Enabled | Maintenance}] \[-[Height](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#Height) *\<uint>*] \[-[Icon](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#Icon) *\<string>*] \[-[IconIndex](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#IconIndex) *\<uint>*] \[-[InheritMaintenance](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#InheritMaintenance) *\<bool>*] \[-[MaintenanceMessage\_de\_DE](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_de_DE) *\<string>*] \[-[MaintenanceMessage\_en\_US](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_en_US) *\<string>*] \[-[MaintenanceMessage\_es\_ES](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_es_ES) *\<string>*] \[-[MaintenanceMessage\_fr\_FR](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_fr_FR) *\<string>*] \[-[MaintenanceMessage\_it\_IT](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_it_IT) *\<string>*] \[-[MaintenanceMessage\_ja\_JP](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_ja_JP) *\<string>*] \[-[MaintenanceMessage\_ko\_KR](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_ko_KR) *\<string>*] \[-[MaintenanceMessage\_nl\_NL](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_nl_NL) *\<string>*] \[-[MaintenanceMessage\_pt\_BR](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_pt_BR) *\<string>*] \[-[MaintenanceMessage\_zh\_CN](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_zh_CN) *\<string>*] \[-[MaintenanceMessage\_zh\_TW](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#MaintenanceMessage_zh_TW) *\<string>*] \[-[ParentFolder](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#ParentFolder) *<*[*PubFolder*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubFolder.html)*>*] \[-[ParentId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#ParentId) *\<uint>*] \[-[PreviousId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#PreviousId) *\<uint>*] \[-[PreviousItem](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#PreviousItem) *<*[*PubItem*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubItem.html)*>*] \[-[PublishToSite](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#PublishToSite) *<*[*Site\[\]*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/Site.html)*>*] \[-[PublishToSiteIds](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#PublishToSiteIds) *\<uint\[]>*] \[-[ReplicateMaintenance](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#ReplicateMaintenance) *\<bool>*] \[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#SiteId) *\<uint>*] \[-[StartOnLogon](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#StartOnLogon) *\<SwitchParameter>*] \[-[Width](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#Width) *\<uint>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/New-RASPubAVDDesktop.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Adds a published AVD desktop to a site.\
\
In case of connecting to Any Desktop, one must specify a AVD Pool Id or Object.\
\
This is an Experimental feature which is subject to slight changes.\ <br>

### PARAMETERS

\
-**AVDHostPoolID \<uint>**\
The AVD Host Pool ID.\ <br>

```
        Required?                    true
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**StartOnLogon \<SwitchParameter>**\
Enable or disable the 'Start automatically when user logs on' option.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Width \<uint>**\
Specifies a custom desktop width.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Height \<uint>**\
Specifies a custom desktop height.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DesktopSize <**[**DesktopSize**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/DesktopSize.html)**>**\
Desktop Size. Possible values are: 0 (Use available area), 1 (Full screen), Custom = 25.\
\
Acceptable values: 640x480, 800x600, 854x480, 1024x576, 1024x768, 1152x864, 1280x720,\
\
1280x768, 1280x800, 1280x960, 1280x1024, 1360x768, 1366x768,\
\
1400x1050, 1440x900, 1600x900, 1600x1024, 1600x1200, 1680x1050,\
\
1920x1440, 1920x1080, 1920x1200, 2048x1152\
\
Possible values: UseAvailableArea, FullScreen, W640xH480, W800xH600, W854xH480, W1024xH576, W1024xH768, W1152xH864, W1280xH720, W1280xH768, W1280xH800, W1280xH960, W1280xH1024, W1360xH768, W1366xH768, W1400xH1050, W1440xH900, W1600xH900, W1600xH1024, W1600xH1200, W1680xH1050, W1920xH1080, W1920xH1200, W1920xH1440, W2048xH1152, Custom\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                FullScreen
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowMultiMonitor <**[**AllowMultiMonitor**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/AllowMultiMonitor.html)**>**\
Specifies the "Multi-monitor" option.\
\
Acceptable values: Enabled, Disabled, UseClientSettings.\
\
Possible values: Enabled, Disabled, UseClientSettings\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                UseClientSettings
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Name \<string>**\
Published resource name.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ParentFolder <**[**PubFolder**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubFolder.html)**>**\
Parent publishing folder.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       true (ByValue, ByPropertyName)
```

```
        Accept wildcard characters?  false
```

\
-**ParentId \<uint>**\
Parent publishing folder ID.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PreviousItem <**[**PubItem**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubItem.html)**>**\
Previous published item.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PreviousId \<uint>**\
Previous published ID.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Icon \<string>**\
An icon to use for a publishing resource.\
\
This can be an executable (.exe), a .dll or a .ico file.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ReplicateMaintenance \<bool>**\
Replicate Maintenance.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritMaintenance \<bool>**\
Inherit Maintenance.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Enabled \<bool>**\
Enable or disable a published resource.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnabledMode <**[**PubResourceEnabledMode**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubResourceEnabledMode.html)**>**\
Changes the availability status of the published resource.\
\
Possible values: Disabled, Enabled, Maintenance\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        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).\ <br>

```
        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).\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Description \<string>**\
Published resource description.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PublishToSite <**[**Site\[\]**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/Site.html)**>**\
An array of sites to which to publish a resource.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PublishToSiteIds \<uint\[]>**\
An array of Sites IDs to which to publish a resource.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SiteId \<uint>**\
Site ID.\ <br>

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

<br>

### INPUTS

[PubFolder](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubFolder.html)

### OUTPUTS

[PubAVDDesktop](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PubAVDDesktop.html)

### EXAMPLES

\
\&#xNAN;**---------- EXAMPLE 1 ----------**\
\
New-RASPubAVDDesktop "My AVD Desktop"\
\
Adds a published desktop and gives it the specified name.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/v19/parallels-ras-powershell-admin-module/commands/new-raspubavddesktop.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
