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

Set-RASProvider

SYNOPSIS

Modifies Provider server settings.

SYNTAX

Set-RASProvider [-Id] <uint> [-AccessKeyID <string>]
 [-ADType {ActiveDirectoryDomainServicesObjectGuid | ActiveDirectoryDomainServicesObjectGuidString | MicrosoftEntraDomainServices | WindowsServerADDS | AzureADDS}]
 [-AllowDragAndDrop <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-Arguments <string>] [-AutoPreferredConnectionBroker <SwitchParameter>]
 [-CollectCostsForThisProvider <bool>] [-Command <string>] [-CostInsightsAppID <string>]
 [-CostInsightsAppKey <SecureString>] [-CostOptimizeTimeout <uint>] [-Description <string>]
 [-DirectAddress <string>] [-DomainTargetOU <string>]
 [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}] [-EnableCostOptimize <bool>]
 [-Enabled <bool>] [-EnableDriveRedirectionCache <bool>] [-EnableMacManagement <bool>]
 [-EndMacAddress <string>] [-EndpointUrl <string>] [-FeedURL <string>]
 [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>]
 [-HyperVFailoverVersion {HyperVFailoverCluster | Ent | Dtc | Win2012 | Win2012R2 | Win2016 | Win2019 | Win2022 | Win2025}]
 [-HyperVVersion {HyperV | Win2012R2Std | Win2012R2Dtc | Win2012R2Srv | Win2016Std | Win2016Dtc | Win2016Srv | Win2019Std | Win2019Dtc | Win2019Srv | Win2022Std | Win2022Dtc | Win2022DtcAzure | Win2025Std | Win2025Dtc | Win2025DtcAzure}]
 [-LocationType {Default | OptedIn | EndpointUrl}]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] [-NewName <string>]
 [-NewServer <string>] [-NutanixPCVersion {NutanixPC | v7_3 | v7_5}]
 [-NutanixVersion {Nutanix | v5_15 | v5_20 | v6_5 | v6_10 | v7_3}] [-Port <uint>]
 [-PreferredConnectionBrokerId <uint>] [-PreferredConnectionBrokerObj <ConnectionBroker>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-ProviderPassword <SecureString>] [-ProviderUsername <string>] [-RegionCode <string>]
 [-RegionName <string>] [-RemotePCDynamicSubnet <string>] [-RemoveClientNameFromPrinterName <bool>]
 [-RemoveSessionNumberFromPrinterName <bool>] [-ResourcePool <string>] [-ResourcePoolID <string>]
 [-ScaleVersion {Scale | v9_4 | v9_6}] [-SecretAccessKey <SecureString>] [-StartMacAddress <string>]
 [-SupportShellURLNamespaceObjects <bool>] [-UseAllGuests <bool>] [-UseSameAppRegAsProvider <bool>]
 [-VCenterVersion {VmwareVCenter | v6_5 | v6_7 | v7_0 | v8_0 | v9_0 | v9_1}] [-VDIAgent <string>]
 [-VDIPort <uint>] [-VmwareESXiVersion {VmwareESXi | v6_5 | v6_7 | v7_0 | v8_0 | v9_0 | v9_1}]
 [-WebAccessURL <string>] [-Workdir <string>] [<CommonParameters>]

DESCRIPTION

Modifies settings of a Provider server.

For each setting, the cmdlet includes a corresponding input parameter. To modify a setting, specify a parameter and its value.

EXAMPLES

Example 1

Disables the specified Provider server in the Licensing Server site.

Example 2

Disables the Provider server specified by ID.

Example 3

Enables the Provider server specified by the $Provider variable, which is an object of type Provider.

The object is obtained using the Get-RASProvider cmdlet.

Example 4

Sets the ResourcePool of the VCenter Provider server specified by the $Provider variable.

The object is obtained using the Get-RASProvider cmdlet.

Example 5

Enables the Provider server represented by a Provider object obtained from the pipeline output.

PARAMETERS

-Name

The name of the Provider.

-SiteId

Site ID in which to modify the specified Provider server.

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

-Id

The ID of the Provider server to modify. To obtain the ID, use the Get-RASProvider cmdlet.

-InputObject

An object representing the Provider server to modify.

To obtain the object, use the Get-RASProvider cmdlet.

Type reference: Provider

-Enabled

Enables or disables the specified Provider server in a site.

-NewName

A new name for the Provider.

-NewServer

The name of the target Provider server.

This must be the actual server name used in the RAS farm.

-Description

A user-defined Provider server description.

-DirectAddress

Specifies the Provider server direct address.

-Port

Specifies the port number for the RAS VDI Agent.

-VDIAgent

FQDN or IP address of the server where the RAS VDI Agent is running.

You only need to specify this parameter if the RAS VDI Agent is dedicated.

-AllowURLAndMailRedirection

Set the URL and Mail Redirection option. Possible values: 0 = Disabled, 1 = Enabled, 2 = Enabled with application registration.

Possible values: Disabled, Enabled, EnabledWithAppRegistration

Type reference: AllowURLAndMailRedirection

-SupportShellURLNamespaceObjects

Enable or disable the 'Support Shell URL Namespace Objects' option.

-AllowDragAndDrop

Set the Drag and Drop option.

-FileTransferMode

File Transfer option. Possible values are: 0 (Disabled), 1 (client to Server only), 2 {Server To Client only), 3 (Bidirectional).

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.

-RemoveClientNameFromPrinterName

Enable or disable the 'Remove client name from printer name' option.

-RemoveSessionNumberFromPrinterName

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

-PrinterNameFormat

Specifies the 'RDP Printer Name Format' option.

