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

Set-RASVDIHostPool

SYNOPSIS

Modifies a VDI Host Pool.

SYNTAX

Set-RASVDIHostPool [-Id] <uint> [-AllowRemoteExec <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-AWSSubnetsIds <List`1>] [-ClusterId <string>] [-ClusterName <string>] [-DatastoreIDs <string[]>]
 [-DatastoreSource {Template | Selection}] [-DefaultPowerState {PoweredOn | PoweredOff | Suspended}]
 [-Description <string>] [-DisconnectActiveSessionAfter <uint>] [-DomainOrgUnit <string>]
 [-DragAndDropMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}] [-Duration <uint>]
 [-EnableAppMonitoring <bool>] [-Enabled <bool>] [-EnableDriveRedirectionCache <bool>]
 [-EnableZOrder <bool>] [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>]
 [-GroupType {Administrators | RemoteDesktopUsers}] [-HostName <string>]
 [-InheritDefaultAgentSettings <bool>] [-InheritDefaultAppPackageSettings <bool>]
 [-InheritDefaultAutoUpgradeSettings <bool>] [-InheritDefaultOptimizationSettings <bool>]
 [-InheritDefaultRDPPrinterSettings <bool>] [-InheritDefaultUserProfileSettings <bool>]
 [-InheritDefaultVDIActionSettings <bool>] [-InheritDefaultVDISecuritySettings <bool>]
 [-IsUsersGrantedRDPermissions <bool>] [-LogoffDisconnectedSessionAfter <uint>]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [-MaxHosts <uint>]
 [-NewName <string>] [-OverrideCluster <bool>] [-OverrideDomainOrgUnit <bool>]
 [-OverrideNetwork <bool>] [-OverrideSize <bool>] [-OverrideStorage <bool>]
 [-PerformAction {DoNothing | Shutdown | Suspend | Delete | Restart | Unassign | Recreate}]
 [-PerformActionAfterSec <uint>] [-PreCreatedHosts <uint>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-RemoveSessionNumberFromPrinterName <bool>] [-SessionAction {Disconnect | Logoff}]
 [-SessionReadinessTimeout <uint>] [-SubnetId <string>] [-SubnetName <string>]
 [-SupportShellURLNamespaceObjects <bool>]
 [-Technology {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-TemplateId <uint>]
 [-TemplateTagId <uint>] [-TemplateVersionId <uint>] [-VMSize <string>] [-WildCard <string>]
 [<CommonParameters>]

DESCRIPTION

Modifies properties of a VDI Host Pool.

EXAMPLES

Example 1

Disables the VDI Host Pool specified by name.

Example 2

Disables the VDI Host Pool specified by ID.

Example 3

Disables the VDI Host Pool specified by the $VDIHostPool variable (an object of type VDIHostPool).

Example 4

Disables the VDI Host Pool obtained from the pipeline output.

PARAMETERS

-Name

The name of the target VDI Host Pool.

This must be the actual VDI Host Pool name used in the RAS farm.

-SiteId

Site ID in which to modify the specified VDI Host Pool.

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

-Id

The ID of the VDIHostPool to modify. To obtain the ID, use the Get-RASVDIHostPool cmdlet.

-InputObject

The VDI Host Pool to modify.

To obtain an object of type VDIHostPool representing a VDI Host Pool, use the Get-RASVDIHostPool cmdlet.

Type reference: VDIHostPool

-NewName

The new name of the target VDI Host Pool.

-Description

A user-defined VDI Host Pool description.

-Enabled

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

-TemplateId

Template ID, 0 = None

-TemplateVersionId

Template Version ID

-TemplateTagId

Template Tag ID

-MaxHosts

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

-PreCreatedHosts

The maximum pre-created hosts that can be created.

-HostName

The VM name format. All VMs created from the template will have this name with %ID:N:S% replaced.

-DefaultPowerState

The Default Power State

Possible values: PoweredOn, PoweredOff, Suspended

Type reference: DefaultPowerState

-Duration

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

-WildCard

A user-defined VDI Host Pool wildcard.

-InheritDefaultVDIActionSettings

Enable or disable the 'Inherit default Action settings' option. This will inherit Global Action settings from the default profile.

If you would like to specify custom settings, you need to disable this option and specify the desired parameters.

-SessionAction

Session change state.

Possible values: Disconnect, Logoff

Type reference: SessionAction

-PerformAction

Perform action on session change.

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

Type reference: PerformAction

-PerformActionAfterSec

Perform action after (in seconds).

-InheritDefaultUserProfileSettings

Enable or disable the 'Inherit default user profile settings' option. This will inherit VDI User Profile settings from the default profile.

If you would like to specify custom settings, you need to disable this option and specify the desired parameters.

-Technology

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

Type reference: UserProfileTech

-InheritDefaultAppPackageSettings

If true, default app package settings will be inherited.

-InheritDefaultOptimizationSettings

Enable or disable the 'Inherit default Optimization Settings' option. This will inherit Image Optimization settings from the default profile.

If you would like to specify custom settings, you need to disable this option and specify the desired parameters.

-InheritDefaultAgentSettings

If true, default VDI Agent settings will be inherited.

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

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

-DragAndDropMode

Specifies the mode the drag and drop feature will operate.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: DragAndDropModeValue

-AllowRemoteExec

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

-ManageRDPTransportProtocol

Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

Type reference: ManageRDPTransportProtocol

-EnableAppMonitoring

Specifies if 'Application Monitoring' option is enabled or disabled.

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

-InheritDefaultRDPPrinterSettings

Enable or disable the 'Inherit default RDP printer settings' option. This will inherit Global printer settings from the default profile.

If you would like to specify custom settings, you need to disable this option and specify the desired parameters.

-PrinterNameFormat

Specifies the 'Printer Name Format' option. Accepted values: PrnFormat_PRN_CMP_SES, PrnFormat_SES_CMP_PRN, PrnFormat_PRN_REDSES.

Possible values: PrnFormat_PRN_CMP_SES, PrnFormat_SES_CMP_PRN, PrnFormat_PRN_REDSES

Type reference: PrnNameFormat

-RemoveSessionNumberFromPrinterName

Enable or disable the 'Remove session number from printer name' option.

-InheritDefaultVDISecuritySettings

Enable or disable the 'Inherit default Security settings' option. This will inherit Global Security settings from the default profile.

If you would like to specify custom settings, you need to disable this option and specify the desired parameters.

-IsUsersGrantedRDPermissions

Grant users RD permission.

-GroupType

Group type that will get RD premission.

Possible values: Administrators, RemoteDesktopUsers

Type reference: UserGroupType

-InheritDefaultAutoUpgradeSettings

Enable or disable the 'Inherit default Auto-upgrade Settings' option. This will inherit Auto-upgrade settings from the default profile.

If you would like to specify custom settings, you need to disable this option and specify the desired parameters.

-DatastoreSource

Datastore Source.

Possible values: Template, Selection

Type reference: DatastoreSourceType

-DatastoreIDs

Datastore IDs.

-OverrideStorage

Specifications: Whether Override Storage is Enabled or not. (Override Storage)

Available to Azure/AWS

-OverrideSize

Specifications: Whether Override Size is Enabled or not.

Available when host pool is templated from AWS or Azure.

-VMSize

Specifications: VMSize which will override the size specified in template properties.

Available when host pool is templated from AWS or Azure.

Example: Standard_B2s

-OverrideDomainOrgUnit

Whether Override Domain Org Unit is enabled or not (OverrideDomainOrgUnit).

-DomainOrgUnit

Domain Organization unit

-OverrideCluster

Specifications: Whether Override Cluster is Enabled or not.

Available when host pool is templated from NutanixPC.

-ClusterName

Specifications: Cluster name where desktop VMs will be created.

Available when host pool is templated from NutanixPC.

-ClusterId

Specifications: The ID of a cluster where desktop VMs will be created.

Available when host pool is templated from NutanixPC.

-OverrideNetwork

Specifications: Whether Override Network is Enabled or not.

Available when host pool is templated from NutanixPC or AWS.

-SubnetId

Specifications: Subnet Id.

Available when host pool is templated from NutanixPC.

-SubnetName

Specifications: Subnet name.

Available when host pool is templated from NutanixPC.

-AWSSubnetsIds

Specifications: Add or remove Amazon Web Service Subnets.

Available when host pool is templated from AWS.

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

VDIHostPool

OUTPUTS

None

Last updated