# Set-RASAVDHostPool.md

## NAME

Set-RASAVDHostPool

## SYNOPSIS

Modifies a Azure Virtual Desktop Host Pool.

## SYNTAX

**Set-RASAVDHostPool** \[[Id](#id-string)] *(uint)* \[[AllowRemoteExec](#allowremoteexec-string) *(bool)*] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[[AppMonitor](#appmonitor-string) *(bool)*] \[[AutoScaleEnabled](#autoscaleenabled-string) *(bool)*] \[-[DefaultLicenseType](#DefaultLicenseType) {DoNotConfigure | WindowsClient | WindowsServer}] \[-[DefaultPowerState](#DefaultPowerState) {PoweredOn | PoweredOff | Suspended}] \[[Description](#description-string) *(string)*] \[[DisconnectActiveSessionAfter](#disconnectactivesessionafter-string) *(uint)*] \[-[DragAndDropMode](#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[DrainRemains](#drainremains-string) *(uint)*] \[[Duration](#duration-string) *(uint)*] \[[Enabled](#enabled-string) *(bool)*] \[[EnableDriveRedirectionCache](#enabledriveredirectioncache-string) *(bool)*] \[[EnableSchedule2](#enableschedule2-string) *(bool)*] \[[EnableZOrder](#enablezorder-string) *(bool)*] \[[FileTransferLocation](#filetransferlocation-string) *(string)*] \[[FileTransferLockLocation](#filetransferlocklocation-string) *(bool)*] \[-[FileTransferMode](#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[FriendlyName](#friendlyname-string) *(string)*] \[[HostName](#hostname-string) *(string)*] \[[InheritDefaultActionsSettings](#inheritdefaultactionssettings-string) *(bool)*] \[[InheritDefaultAgentSettings](#inheritdefaultagentsettings-string) *(bool)*] \[[InheritDefaultAppPackageSettings](#inheritdefaultapppackagesettings-string) *(bool)*] \[[InheritDefaultAutoUpgradeSettings](#inheritdefaultautoupgradesettings-string) *(bool)*] \[[InheritDefaultOptimizationSettings](#inheritdefaultoptimizationsettings-string) *(bool)*] \[[InheritDefaultRDPPrinterSettings](#inheritdefaultrdpprintersettings-string) *(bool)*] \[[InheritDefaultUserProfileSettings](#inheritdefaultuserprofilesettings-string) *(bool)*] \[[LimitHosts](#limithosts-string) *(uint)*] \[-[LoadBalancerType](#LoadBalancerType) {BreadthFirst | DepthFirst | Persistent}] \[[LocalSessionTimeZone](#localsessiontimezone-string) *(bool)*] \[[LogoffDisconnectedSessionAfter](#logoffdisconnectedsessionafter-string) *(uint)*] \[[ManageRDPShortpath](#managerdpshortpath-string) *(bool)*] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[[MaxHosts](#maxhosts-string) *(uint)*] \[[MaxRDPShortpathPort](#maxrdpshortpathport-string) *(uint)*] \[[MaxServersFromTemplate](#maxserversfromtemplate-string) *(uint)*] \[[MinRDPShortpathPort](#minrdpshortpathport-string) *(uint)*] \[[MinServersFromTemplate](#minserversfromtemplate-string) *(uint)*] \[[OverwriteSize](#overwritesize-string) *(bool)*] \[-[PerformAction](#PerformAction) {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] \[[PerformActionAfterSec](#performactionaftersec-string) *(uint)*] \[[PowerOnHost](#poweronhost-string) *(bool)*] \[[PreCreatedHosts](#precreatedhosts-string) *(uint)*] \[-[PrinterNameFormat](#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[[RemoveClientNameFromPrinterName](#removeclientnamefromprintername-string) *(bool)*] \[[RemoveServersAfterDrainAndPowerOff](#removeserversafterdrainandpoweroff-string) *(bool)*] \[[RemoveSessionNumberFromPrinterName](#removesessionnumberfromprintername-string) *(bool)*] \[[ScheduleAgentUpdates](#scheduleagentupdates-string) *(bool)*] \[-[ScheduleDay1](#ScheduleDay1) {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}] \[-[ScheduleDay2](#ScheduleDay2) {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}] \[-[ScheduleTime1](#ScheduleTime1) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23}] \[-[ScheduleTime2](#ScheduleTime2) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23}] \[[ServersToAddPerRequest](#serverstoaddperrequest-string) *(uint)*] \[-[SessionAction](#SessionAction) {Disconnect | Logoff}] \[[SessionReadinessTimeout](#sessionreadinesstimeout-string) *(uint)*] \[[SupportShellURLNamespaceObjects](#supportshellurlnamespaceobjects-string) *(bool)*] \[-[Technology](#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[[TemplateId](#templateid-string) *(uint)*] \[[TemplateTagId](#templatetagid-string) *(uint)*] \[[TemplateVersionId](#templateversionid-string) *(uint)*] \[[TimeZoneId](#timezoneid-string) *(string)*] \[[UseRDPShortpath](#userdpshortpath-string) *(bool)*] \[[UseSmallerPortRange](#usesmallerportrange-string) *(bool)*] \[[ValidationEnvironment](#validationenvironment-string) *(bool)*] \[[VMSize](#vmsize-string) *(string)*] \[[WorkLoadDrain](#workloaddrain-string) *(uint)*] \[[WorkloadThreshold](#workloadthreshold-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

\*\*Set-RASAVDHostPool \[-[InputObject](#inputobject)] *(*[*AVDHostPool*](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/avdhostpool.md)*)* \[[AllowRemoteExec](#allowremoteexec-string) *(bool)*] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[[AppMonitor](#appmonitor-string) *(bool)*] \[[AutoScaleEnabled](#autoscaleenabled-string) *(bool)*] \[-[DefaultLicenseType](#DefaultLicenseType) {DoNotConfigure | WindowsClient | WindowsServer}] \[-[DefaultPowerState](#DefaultPowerState) {PoweredOn | PoweredOff | Suspended}] \[[Description](#description-string) *(string)*] \[[DisconnectActiveSessionAfter](#disconnectactivesessionafter-string) *(uint)*] \[-[DragAndDropMode](#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[DrainRemains](#drainremains-string) *(uint)*] \[[Duration](#duration-string) *(uint)*] \[[Enabled](#enabled-string) *(bool)*] \[[EnableDriveRedirectionCache](#enabledriveredirectioncache-string) *(bool)*] \[[EnableSchedule2](#enableschedule2-string) *(bool)*] \[[EnableZOrder](#enablezorder-string) *(bool)*] \[[FileTransferLocation](#filetransferlocation-string) *(string)*] \[[FileTransferLockLocation](#filetransferlocklocation-string) *(bool)*] \[-[FileTransferMode](#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[FriendlyName](#friendlyname-string) *(string)*] \[[HostName](#hostname-string) *(string)*] \[[InheritDefaultActionsSettings](#inheritdefaultactionssettings-string) *(bool)*] \[[InheritDefaultAgentSettings](#inheritdefaultagentsettings-string) *(bool)*] \[[InheritDefaultAppPackageSettings](#inheritdefaultapppackagesettings-string) *(bool)*] \[[InheritDefaultAutoUpgradeSettings](#inheritdefaultautoupgradesettings-string) *(bool)*] \[[InheritDefaultOptimizationSettings](#inheritdefaultoptimizationsettings-string) *(bool)*] \[[InheritDefaultRDPPrinterSettings](#inheritdefaultrdpprintersettings-string) *(bool)*] \[[InheritDefaultUserProfileSettings](#inheritdefaultuserprofilesettings-string) *(bool)*] \[[LimitHosts](#limithosts-string) *(uint)*] \[-[LoadBalancerType](#LoadBalancerType) {BreadthFirst | DepthFirst | Persistent}] \[[LocalSessionTimeZone](#localsessiontimezone-string) *(bool)*] \[[LogoffDisconnectedSessionAfter](#logoffdisconnectedsessionafter-string) *(uint)*] \[[ManageRDPShortpath](#managerdpshortpath-string) *(bool)*] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[[MaxHosts](#maxhosts-string) *(uint)*] \[[MaxRDPShortpathPort](#maxrdpshortpathport-string) *(uint)*] \[[MaxServersFromTemplate](#maxserversfromtemplate-string) *(uint)*] \[[MinRDPShortpathPort](#minrdpshortpathport-string) *(uint)*] \[[MinServersFromTemplate](#minserversfromtemplate-string) *(uint)*] \[[OverwriteSize](#overwritesize-string) *(bool)*] \[-[PerformAction](#PerformAction) {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] \[[PerformActionAfterSec](#performactionaftersec-string) *(uint)*] \[[PowerOnHost](#poweronhost-string) *(bool)*] \[[PreCreatedHosts](#precreatedhosts-string) *(uint)*] \[-[PrinterNameFormat](#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[[RemoveClientNameFromPrinterName](#removeclientnamefromprintername-string) *(bool)*] \[[RemoveServersAfterDrainAndPowerOff](#removeserversafterdrainandpoweroff-string) *(bool)*] \[[RemoveSessionNumberFromPrinterName](#removesessionnumberfromprintername-string) *(bool)*] \[[ScheduleAgentUpdates](#scheduleagentupdates-string) *(bool)*] \[-[ScheduleDay1](#ScheduleDay1) {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}] \[-[ScheduleDay2](#ScheduleDay2) {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}] \[-[ScheduleTime1](#ScheduleTime1) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23}] \[-[ScheduleTime2](#ScheduleTime2) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23}] \[[ServersToAddPerRequest](#serverstoaddperrequest-string) *(uint)*] \[-[SessionAction](#SessionAction) {Disconnect | Logoff}] \[[SessionReadinessTimeout](#sessionreadinesstimeout-string) *(uint)*] \[[SupportShellURLNamespaceObjects](#supportshellurlnamespaceobjects-string) *(bool)*] \[-[Technology](#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[[TemplateId](#templateid-string) *(uint)*] \[[TemplateTagId](#templatetagid-string) *(uint)*] \[[TemplateVersionId](#templateversionid-string) *(uint)*] \[[TimeZoneId](#timezoneid-string) *(string)*] \[[UseRDPShortpath](#userdpshortpath-string) *(bool)*] \[[UseSmallerPortRange](#usesmallerportrange-string) *(bool)*] \[[ValidationEnvironment](#validationenvironment-string) *(bool)*] \[[VMSize](#vmsize-string) *(string)*] \[[WorkLoadDrain](#workloaddrain-string) *(uint)*] \[[WorkloadThreshold](#workloadthreshold-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Set-RASAVDHostPool** \[[Name](#name-string)] *(string)* \[\[-[SiteId](#siteid-string)] *(uint)*] \[[AllowRemoteExec](#allowremoteexec-string) *(bool)*] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[[AppMonitor](#appmonitor-string) *(bool)*] \[[AutoScaleEnabled](#autoscaleenabled-string) *(bool)*] \[-[DefaultLicenseType](#DefaultLicenseType) {DoNotConfigure | WindowsClient | WindowsServer}] \[-[DefaultPowerState](#DefaultPowerState) {PoweredOn | PoweredOff | Suspended}] \[[Description](#description-string) *(string)*] \[[DisconnectActiveSessionAfter](#disconnectactivesessionafter-string) *(uint)*] \[-[DragAndDropMode](#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[DrainRemains](#drainremains-string) *(uint)*] \[[Duration](#duration-string) *(uint)*] \[[Enabled](#enabled-string) *(bool)*] \[[EnableDriveRedirectionCache](#enabledriveredirectioncache-string) *(bool)*] \[[EnableSchedule2](#enableschedule2-string) *(bool)*] \[[EnableZOrder](#enablezorder-string) *(bool)*] \[[FileTransferLocation](#filetransferlocation-string) *(string)*] \[[FileTransferLockLocation](#filetransferlocklocation-string) *(bool)*] \[-[FileTransferMode](#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[FriendlyName](#friendlyname-string) *(string)*] \[[HostName](#hostname-string) *(string)*] \[[InheritDefaultActionsSettings](#inheritdefaultactionssettings-string) *(bool)*] \[[InheritDefaultAgentSettings](#inheritdefaultagentsettings-string) *(bool)*] \[[InheritDefaultAppPackageSettings](#inheritdefaultapppackagesettings-string) *(bool)*] \[[InheritDefaultAutoUpgradeSettings](#inheritdefaultautoupgradesettings-string) *(bool)*] \[[InheritDefaultOptimizationSettings](#inheritdefaultoptimizationsettings-string) *(bool)*] \[[InheritDefaultRDPPrinterSettings](#inheritdefaultrdpprintersettings-string) *(bool)*] \[[InheritDefaultUserProfileSettings](#inheritdefaultuserprofilesettings-string) *(bool)*] \[[LimitHosts](#limithosts-string) *(uint)*] \[-[LoadBalancerType](#LoadBalancerType) {BreadthFirst | DepthFirst | Persistent}] \[[LocalSessionTimeZone](#localsessiontimezone-string) *(bool)*] \[[LogoffDisconnectedSessionAfter](#logoffdisconnectedsessionafter-string) *(uint)*] \[[ManageRDPShortpath](#managerdpshortpath-string) *(bool)*] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[[MaxHosts](#maxhosts-string) *(uint)*] \[[MaxRDPShortpathPort](#maxrdpshortpathport-string) *(uint)*] \[[MaxServersFromTemplate](#maxserversfromtemplate-string) *(uint)*] \[[MinRDPShortpathPort](#minrdpshortpathport-string) *(uint)*] \[[MinServersFromTemplate](#minserversfromtemplate-string) *(uint)*] \[[OverwriteSize](#overwritesize-string) *(bool)*] \[-[PerformAction](#PerformAction) {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] \[[PerformActionAfterSec](#performactionaftersec-string) *(uint)*] \[[PowerOnHost](#poweronhost-string) *(bool)*] \[[PreCreatedHosts](#precreatedhosts-string) *(uint)*] \[-[PrinterNameFormat](#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[[RemoveClientNameFromPrinterName](#removeclientnamefromprintername-string) *(bool)*] \[[RemoveServersAfterDrainAndPowerOff](#removeserversafterdrainandpoweroff-string) *(bool)*] \[[RemoveSessionNumberFromPrinterName](#removesessionnumberfromprintername-string) *(bool)*] \[[ScheduleAgentUpdates](#scheduleagentupdates-string) *(bool)*] \[-[ScheduleDay1](#ScheduleDay1) {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}] \[-[ScheduleDay2](#ScheduleDay2) {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}] \[-[ScheduleTime1](#ScheduleTime1) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23}] \[-[ScheduleTime2](#ScheduleTime2) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23}] \[[ServersToAddPerRequest](#serverstoaddperrequest-string) *(uint)*] \[-[SessionAction](#SessionAction) {Disconnect | Logoff}] \[[SessionReadinessTimeout](#sessionreadinesstimeout-string) *(uint)*] \[[SupportShellURLNamespaceObjects](#supportshellurlnamespaceobjects-string) *(bool)*] \[-[Technology](#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[[TemplateId](#templateid-string) *(uint)*] \[[TemplateTagId](#templatetagid-string) *(uint)*] \[[TemplateVersionId](#templateversionid-string) *(uint)*] \[[TimeZoneId](#timezoneid-string) *(string)*] \[[UseRDPShortpath](#userdpshortpath-string) *(bool)*] \[[UseSmallerPortRange](#usesmallerportrange-string) *(bool)*] \[[ValidationEnvironment](#validationenvironment-string) *(bool)*] \[[VMSize](#vmsize-string) *(string)*] \[[WorkLoadDrain](#workloaddrain-string) *(uint)*] \[[WorkloadThreshold](#workloadthreshold-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies properties of a Azure Virtual Desktop Host Pool.

## PARAMETERS

## Id (uint)

ID for which to modify the Azure Virtual Desktop Host Pool settings.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Name (string)

The name of the target Azure Virtual Desktop Host Pool settings.

This must be the actual Azure Virtual Desktop Host Pool name used in the RAS farm.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID in which to modify the specified Azure Virtual Desktop Host Pool settings .

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

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InputObject ([AVDHostPool](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/avdhostpool.md))

An AVD Host Pool object (an object of type AVDHostPool) to modify.

An AVDHostPool object representing a host pool is obtained using the Get-RASAVDHostPool cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

## FriendlyName (string)

The new Friendly Name of the Azure Virtual Desktop Host Pool settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Description (string)

The new description of the Azure Virtual Desktop Host Pool settings.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Enabled (bool)

Enable or disable the specified AVD Host Pool in a site.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PowerOnHost (bool)

Whether Power On Host is Enabled or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ValidationEnvironment (bool)

Whether Validation Environment is Enabled or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## LimitHosts (uint)

The Limit of session on host.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefaultLicenseType

([AVDLicenseType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/avdlicensetype.md)) The license type.

Possible values: DoNotConfigure, WindowsClient, WindowsServer

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## LoadBalancerType

([LoadBalancerType](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/loadbalancertype.md)) The Load Balancer Type of the Host Pool

Possible values: BreadthFirst, DepthFirst, Persistent

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TemplateId (uint)

The Template ID.

Available to Templated Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TemplateVersionId (uint)

The Template Version ID.

Available to Templated Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TemplateTagId (uint)

The Template Tag ID.

Available to Templated Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Technology ([UserProfileTech](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/userprofiletech.md))

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DisconnectActiveSessionAfter (uint)

Disconnect active session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## LogoffDisconnectedSessionAfter (uint)

Logoff disconnected session after (in seconds). Accepted values: 20-1641600 seconds; 0 for 'Never'; 1 for 'Immediate'.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SessionReadinessTimeout (uint)

Session readiness timeout (in seconds). Accepted values: 20-3600 seconds.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowRemoteExec (bool)

Specifies if 'Allow 2XRemoteExec to send command to the client' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowURLAndMailRedirection

([AllowURLAndMailRedirection](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/allowurlandmailredirection.md)) Specifies the 'Allow Client URL/Mail Redirection'.

Possible values: Disabled, Enabled, EnabledWithAppRegistration

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SupportShellURLNamespaceObjects (bool)

Specifies if 'Support Shell URL Namespace Objects' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ManageRDPTransportProtocol

([ManageRDPTransportProtocol](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/managerdptransportprotocol.md)) Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DragAndDropMode

([DragAndDropModeValue](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/draganddropmodevalue.md)) Specifies the mode the drag and drop feature will operate.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferMode

([FileTransferControlMode](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/filetransfercontrolmode.md)) Specifies if File Transfer option is allowed and if yes, which directions are allowed.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferLocation (string)

Location where the File Transfer takes place, if and where it is allowed.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferLockLocation (bool)

Lock Location where the File Transfer takes place, if and where it is allowed.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableDriveRedirectionCache (bool)

Specifies if the 'Enable Drive Redirection Cache' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableZOrder (bool)

Specifies if the 'Enable Z-Order' option is enabled or disabled. (Experimental)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SessionAction ([SessionAction](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/sessionaction.md))

Session Action

Possible values: Disconnect, Logoff

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PerformAction ([PerformAction](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/performaction.md))

Perform Action

Possible values: DoNothing, Shutdown, Suspend, Delete, Restart, Unassign, Recreate

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PerformActionAfterSec (uint)

Perform action after (in seconds)

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaxHosts (uint)

The maximum number of hosts that can be created from the template.

Available to Templated Personal Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreCreatedHosts (uint)

The maximum number of pre-created hosts. (Keep available buffer)

Available to Templated Personal Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Duration (uint)

The duration (in seconds) before the unused hosts are deleted

Available to Templated Personal Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AutoScaleEnabled (bool)

Whether AutoScale is Enabled or not.

Available to Templated Pooled Host Pools

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MinServersFromTemplate (uint)

The Minimum Number of Hosts added to the template.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaxServersFromTemplate (uint)

The Maximum Number of Hosts added to the template.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WorkloadThreshold (uint)

The Workload Threshold.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ServersToAddPerRequest (uint)

The amount of servers to add per request.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## WorkLoadDrain (uint)

The Drain Workload.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DrainRemains (uint)

The Remaining Drain level.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RemoveServersAfterDrainAndPowerOff (bool)

Remove hosts from host pool after drain and power off.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## HostName (string)

The Host Name Format. All Host Names must adhere to this format : '{text}-%ID:{number}%'

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DefaultPowerState

([DefaultPowerState](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/defaultpowerstate.md)) The Default Power State

Possible values: PoweredOn, PoweredOff, Suspended

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## OverwriteSize (bool)

Whether Overwrite Size is Enabled or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## VMSize (string)

VMSize which will override the size specified in template properties.

Example: Standard\_B2s

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PrinterNameFormat

([PrnNameFormat](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/prnnameformat.md)) Specifies the 'Printer Name Format' option.

Possible values: PrnFormat\_PRN\_CMP\_SES, PrnFormat\_SES\_CMP\_PRN, PrnFormat\_PRN\_REDSES

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RemoveSessionNumberFromPrinterName (bool)

Specifies if 'Remove session number from printer name' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## RemoveClientNameFromPrinterName (bool)

Specifies if 'Remove client name from printer name' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AppMonitor (bool)

Specifies if 'Enable applications monitoring' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ManageRDPShortpath (bool)

Specifies if 'Allow RDP Shortpath' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UseRDPShortpath (bool)

Specifies if 'Allow RDP Shortpath' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UseSmallerPortRange (bool)

Specifies if 'Use Smaller Port' option is enabled or disabled.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MinRDPShortpathPort (uint)

The minimum RDP Shortpath Port.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaxRDPShortpathPort (uint)

The maximum RDP Shortpath Port.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultAgentSettings (bool)

If true, default AVD Agent settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultUserProfileSettings (bool)

If true, default User Profile settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultAppPackageSettings (bool)

If true, default Application Package settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultOptimizationSettings (bool)

If true, default Optimization settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultActionsSettings (bool)

If true, default Action settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultRDPPrinterSettings (bool)

If true, default Printing settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## InheritDefaultAutoUpgradeSettings (bool)

If true, default Auto-upgrade settings will be inherited.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScheduleAgentUpdates (bool)

Whether to enable schedule agent updates.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## LocalSessionTimeZone (bool)

Whether to use the local session time zone or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TimeZoneId (string)

The Selected Time Zone Name

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScheduleDay1 ([DayOfWeek](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/dayofweek.md))

The First Schedule Day

Possible values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScheduleTime1 ([ScheduleTime](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/scheduletime.md))

The First Schedule Time

Possible values: h00, h01, h02, h03, h04, h05, h06, h07, h08, h09, h10, h11, h12, h13, h14, h15, h16, h17, h18, h19, h20, h21, h22, h23

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableSchedule2 (bool)

Whether to enable a second schedule.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScheduleDay2 ([DayOfWeek](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/dayofweek.md))

The Second Schedule Day

Possible values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ScheduleTime2 ([ScheduleTime](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/scheduletime.md))

The Second Schedule Time

Possible values: h00, h01, h02, h03, h04, h05, h06, h07, h08, h09, h10, h11, h12, h13, h14, h15, h16, h17, h18, h19, h20, h21, h22, h23

```
        Required?                    false

        Position?                    named

        Default value                

        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

[AVDHostPool](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/types/avdhostpool.md)

## OUTPUTS

-none-

## EXAMPLES

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

Set-RASAVDHostPool -Id 1 -NewName NewHostPool

Modifies the name of the AVD Host Pool with Id 1.\
\*\*---------- EXAMPLE 2 ----------

Set-RASAVDHostPool -Name "AVDHostPoolName" -NewName NewHostPool

Modifies the name of the AVD Host Pool with Name AVDHostPoolName.

## RELATED LINKS

* [Get-RASAVDHostPool](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/get-rasavdhostpool.md)
* [New-RASAVDHostPool](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/new-rasavdhostpool.md)
* [Remove-RASAVDHostPool](/landing/ras-powershell-api-guide/v20/parallels-ras-powershell-admin-module/commands/remove-rasavdhostpool.md)


---

# 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/v20/parallels-ras-powershell-admin-module/commands/set-rasavdhostpool.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.