Possible values: PrnFormat_PRN_CMP_SES, PrnFormat_SES_CMP_PRN, PrnFormat_PRN_REDSES

Type reference: PrnNameFormat

-AutoPreferredConnectionBroker

Set the 'Preferred Connection Broker' option to 'Automatically". If number of Connection Brokers is less than 3 then preferred Conection Broker is not allowed to choose automatic.

-EnableDriveRedirectionCache

Enable or disable the 'Enable Drive Redirection Cache' option.

-DriveRedirectionFileCache

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

Possible values: None, ReadAhead, ReadAheadWriteBehind

Type reference: DriveRedirectionFileCacheMode

-ManageRDPTransportProtocol

Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

Type reference: ManageRDPTransportProtocol

-ProviderUsername

A user account to log in to the hypervisor management tool (e.g. VMware vCenter).

In case of Azure, it is an ID of the application which will be used by VDI agent to manage Azure resources.

-ProviderPassword

The password of the account specified in the ProviderUsername parameter.

In case of Azure, it is a secret key of the application which will be used by VDI agent to manage Azure resources.

-VDIPort

The port to communicate with the dedicated VDIAgent specified in the VDIAgent parameter.

-PreferredConnectionBrokerObj

The preferred Connection Broker server.

To obtain an object of type Broker representing the preferred Connection Broker, use the Get-RASConnectionBroker cmdlet.

Type reference: ConnectionBroker

-PreferredConnectionBrokerId

The preferred Connection Broker ID.

-UseAllGuests

Use all guests.

-CostOptimizeTimeout

Cost Optimize Timeout in seconds. Applicable to: AVD and Azure.

-EnableCostOptimize

Enable Cost Optimize. Applicable to: AVD and Azure.

-CollectCostsForThisProvider

Collect costs for this provider.

-UseSameAppRegAsProvider

Use the same application registration configured on this provider.

-CostInsightsAppID

Cost Insights Application ID credential.

-CostInsightsAppKey

The password of the account specified in the CostInsightsAppID parameter.

-FeedURL

The Feed URL. Applicable to: AVD.

-WebAccessURL

The Web Access URL. Applicable to: AVD.

-ADType

The ADType. Applicable to: AVD.

Possible values: ActiveDirectoryDomainServicesObjectGuid, ActiveDirectoryDomainServicesObjectGuidString, MicrosoftEntraDomainServices, WindowsServerADDS, AzureADDS

Type reference: ADType

-AccessKeyID

The access key ID of the Amazon Web Service account. Applicable to: AWSEC2.

-SecretAccessKey

The secret access key of the Amazon Web Service account. Applicable to: AWSEC2.

-LocationType

The location type of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

Possible values: Default, OptedIn, EndpointUrl

Type reference: EC2LocationType

-RegionName

The region name of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

-RegionCode

The region code of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

-EndpointUrl

The endpoint URL of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

Example: https://ec2.us-east01.amazonaws.com.

-Arguments

Arguments to launch the script. Applicable to: Custom Provider.

-Command

Command to launch the script. Applicable to: Custom Provider.

-Workdir

Script working directory. Applicable to: Custom Provider.

-HyperVVersion

Specifies the HyperV Version. Applicable to: HyperV.

Possible values: HyperV, Win2012R2Std, Win2012R2Dtc, Win2012R2Srv, Win2016Std, Win2016Dtc, Win2016Srv, Win2019Std, Win2019Dtc, Win2019Srv, Win2022Std, Win2022Dtc, Win2022DtcAzure, Win2025Std, Win2025Dtc, Win2025DtcAzure

Type reference: HyperVVersion

-HyperVFailoverVersion

Specifies the HyperV Failover Version. Applicable to: HyperV Failover.

Possible values: HyperVFailoverCluster, Ent, Dtc, Win2012, Win2012R2, Win2016, Win2019, Win2022, Win2025

Type reference: HyperVFailoverClusterVersion

-StartMacAddress

Starting MAC Address. Applicable to: HyperV Failover.

-EndMacAddress

Ending MAC Address. Applicable to: HyperV Failover.

-EnableMacManagement

Specifies if the MAC Management is enabled or not. Applicable to: HyperV Failover.

-NutanixVersion

Specifies the Nutanix Version. Applicable to: Nutanix.

Possible values: Nutanix, v5_15, v5_20, v6_5, v6_10, v7_3

Type reference: NutanixVersion

-NutanixPCVersion

Specifies the Nutanix Prism Central Version. Applicable to: NutanixPC

Possible values: NutanixPC, v7_3, v7_5

Type reference: NutanixPCVersion

-DomainTargetOU

Domain Target OU. Applicable to: Remote PC Dynamic.

-RemotePCDynamicSubnet

The subnet of the remote PC dynamic. Applicable to: Remote PC Dynamic.

-ScaleVersion

Specifies the Scale Version. Applicable to: Scale.

Possible values: Scale, v9_4, v9_6

Type reference: ScaleVersion

-VCenterVersion

Specifies the VCenter Version. Applicable to: VCenter.

Possible values: VmwareVCenter, v6_5, v6_7, v7_0, v8_0, v9_0, v9_1

Type reference: VmwareVCenterVersion

-ResourcePool

Resource Pool. Applicable to: VCenter

-ResourcePoolID

Resource Pool ID. Applicable to: VCenter

-VmwareESXiVersion

Specifies the VMware ESXi Version. Applicable to: VMwareESXi

Possible values: VmwareESXi, v6_5, v6_7, v7_0, v8_0, v9_0, v9_1

Type reference: VmwareESXiVersion

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

Provider

OUTPUTS

None

Last updated