Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Set-RASAVDHostPool

SYNOPSIS

Modifies a Azure Virtual Desktop Host Pool.

SYNTAX

Set-RASAVDHostPool [-Id] <uint> [-AllowRemoteExec <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-AutoScaleEnabled <bool>] [-DefaultLicenseType {DoNotConfigure | WindowsClient | WindowsServer}]
 [-DefaultPowerState {PoweredOn | PoweredOff | Suspended}] [-Description <string>]
 [-DisconnectActiveSessionAfter <uint>] [-DomainOrgUnit <string>]
 [-DragAndDropMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-DrainRemains <uint>] [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}]
 [-Duration <uint>] [-EnableAppMonitoring <bool>] [-Enabled <bool>]
 [-EnableDriveRedirectionCache <bool>] [-EnableSchedule2 <bool>] [-EnableZOrder <bool>]
 [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>] [-FriendlyName <string>] [-HostName <string>]
 [-HybridHostPoolId <uint>] [-InheritDefaultActionsSettings <bool>]
 [-InheritDefaultAgentSettings <bool>] [-InheritDefaultAppPackageSettings <bool>]
 [-InheritDefaultAutoUpgradeSettings <bool>] [-InheritDefaultOptimizationSettings <bool>]
 [-InheritDefaultRDPPrinterSettings <bool>] [-InheritDefaultUserProfileSettings <bool>]
 [-LimitHosts <uint>] [-LoadBalancerType {BreadthFirst | DepthFirst | Persistent}]
 [-LocalSessionTimeZone <bool>] [-LogoffDisconnectedSessionAfter <uint>]
 [-ManageRDPShortpath <bool>]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [-MaxHosts <uint>]
 [-MaxRDPShortpathPort <uint>] [-MaxServersFromTemplate <uint>] [-MinRDPShortpathPort <uint>]
 [-MinServersFromTemplate <uint>] [-OverrideDomainOrgUnit <bool>] [-OverrideSize <bool>]
 [-PerformAction {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}]
 [-PerformActionAfterSec <uint>] [-PowerOnHost <bool>] [-PreCreatedHosts <uint>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-RemoveClientNameFromPrinterName <bool>] [-RemoveServersAfterDrainAndPowerOff <bool>]
 [-RemoveSessionNumberFromPrinterName <bool>] [-ScheduleAgentUpdates <bool>]
 [-ScheduleDay1 {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}]
 [-ScheduleDay2 {Monday | Tuesday | Wednesday | Thursday | Friday | Saturday | Sunday}]
 [-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 {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 <uint>] [-SessionAction {Disconnect | Logoff}]
 [-SessionReadinessTimeout <uint>] [-SupportShellURLNamespaceObjects <bool>]
 [-Technology {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-TemplateId <uint>]
 [-TemplateTagId <uint>] [-TemplateVersionId <uint>] [-TimeZoneId <string>]
 [-UseRDPShortpath <bool>] [-UseSmallerPortRange <bool>] [-ValidationEnvironment <bool>]
 [-VMSize <string>] [-WorkLoadDrain <uint>] [-WorkloadThreshold <uint>] [<CommonParameters>]

DESCRIPTION

Modifies properties of a Azure Virtual Desktop Host Pool.

EXAMPLES

Example 1

Modifies the name of the AVD Host Pool with Id 1.

Example 2

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

PARAMETERS

-Id

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

-Name

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.

-SiteId

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.

-InputObject

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.

Type reference: AVDHostPool

-FriendlyName

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

-Description

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

-Enabled

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

-PowerOnHost

Whether Power On Host is Enabled or not.

-ValidationEnvironment

Whether Validation Environment is Enabled or not.

-LimitHosts

The Limit of session on host.

-DefaultLicenseType

The license type.

Possible values: DoNotConfigure, WindowsClient, WindowsServer

Type reference: AVDLicenseType

-LoadBalancerType

The Load Balancer Type of the Host Pool

Possible values: BreadthFirst, DepthFirst, Persistent

Type reference: LoadBalancerType

-TemplateId

The Template ID.

Available to Templated Host Pools

-TemplateVersionId

The Template Version ID.

Available to Templated Host Pools

-TemplateTagId

The Template Tag ID.

Available to Templated Host Pools

-Technology

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

Type reference: UserProfileTech

-DisconnectActiveSessionAfter

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

-LogoffDisconnectedSessionAfter

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

-SessionReadinessTimeout

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

-AllowRemoteExec

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

-AllowURLAndMailRedirection

Specifies the 'Allow Client URL/Mail Redirection'.

Possible values: Disabled, Enabled, EnabledWithAppRegistration

Type reference: AllowURLAndMailRedirection

-SupportShellURLNamespaceObjects

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

-ManageRDPTransportProtocol

Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

Type reference: ManageRDPTransportProtocol

-DragAndDropMode

Specifies the mode the drag and drop feature will operate.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: DragAndDropModeValue

-FileTransferMode

Specifies if File Transfer option is allowed and if yes, which directions are allowed.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: FileTransferControlMode

-FileTransferLocation

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

-FileTransferLockLocation

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

-FileTransferSuppressPromptForUploadFiles

Specifies if the 'Suppress prompt for upload files' option is enabled or disabled.

-FileTransferExistingFileMode

Specifies the behavior when a file with the same name already exists in the destination folder during file transfer.

Possible values: CreateNewFile, OverwriteExistingFile

Type reference: FileTransferExistingFileMode

-FileTransferAutoCloseWindow

Specifies if the "Close transfer window when complete" option is enabled or disabled.

-EnableDriveRedirectionCache

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

-DriveRedirectionFileCache

Specifies the 'File Cache' mode to be used with drive redirection.

Possible values: None, ReadAhead, ReadAheadWriteBehind

Type reference: DriveRedirectionFileCacheMode

-EnableZOrder

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

-SessionAction

Session Action

Possible values: Disconnect, Logoff

Type reference: SessionAction

-PerformAction

Perform Action

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

Type reference: PerformAction

-PerformActionAfterSec

Perform action after (in seconds)

-MaxHosts

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

Available to Templated Personal Host Pools

-PreCreatedHosts

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

Available to Templated Personal Host Pools

-Duration

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

Available to Templated Personal Host Pools

-AutoScaleEnabled

Whether AutoScale is Enabled or not.

Available to Templated Pooled Host Pools

-MinServersFromTemplate

The Minimum Number of Hosts added to the template.

-MaxServersFromTemplate

The Maximum Number of Hosts added to the template.

-WorkloadThreshold

The Workload Threshold.

-ServersToAddPerRequest

The amount of servers to add per request.

-WorkLoadDrain

The Drain Workload.

-DrainRemains

The Remaining Drain level.

-RemoveServersAfterDrainAndPowerOff

Remove hosts from host pool after drain and power off.

-HostName

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

-DefaultPowerState

The Default Power State

Possible values: PoweredOn, PoweredOff, Suspended

Type reference: DefaultPowerState

-OverrideSize

Whether Override Size is Enabled or not.

Available to Templated Host Pools

-VMSize

VMSize which will override the size specified in template properties.

Example: Standard_B2s

-OverrideDomainOrgUnit

Specifications: Whether Override Domain Org Unit is Enabled or not. (OverrideDomainOrgUnit)

-DomainOrgUnit

Domain Organization unit

-PrinterNameFormat

Specifies the 'Printer Name Format' option.

Possible values: PrnFormat_PRN_CMP_SES, PrnFormat_SES_CMP_PRN, PrnFormat_PRN_REDSES

Type reference: PrnNameFormat

-RemoveSessionNumberFromPrinterName

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

-RemoveClientNameFromPrinterName

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

-EnableAppMonitoring

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

-ManageRDPShortpath

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

-UseRDPShortpath

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

-UseSmallerPortRange

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

-MinRDPShortpathPort

The minimum RDP Shortpath Port.

-MaxRDPShortpathPort

The maximum RDP Shortpath Port.

-InheritDefaultAgentSettings

If true, default AVD Agent settings will be inherited.

-InheritDefaultUserProfileSettings

If true, default User Profile settings will be inherited.

-InheritDefaultAppPackageSettings

If true, default Application Package settings will be inherited.

-InheritDefaultOptimizationSettings

If true, default Optimization settings will be inherited.

-InheritDefaultActionsSettings

If true, default Action settings will be inherited.

-InheritDefaultRDPPrinterSettings

If true, default Printing settings will be inherited.

-InheritDefaultAutoUpgradeSettings

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

-ScheduleAgentUpdates

Whether to enable schedule agent updates.

-LocalSessionTimeZone

Whether to use the local session time zone or not.

-TimeZoneId

The Selected Time Zone Name

-ScheduleDay1

The First Schedule Day

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

Type reference: DayOfWeek

-ScheduleTime1

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

Type reference: ScheduleTime

-EnableSchedule2

Whether to enable a second schedule.

-ScheduleDay2

The Second Schedule Day

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

Type reference: DayOfWeek

-ScheduleTime2

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

Type reference: ScheduleTime

-HybridHostPoolId

On-premises host pool ID to link when deploy location is Hybrid.

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.

INPUTS

AVDHostPool

OUTPUTS

None

Last updated