Set-RASAVDHostPool

NAME

Set-RASAVDHostPool

SYNOPSIS

Modifies a Azure Virtual Desktop Host Pool.

SYNTAX

Set-RASAVDHostPool [-Idarrow-up-right] <uint> [-AllowRemoteExecarrow-up-right <bool>] [-AllowURLAndMailRedirectionarrow-up-right {Disabled | Enabled | EnabledWithAppRegistration}] [-AppMonitorarrow-up-right <bool>] [-AutoScaleEnabledarrow-up-right <bool>] [-DefaultLicenseTypearrow-up-right {DoNotConfigure | WindowsClient | WindowsServer}] [-DefaultPowerStatearrow-up-right {PoweredOn | PoweredOff | Suspended}] [-Descriptionarrow-up-right <string>] [-DisconnectActiveSessionAfterarrow-up-right <uint>] [-DragAndDropModearrow-up-right {Disabled | ClientToServer | ServerToClient | Bidirectional}] [-DrainRemainsarrow-up-right <uint>] [-Enabledarrow-up-right <bool>] [-EnableDriveRedirectionCachearrow-up-right <bool>] [-FileTransferLocationarrow-up-right <string>] [-FileTransferLockLocationarrow-up-right <bool>] [-FileTransferModearrow-up-right {Disabled | ClientToServer | ServerToClient | Bidirectional}] [-HostNamearrow-up-right <string>] [-InheritDefaultActionsSettingsarrow-up-right <bool>] [-InheritDefaultAgentSettingsarrow-up-right <bool>] [-InheritDefaultAppPackageSettingsarrow-up-right <bool>] [-InheritDefaultOptimizationSettingsarrow-up-right <bool>] [-InheritDefaultRDPPrinterSettingsarrow-up-right <bool>] [-InheritDefaultUserProfileSettingsarrow-up-right <bool>] [-LimitHostsarrow-up-right <uint>] [-LoadBalancerTypearrow-up-right {BreadthFirst | DepthFirst | Persistent}] [-LogoffDisconnectedSessionAfterarrow-up-right <uint>] [-ManageRDPShortpatharrow-up-right <bool>] [-ManageRDPTransportProtocolarrow-up-right {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [-MaxRDPShortpathPortarrow-up-right <uint>] [-MaxServersFromTemplatearrow-up-right <uint>] [-MinRDPShortpathPortarrow-up-right <uint>] [-MinServersFromTemplatearrow-up-right <uint>] [-NewNamearrow-up-right <string>] [-OverwriteSizearrow-up-right <bool>] [-PerformActionarrow-up-right {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] [-PerformActionAfterSecarrow-up-right <uint>] [-PowerOnHostarrow-up-right <bool>] [-PrinterNameFormatarrow-up-right {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}] [-RemoveClientNameFromPrinterNamearrow-up-right <bool>] [-RemoveServersAfterDrainAndPowerOffarrow-up-right <bool>] [-RemoveSessionNumberFromPrinterNamearrow-up-right <bool>] [-ServersToAddPerRequestarrow-up-right <uint>] [-SessionActionarrow-up-right {Disconnect | Logoff}] [-SessionReadinessTimeoutarrow-up-right <uint>] [-SupportShellURLNamespaceObjectsarrow-up-right <bool>] [-Technologyarrow-up-right {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-TemplateIdarrow-up-right <uint>] [-TemplateVersionIdarrow-up-right <uint>] [-UseRDPShortpatharrow-up-right <bool>] [-UseSmallerPortRangearrow-up-right <bool>] [-ValidationEnvironmentarrow-up-right <bool>] [-WorkLoadDrainarrow-up-right <uint>] [-WorkloadThresholdarrow-up-right <uint>] [<CommonParametersarrow-up-right>] Set-RASAVDHostPool [-InputObjectarrow-up-right] <AVDHostPoolarrow-up-right> [-AllowRemoteExecarrow-up-right <bool>] [-AllowURLAndMailRedirectionarrow-up-right {Disabled | Enabled | EnabledWithAppRegistration}] [-AppMonitorarrow-up-right <bool>] [-AutoScaleEnabledarrow-up-right <bool>] [-DefaultLicenseTypearrow-up-right {DoNotConfigure | WindowsClient | WindowsServer}] [-DefaultPowerStatearrow-up-right {PoweredOn | PoweredOff | Suspended}] [-Descriptionarrow-up-right <string>] [-DisconnectActiveSessionAfterarrow-up-right <uint>] [-DragAndDropModearrow-up-right {Disabled | ClientToServer | ServerToClient | Bidirectional}] [-DrainRemainsarrow-up-right <uint>] [-Enabledarrow-up-right <bool>] [-EnableDriveRedirectionCachearrow-up-right <bool>] [-FileTransferLocationarrow-up-right <string>] [-FileTransferLockLocationarrow-up-right <bool>] [-FileTransferModearrow-up-right {Disabled | ClientToServer | ServerToClient | Bidirectional}] [-HostNamearrow-up-right <string>] [-InheritDefaultActionsSettingsarrow-up-right <bool>] [-InheritDefaultAgentSettingsarrow-up-right <bool>] [-InheritDefaultAppPackageSettingsarrow-up-right <bool>] [-InheritDefaultOptimizationSettingsarrow-up-right <bool>] [-InheritDefaultRDPPrinterSettingsarrow-up-right <bool>] [-InheritDefaultUserProfileSettingsarrow-up-right <bool>] [-LimitHostsarrow-up-right <uint>] [-LoadBalancerTypearrow-up-right {BreadthFirst | DepthFirst | Persistent}] [-LogoffDisconnectedSessionAfterarrow-up-right <uint>] [-ManageRDPShortpatharrow-up-right <bool>] [-ManageRDPTransportProtocolarrow-up-right {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [-MaxRDPShortpathPortarrow-up-right <uint>] [-MaxServersFromTemplatearrow-up-right <uint>] [-MinRDPShortpathPortarrow-up-right <uint>] [-MinServersFromTemplatearrow-up-right <uint>] [-NewNamearrow-up-right <string>] [-OverwriteSizearrow-up-right <bool>] [-PerformActionarrow-up-right {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] [-PerformActionAfterSecarrow-up-right <uint>] [-PowerOnHostarrow-up-right <bool>] [-PrinterNameFormatarrow-up-right {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}] [-RemoveClientNameFromPrinterNamearrow-up-right <bool>] [-RemoveServersAfterDrainAndPowerOffarrow-up-right <bool>] [-RemoveSessionNumberFromPrinterNamearrow-up-right <bool>] [-ServersToAddPerRequestarrow-up-right <uint>] [-SessionActionarrow-up-right {Disconnect | Logoff}] [-SessionReadinessTimeoutarrow-up-right <uint>] [-SupportShellURLNamespaceObjectsarrow-up-right <bool>] [-Technologyarrow-up-right {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-TemplateIdarrow-up-right <uint>] [-TemplateVersionIdarrow-up-right <uint>] [-UseRDPShortpatharrow-up-right <bool>] [-UseSmallerPortRangearrow-up-right <bool>] [-ValidationEnvironmentarrow-up-right <bool>] [-WorkLoadDrainarrow-up-right <uint>] [-WorkloadThresholdarrow-up-right <uint>] [<CommonParametersarrow-up-right>] Set-RASAVDHostPool [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] [-AllowRemoteExecarrow-up-right <bool>] [-AllowURLAndMailRedirectionarrow-up-right {Disabled | Enabled | EnabledWithAppRegistration}] [-AppMonitorarrow-up-right <bool>] [-AutoScaleEnabledarrow-up-right <bool>] [-DefaultLicenseTypearrow-up-right {DoNotConfigure | WindowsClient | WindowsServer}] [-DefaultPowerStatearrow-up-right {PoweredOn | PoweredOff | Suspended}] [-Descriptionarrow-up-right <string>] [-DisconnectActiveSessionAfterarrow-up-right <uint>] [-DragAndDropModearrow-up-right {Disabled | ClientToServer | ServerToClient | Bidirectional}] [-DrainRemainsarrow-up-right <uint>] [-Enabledarrow-up-right <bool>] [-EnableDriveRedirectionCachearrow-up-right <bool>] [-FileTransferLocationarrow-up-right <string>] [-FileTransferLockLocationarrow-up-right <bool>] [-FileTransferModearrow-up-right {Disabled | ClientToServer | ServerToClient | Bidirectional}] [-HostNamearrow-up-right <string>] [-InheritDefaultActionsSettingsarrow-up-right <bool>] [-InheritDefaultAgentSettingsarrow-up-right <bool>] [-InheritDefaultAppPackageSettingsarrow-up-right <bool>] [-InheritDefaultOptimizationSettingsarrow-up-right <bool>] [-InheritDefaultRDPPrinterSettingsarrow-up-right <bool>] [-InheritDefaultUserProfileSettingsarrow-up-right <bool>] [-LimitHostsarrow-up-right <uint>] [-LoadBalancerTypearrow-up-right {BreadthFirst | DepthFirst | Persistent}] [-LogoffDisconnectedSessionAfterarrow-up-right <uint>] [-ManageRDPShortpatharrow-up-right <bool>] [-ManageRDPTransportProtocolarrow-up-right {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [-MaxRDPShortpathPortarrow-up-right <uint>] [-MaxServersFromTemplatearrow-up-right <uint>] [-MinRDPShortpathPortarrow-up-right <uint>] [-MinServersFromTemplatearrow-up-right <uint>] [-NewNamearrow-up-right <string>] [-OverwriteSizearrow-up-right <bool>] [-PerformActionarrow-up-right {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}] [-PerformActionAfterSecarrow-up-right <uint>] [-PowerOnHostarrow-up-right <bool>] [-PrinterNameFormatarrow-up-right {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}] [-RemoveClientNameFromPrinterNamearrow-up-right <bool>] [-RemoveServersAfterDrainAndPowerOffarrow-up-right <bool>] [-RemoveSessionNumberFromPrinterNamearrow-up-right <bool>] [-ServersToAddPerRequestarrow-up-right <uint>] [-SessionActionarrow-up-right {Disconnect | Logoff}] [-SessionReadinessTimeoutarrow-up-right <uint>] [-SupportShellURLNamespaceObjectsarrow-up-right <bool>] [-Technologyarrow-up-right {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-TemplateIdarrow-up-right <uint>] [-TemplateVersionIdarrow-up-right <uint>] [-UseRDPShortpatharrow-up-right <bool>] [-UseSmallerPortRangearrow-up-right <bool>] [-ValidationEnvironmentarrow-up-right <bool>] [-WorkLoadDrainarrow-up-right <uint>] [-WorkloadThresholdarrow-up-right <uint>] [<CommonParametersarrow-up-right>]

DESCRIPTION

Modifies properties of a Azure Virtual Desktop Host Pool. This is an Experimental feature which is subject to slight changes.

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.

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

-InputObject <AVDHostPoolarrow-up-right> 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.

-NewName <string> The new name of the Azure Virtual Desktop Host Pool settings.

-Description <string> The new description of the Azure Virtual Desktop Host Pool settings.

-Enabled <bool> Enable or disable the specified AVD Host Pool in a site.

-PowerOnHost <bool> Whether Power On Host is Enabled or not.

-ValidationEnvironment <bool> Whether Validation Environment is Enabled or not.

-LimitHosts <uint> The Limit of session on host.

-DefaultLicenseType <AVDLicenseTypearrow-up-right> The license type. Possible values: DoNotConfigure, WindowsClient, WindowsServer

-LoadBalancerType <LoadBalancerTypearrow-up-right> The Load Balancer Type of the Host Pool Possible values: BreadthFirst, DepthFirst, Persistent

-Technology <UserProfileTecharrow-up-right> Specifies the 'User Profile Technology' value. Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

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

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

-SessionReadinessTimeout <uint> Session readiness timeout (in seconds). Accepted values: 20-3600 seconds.

-AllowRemoteExec <bool> Specifies if 'Allow 2XRemoteExec to send command to the client' option is enabled or disabled.

-AllowURLAndMailRedirection <AllowURLAndMailRedirectionarrow-up-right> Specifies the 'Allow Client URL/Mail Redirection'. Possible values: Disabled, Enabled, EnabledWithAppRegistration

-SupportShellURLNamespaceObjects <bool> Specifies if 'Support Shell URL Namespace Objects' option is enabled or disabled.

-ManageRDPTransportProtocol <ManageRDPTransportProtocolarrow-up-right> Manage RDP transport protocol. Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

-DragAndDropMode <DragAndDropModeValuearrow-up-right> Specifies the mode the drag and drop feature will operate. Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

-FileTransferMode <FileTransferControlModearrow-up-right> Specifies if File Transfer option is allowed and if yes, which directions are allowed. Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

-FileTransferLocation <string> Location where the File Transfer takes place, if and where it is allowed.

-FileTransferLockLocation <bool> Lock Location where the File Transfer takes place, if and where it is allowed.

-EnableDriveRedirectionCache <bool> Specifies if the 'Enable Drive Redirection Cache' option is enabled or disabled.

-SessionAction <SessionActionarrow-up-right> Session Action Possible values: Disconnect, Logoff

-PerformAction <PerformActionarrow-up-right> Perform Action Possible values: DoNothing, Shutdown, Suspend, Delete, Restart, Unassign, Recreate

-PerformActionAfterSec <uint> Perform action after (in seconds)

-TemplateId <uint> The Template ID.

-TemplateVersionId <uint> The RAS Template Version ID.

-AutoScaleEnabled <bool> Whether AutoScale is Enabled or not.

-MinServersFromTemplate <uint> The Minimum Number of Hosts added to the template.

-MaxServersFromTemplate <uint> The Maximum Number of Hosts added to the template.

-HostName <string> The Host name format. All VMs created from the template will have this name with %ID:N:S% replaced.

-DefaultPowerState <DefaultPowerStatearrow-up-right> The Default Power State Possible values: PoweredOn, PoweredOff, Suspended

-WorkloadThreshold <uint> The Workload Threshold.

-ServersToAddPerRequest <uint> The amount of servers to add per request.

-WorkLoadDrain <uint> The Drain Workload.

-DrainRemains <uint> The Remaining Drain level.

-OverwriteSize <bool> The Remaining Drain level.

-RemoveServersAfterDrainAndPowerOff <bool> Remove hosts from host pool after drain and power off.

-PrinterNameFormat <PrnNameFormatarrow-up-right> Specifies the 'Printer Name Format' option. Possible values: PrnFormat_PRN_CMP_SES, PrnFormat_SES_CMP_PRN, PrnFormat_PRN_REDSES

-RemoveSessionNumberFromPrinterName <bool> Specifies if 'Remove session number from printer name' option is enabled or disabled.

-RemoveClientNameFromPrinterName <bool> Specifies if 'Remove client name from printer name' option is enabled or disabled.

-AppMonitor <bool> Specifies if 'Allow Application Monitoring' option is enabled or disabled.

-ManageRDPShortpath <bool> Specifies if 'Allow RDP Shortpath' option is enabled or disabled.

-UseRDPShortpath <bool> Specifies if 'Allow RDP Shortpath' option is enabled or disabled.

-UseSmallerPortRange <bool> Specifies if 'Use Smaller Port' option is enabled or disabled.

-MinRDPShortpathPort <uint> The minimum RDP Shortpath Port.

-MaxRDPShortpathPort <uint> The maximum RDP Shortpath Port.

-InheritDefaultAgentSettings <bool> If true, default AVD Agent settings will be inherited.

-InheritDefaultUserProfileSettings <bool> If true, default User Profile settings will be inherited.

-InheritDefaultAppPackageSettings <bool> If true, default Application Package settings will be inherited.

-InheritDefaultOptimizationSettings <bool> If true, default Optimization settings will be inherited.

-InheritDefaultActionsSettings <bool> If true, default Action settings will be inherited.

-InheritDefaultRDPPrinterSettings <bool> If true, default Printing settings will be inherited.

<CommonParameters>

INPUTS

AVDHostPoolarrow-up-right

OUTPUTS

-none-

EXAMPLES

---------- EXAMPLE 1 ---------- Set-RASAVDHostPool -NewName NewHostPool Modifies the name of the Azure Virtual Desktop Host Pool.

Last updated