# Set-RASProvider

## NAME

Set-RASProvider

## SYNOPSIS

Modifies Provider server settings.

## SYNTAX

**Set-RASProvider** \[-[Id](#Id)] _\<uint>_ \[-[AccessKeyID](#AccessKeyID) _\<string>_] \[-[ADType](#ADType) {WindowsServerADDS | AzureADDS}] \[-[AllowDragAndDrop](#AllowDragAndDrop) _\<bool>_] \[-[AllowFileTransfer](#AllowFileTransfer) _\<bool>_] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AutoPreferredBroker](#AutoPreferredBroker) _\<SwitchParameter>_] \[-[CostOptimizeTimeout](#CostOptimizeTimeout) _\<uint>_] \[-[Description](#Description) _\<string>_] \[-[DirectAddress](#DirectAddress) _\<string>_] \[-[DomainTargetOU](#DomainTargetOU) _\<string>_] \[-[EnableCostOptimize](#EnableCostOptimize) _\<bool>_] \[-[Enabled](#Enabled) _\<bool>_] \[-[EnableDriveRedirectionCache](#EnableDriveRedirectionCache) _\<bool>_] \[-[EnableMacManagement](#EnableMacManagement) _\<bool>_] \[-[EndMacAddress](#EndMacAddress) _\<string>_] \[-[EndpointUrl](#EndpointUrl) _\<string>_] \[-[FeedURL](#FeedURL) _\<string>_] \[-[FileTransferLocation](#FileTransferLocation) _\<string>_] \[-[FileTransferLockLocation](#FileTransferLockLocation) _\<bool>_] \[-[FileTransferMode](#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[HyperVFailoverVersion](#HyperVFailoverVersion) {HyperVFailoverCluster | Ent | Dtc | Win2012 | Win2012R2 | Win2016 | Win2019 | Win2022 | HyperVFailoverCluster\_Depr | Ent\_Depr | Dtc\_Depr | Win2012\_Depr | Win2012R2\_Depr | Win2016\_Depr | Win2019\_Depr | Win2022\_Depr}] \[-[HyperVVersion](#HyperVVersion) {HyperV | Win2012R2Std | Win2012R2Dtc | Win2012R2Srv | Win2016Std | Win2016Dtc | Win2016Srv | Win2019Std | Win2019Dtc | Win2019Srv | Win2022Std | Win2022Dtc | Win2022DtcAzure | HyperV\_Depr | Win2012R2Std\_Depr | Win2012R2Dtc\_Depr | Win2012R2Srv\_Depr | Win2016Std\_Depr | Win2016Dtc\_Depr | Win2016Srv\_Depr | Win2019Std\_Depr | Win2019Dtc\_Depr | Win2019Srv\_Depr | Win2022Std\_Depr | Win2022Dtc\_Depr | Win2022DtcAzure\_Depr}] \[-[LocationType](#LocationType) {Default | OptedIn | EndpointUrl}] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[NewName](#NewName) _\<string>_] \[-[NewServer](#NewServer) _\<string>_] \[-[NutanixVersion](#NutanixVersion) {Nutanix | v5\_15 | v5\_20 | v6\_5 | Nutanix\_Depr | v5\_15\_Depr | v5\_20\_Depr | v6\_5\_Depr}] \[-[Port](#Port) _\<uint>_] \[-[PreferredBrokerId](#PreferredBrokerId) _\<uint>_] \[-[PreferredBrokerObj](#PreferredBrokerObj) _<_[_Broker_](../classes-and-enumerations/broker)_>_] \[-[PrinterNameFormat](#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[ProviderPassword](#ProviderPassword) _\<SecureString>_] \[-[ProviderUsername](#ProviderUsername) _\<string>_] \[-[RegionCode](#RegionCode) _\<string>_] \[-[RegionName](#RegionName) _\<string>_] \[-[RemotePCDynamicSubnet](#RemotePCDynamicSubnet) _\<string>_] \[-[RemoveClientNameFromPrinterName](#RemoveClientNameFromPrinterName) _\<bool>_] \[-[RemoveSessionNumberFromPrinterName](#RemoveSessionNumberFromPrinterName) _\<bool>_] \[-[ResourcePool](#ResourcePool) _\<string>_] \[-[ScaleVersion](#ScaleVersion) {Scale | v8\_9 | v9\_1 | v9\_2 | Scale\_Depr | v8\_9\_Depr | v9\_1\_Depr}] \[-[SecretAccessKey](#SecretAccessKey) _\<SecureString>_] \[-[StartMacAddress](#StartMacAddress) _\<string>_] \[-[SupportShellURLNamespaceObjects](#SupportShellURLNamespaceObjects) _\<bool>_] \[-[UseAllGuests](#UseAllGuests) _\<bool>_] \[-[VCenterVersion](#VCenterVersion) {VmwareVCenter | v6\_5 | v6\_7 | v7\_0 | v8\_0 | VmwareVCenter\_Depr | v6\_5\_Depr | v6\_7\_Depr | v7\_0\_Depr | v8\_0\_Depr}] \[-[VDIAgent](#VDIAgent) _\<string>_] \[-[VDIPort](#VDIPort) _\<uint>_] \[-[VmwareESXiVersion](#VmwareESXiVersion) {VmwareESXi | v6\_5 | v6\_7 | v7\_0 | v8\_0 | VmwareESXi\_Depr | v6\_5\_Depr | v6\_7\_Depr | v7\_0\_Depr | v8\_0\_Depr}] \[-[WebAccessURL](#WebAccessURL) _\<string>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Set-RASProvider** \[-[InputObject](#InputObject)] _<_[_Provider_](../classes-and-enumerations/provider)_>_ \[-[AccessKeyID](#AccessKeyID) _\<string>_] \[-[ADType](#ADType) {WindowsServerADDS | AzureADDS}] \[-[AllowDragAndDrop](#AllowDragAndDrop) _\<bool>_] \[-[AllowFileTransfer](#AllowFileTransfer) _\<bool>_] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AutoPreferredBroker](#AutoPreferredBroker) _\<SwitchParameter>_] \[-[CostOptimizeTimeout](#CostOptimizeTimeout) _\<uint>_] \[-[Description](#Description) _\<string>_] \[-[DirectAddress](#DirectAddress) _\<string>_] \[-[DomainTargetOU](#DomainTargetOU) _\<string>_] \[-[EnableCostOptimize](#EnableCostOptimize) _\<bool>_] \[-[Enabled](#Enabled) _\<bool>_] \[-[EnableDriveRedirectionCache](#EnableDriveRedirectionCache) _\<bool>_] \[-[EnableMacManagement](#EnableMacManagement) _\<bool>_] \[-[EndMacAddress](#EndMacAddress) _\<string>_] \[-[EndpointUrl](#EndpointUrl) _\<string>_] \[-[FeedURL](#FeedURL) _\<string>_] \[-[FileTransferLocation](#FileTransferLocation) _\<string>_] \[-[FileTransferLockLocation](#FileTransferLockLocation) _\<bool>_] \[-[FileTransferMode](#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[HyperVFailoverVersion](#HyperVFailoverVersion) {HyperVFailoverCluster | Ent | Dtc | Win2012 | Win2012R2 | Win2016 | Win2019 | Win2022 | HyperVFailoverCluster\_Depr | Ent\_Depr | Dtc\_Depr | Win2012\_Depr | Win2012R2\_Depr | Win2016\_Depr | Win2019\_Depr | Win2022\_Depr}] \[-[HyperVVersion](#HyperVVersion) {HyperV | Win2012R2Std | Win2012R2Dtc | Win2012R2Srv | Win2016Std | Win2016Dtc | Win2016Srv | Win2019Std | Win2019Dtc | Win2019Srv | Win2022Std | Win2022Dtc | Win2022DtcAzure | HyperV\_Depr | Win2012R2Std\_Depr | Win2012R2Dtc\_Depr | Win2012R2Srv\_Depr | Win2016Std\_Depr | Win2016Dtc\_Depr | Win2016Srv\_Depr | Win2019Std\_Depr | Win2019Dtc\_Depr | Win2019Srv\_Depr | Win2022Std\_Depr | Win2022Dtc\_Depr | Win2022DtcAzure\_Depr}] \[-[LocationType](#LocationType) {Default | OptedIn | EndpointUrl}] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[NewName](#NewName) _\<string>_] \[-[NewServer](#NewServer) _\<string>_] \[-[NutanixVersion](#NutanixVersion) {Nutanix | v5\_15 | v5\_20 | v6\_5 | Nutanix\_Depr | v5\_15\_Depr | v5\_20\_Depr | v6\_5\_Depr}] \[-[Port](#Port) _\<uint>_] \[-[PreferredBrokerId](#PreferredBrokerId) _\<uint>_] \[-[PreferredBrokerObj](#PreferredBrokerObj) _<_[_Broker_](../classes-and-enumerations/broker)_>_] \[-[PrinterNameFormat](#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[ProviderPassword](#ProviderPassword) _\<SecureString>_] \[-[ProviderUsername](#ProviderUsername) _\<string>_] \[-[RegionCode](#RegionCode) _\<string>_] \[-[RegionName](#RegionName) _\<string>_] \[-[RemotePCDynamicSubnet](#RemotePCDynamicSubnet) _\<string>_] \[-[RemoveClientNameFromPrinterName](#RemoveClientNameFromPrinterName) _\<bool>_] \[-[RemoveSessionNumberFromPrinterName](#RemoveSessionNumberFromPrinterName) _\<bool>_] \[-[ResourcePool](#ResourcePool) _\<string>_] \[-[ScaleVersion](#ScaleVersion) {Scale | v8\_9 | v9\_1 | v9\_2 | Scale\_Depr | v8\_9\_Depr | v9\_1\_Depr}] \[-[SecretAccessKey](#SecretAccessKey) _\<SecureString>_] \[-[StartMacAddress](#StartMacAddress) _\<string>_] \[-[SupportShellURLNamespaceObjects](#SupportShellURLNamespaceObjects) _\<bool>_] \[-[UseAllGuests](#UseAllGuests) _\<bool>_] \[-[VCenterVersion](#VCenterVersion) {VmwareVCenter | v6\_5 | v6\_7 | v7\_0 | v8\_0 | VmwareVCenter\_Depr | v6\_5\_Depr | v6\_7\_Depr | v7\_0\_Depr | v8\_0\_Depr}] \[-[VDIAgent](#VDIAgent) _\<string>_] \[-[VDIPort](#VDIPort) _\<uint>_] \[-[VmwareESXiVersion](#VmwareESXiVersion) {VmwareESXi | v6\_5 | v6\_7 | v7\_0 | v8\_0 | VmwareESXi\_Depr | v6\_5\_Depr | v6\_7\_Depr | v7\_0\_Depr | v8\_0\_Depr}] \[-[WebAccessURL](#WebAccessURL) _\<string>_] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Set-RASProvider** \[-[Name](#Name)] _\<string>_ \[\[-[SiteId](#SiteId)] _\<uint>_] \[-[AccessKeyID](#AccessKeyID) _\<string>_] \[-[ADType](#ADType) {WindowsServerADDS | AzureADDS}] \[-[AllowDragAndDrop](#AllowDragAndDrop) _\<bool>_] \[-[AllowFileTransfer](#AllowFileTransfer) _\<bool>_] \[-[AllowURLAndMailRedirection](#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AutoPreferredBroker](#AutoPreferredBroker) _\<SwitchParameter>_] \[-[CostOptimizeTimeout](#CostOptimizeTimeout) _\<uint>_] \[-[Description](#Description) _\<string>_] \[-[DirectAddress](#DirectAddress) _\<string>_] \[-[DomainTargetOU](#DomainTargetOU) _\<string>_] \[-[EnableCostOptimize](#EnableCostOptimize) _\<bool>_] \[-[Enabled](#Enabled) _\<bool>_] \[-[EnableDriveRedirectionCache](#EnableDriveRedirectionCache) _\<bool>_] \[-[EnableMacManagement](#EnableMacManagement) _\<bool>_] \[-[EndMacAddress](#EndMacAddress) _\<string>_] \[-[EndpointUrl](#EndpointUrl) _\<string>_] \[-[FeedURL](#FeedURL) _\<string>_] \[-[FileTransferLocation](#FileTransferLocation) _\<string>_] \[-[FileTransferLockLocation](#FileTransferLockLocation) _\<bool>_] \[-[FileTransferMode](#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[HyperVFailoverVersion](#HyperVFailoverVersion) {HyperVFailoverCluster | Ent | Dtc | Win2012 | Win2012R2 | Win2016 | Win2019 | Win2022 | HyperVFailoverCluster\_Depr | Ent\_Depr | Dtc\_Depr | Win2012\_Depr | Win2012R2\_Depr | Win2016\_Depr | Win2019\_Depr | Win2022\_Depr}] \[-[HyperVVersion](#HyperVVersion) {HyperV | Win2012R2Std | Win2012R2Dtc | Win2012R2Srv | Win2016Std | Win2016Dtc | Win2016Srv | Win2019Std | Win2019Dtc | Win2019Srv | Win2022Std | Win2022Dtc | Win2022DtcAzure | HyperV\_Depr | Win2012R2Std\_Depr | Win2012R2Dtc\_Depr | Win2012R2Srv\_Depr | Win2016Std\_Depr | Win2016Dtc\_Depr | Win2016Srv\_Depr | Win2019Std\_Depr | Win2019Dtc\_Depr | Win2019Srv\_Depr | Win2022Std\_Depr | Win2022Dtc\_Depr | Win2022DtcAzure\_Depr}] \[-[LocationType](#LocationType) {Default | OptedIn | EndpointUrl}] \[-[ManageRDPTransportProtocol](#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[NewName](#NewName) _\<string>_] \[-[NewServer](#NewServer) _\<string>_] \[-[NutanixVersion](#NutanixVersion) {Nutanix | v5\_15 | v5\_20 | v6\_5 | Nutanix\_Depr | v5\_15\_Depr | v5\_20\_Depr | v6\_5\_Depr}] \[-[Port](#Port) _\<uint>_] \[-[PreferredBrokerId](#PreferredBrokerId) _\<uint>_] \[-[PreferredBrokerObj](#PreferredBrokerObj) _<_[_Broker_](../classes-and-enumerations/broker)_>_] \[-[PrinterNameFormat](#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[ProviderPassword](#ProviderPassword) _\<SecureString>_] \[-[ProviderUsername](#ProviderUsername) _\<string>_] \[-[RegionCode](#RegionCode) _\<string>_] \[-[RegionName](#RegionName) _\<string>_] \[-[RemotePCDynamicSubnet](#RemotePCDynamicSubnet) _\<string>_] \[-[RemoveClientNameFromPrinterName](#RemoveClientNameFromPrinterName) _\<bool>_] \[-[RemoveSessionNumberFromPrinterName](#RemoveSessionNumberFromPrinterName) _\<bool>_] \[-[ResourcePool](#ResourcePool) _\<string>_] \[-[ScaleVersion](#ScaleVersion) {Scale | v8\_9 | v9\_1 | v9\_2 | Scale\_Depr | v8\_9\_Depr | v9\_1\_Depr}] \[-[SecretAccessKey](#SecretAccessKey) _\<SecureString>_] \[-[StartMacAddress](#StartMacAddress) _\<string>_] \[-[SupportShellURLNamespaceObjects](#SupportShellURLNamespaceObjects) _\<bool>_] \[-[UseAllGuests](#UseAllGuests) _\<bool>_] \[-[VCenterVersion](#VCenterVersion) {VmwareVCenter | v6\_5 | v6\_7 | v7\_0 | v8\_0 | VmwareVCenter\_Depr | v6\_5\_Depr | v6\_7\_Depr | v7\_0\_Depr | v8\_0\_Depr}] \[-[VDIAgent](#VDIAgent) _\<string>_] \[-[VDIPort](#VDIPort) _\<uint>_] \[-[VmwareESXiVersion](#VmwareESXiVersion) {VmwareESXi | v6\_5 | v6\_7 | v7\_0 | v8\_0 | VmwareESXi\_Depr | v6\_5\_Depr | v6\_7\_Depr | v7\_0\_Depr | v8\_0\_Depr}] \[-[WebAccessURL](#WebAccessURL) _\<string>_] \[_<_[_CommonParameters_](#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.

## PARAMETERS

-**Name \<string>**\
The name of the Provider.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SiteId \<uint>**\
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.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<uint>**\
The ID of the Provider server to modify. To obtain the ID, use the Get-RASProvider cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InputObject <**[**Provider**](../classes-and-enumerations/provider)**>**\
An object representing the Provider server to modify.

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

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

-**Enabled \<bool>**\
Enables or disables the specified Provider server in a site.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**NewName \<string>**\
A new name for the Provider.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**NewServer \<string>**\
The name of the target Provider server.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Description \<string>**\
A user-defined Provider server description.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**DirectAddress \<string>**\
Specifies the Provider server direct address.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Port \<uint>**\
Specifies the port number for the RAS VDI Agent.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**VDIAgent \<string>**\
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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowURLAndMailRedirection <**[**AllowURLAndMailRedirection**](../classes-and-enumerations/allowurlandmailredirection)**>**\
Set the URL and Mail Redirection option. Possible values: 0 = Disabled, 1 = Enabled, 2 = Enabled with application registration.

Possible values: Disabled, Enabled, EnabledWithAppRegistration

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SupportShellURLNamespaceObjects \<bool>**\
Enable or disable the 'Support Shell URL Namespace Objects' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowDragAndDrop \<bool>**\
Set the Drag and Drop option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AllowFileTransfer \<bool>**\
Deprecated: use FileTransferMode instead.

Enable or disable the 'Allow file transfer' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**FileTransferMode <**[**FileTransferControlMode**](../classes-and-enumerations/filetransfercontrolmode)**>**\
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

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

-**RemoveClientNameFromPrinterName \<bool>**\
Enable or disable the 'Remove client name from printer name' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**RemoveSessionNumberFromPrinterName \<bool>**\
Enable or disable the 'Remove session number from printer name' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PrinterNameFormat <**[**PrnNameFormat**](../classes-and-enumerations/prnnameformat)**>**\
Specifies the 'RDP 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
```

-**AutoPreferredBroker \<SwitchParameter>**\
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.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**EnableDriveRedirectionCache \<bool>**\
Enable or disable the 'Enable Drive Redirection Cache' option.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ManageRDPTransportProtocol <**[**ManageRDPTransportProtocol**](../classes-and-enumerations/managerdptransportprotocol)**>**\
Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ProviderUsername \<string>**\
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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ProviderPassword \<SecureString>**\
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.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**VDIPort \<uint>**\
The port to communicate with the dedicated VDIAgent specified in the VDIAgent parameter.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PreferredBrokerObj <**[**Broker**](../classes-and-enumerations/broker)**>**\
The preferred Connection Broker server.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**PreferredBrokerId \<uint>**\
The preferred Connection Broker ID.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**UseAllGuests \<bool>**\
Use all guests.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**CostOptimizeTimeout \<uint>**\
Cost Optimize Timeout in seconds. Applicable to: AVD (Experimental) and Azure.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**EnableCostOptimize \<bool>**\
Enable Cost Optimize. Applicable to: AVD (Experimental) and Azure.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**FeedURL \<string>**\
The Feed URL. Applicable to: AVD (Experimental).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**WebAccessURL \<string>**\
The Web Access URL. Applicable to: AVD (Experimental).

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ADType <**[**ADType**](../classes-and-enumerations/adtype)**>**\
The ADType. Applicable to: AVD (Experimental).

Possible values: WindowsServerADDS, AzureADDS

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**AccessKeyID \<string>**\
The access key ID of the Amazon Web Service account. Applicable to: AWSEC2.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SecretAccessKey \<SecureString>**\
The secret access key of the Amazon Web Service account. Applicable to: AWSEC2.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**LocationType <**[**EC2LocationType**](../classes-and-enumerations/ec2locationtype)**>**\
The location type of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

Possible values: Default, OptedIn, EndpointUrl

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**RegionName \<string>**\
The region name of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**RegionCode \<string>**\
The region code of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**EndpointUrl \<string>**\
The endpoint URL of the Amazon Elastic Compute Cloud. Applicable to: AWSEC2.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**HyperVVersion <**[**HyperVVersion**](../classes-and-enumerations/hypervversion)**>**\
Specifies the HyperV Version. Applicable to: HyperV.

Possible values: HyperV, Win2012R2Std, Win2012R2Dtc, Win2012R2Srv, Win2016Std, Win2016Dtc, Win2016Srv, Win2019Std, Win2019Dtc, Win2019Srv, Win2022Std, Win2022Dtc, Win2022DtcAzure, HyperV\_Depr, Win2012R2Std\_Depr, Win2012R2Dtc\_Depr, Win2012R2Srv\_Depr, Win2016Std\_Depr, Win2016Dtc\_Depr, Win2016Srv\_Depr, Win2019Std\_Depr, Win2019Dtc\_Depr, Win2019Srv\_Depr, Win2022Std\_Depr, Win2022Dtc\_Depr, Win2022DtcAzure\_Depr

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**HyperVFailoverVersion <**[**HyperVFailoverClusterVersion**](../classes-and-enumerations/hypervfailoverclusterversion)**>**\
Specifies the HyperV Failover Version. Applicable to: HyperV Failover.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**StartMacAddress \<string>**\
Starting MAC Address. Applicable to: HyperV Failover.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**EndMacAddress \<string>**\
Ending MAC Address. Applicable to: HyperV Failover.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**EnableMacManagement \<bool>**\
Specifies if the MAC Management is enabled or not. Applicable to: HyperV Failover.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**NutanixVersion <**[**NutanixVersion**](../classes-and-enumerations/nutanixversion)**>**\
Specifies the Nutanix Version. Applicable to: Nutanix.

Possible values: Nutanix, v5\_15, v5\_20, v6\_5, Nutanix\_Depr, v5\_15\_Depr, v5\_20\_Depr, v6\_5\_Depr

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**DomainTargetOU \<string>**\
Domain Target OU. Applicable to: Remote PC Dynamic.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**RemotePCDynamicSubnet \<string>**\
The subnet of the remote PC dynamic. Applicable to: Remote PC Dynamic.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ScaleVersion <**[**ScaleVersion**](../classes-and-enumerations/scaleversion)**>**\
Specifies the Scale Version. Applicable to: Scale.

Possible values: Scale, v8\_9, v9\_1, v9\_2, Scale\_Depr, v8\_9\_Depr, v9\_1\_Depr

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**VCenterVersion <**[**VmwareVCenterVersion**](../classes-and-enumerations/vmwarevcenterversion)**>**\
Specifies the VCenter Version. Applicable to: VCenter.

Possible values: VmwareVCenter, v6\_5, v6\_7, v7\_0, v8\_0, VmwareVCenter\_Depr, v6\_5\_Depr, v6\_7\_Depr, v7\_0\_Depr, v8\_0\_Depr

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**ResourcePool \<string>**\
Resource Pool. Applicable to: VCenter

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**VmwareESXiVersion <**[**VmwareESXiVersion**](../classes-and-enumerations/vmwareesxiversion)**>**\
Specifies the VMware ESXi Version. Applicable to: VMwareESXi

Possible values: VmwareESXi, v6\_5, v6\_7, v7\_0, v8\_0, VmwareESXi\_Depr, v6\_5\_Depr, v6\_7\_Depr, v7\_0\_Depr, v8\_0\_Depr

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

[Provider](../classes-and-enumerations/provider)

## OUTPUTS

-none-

## EXAMPLES

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

Set-RASProvider -Server "server.company.dom" -Enabled $False

Disables the specified Provider server in the Licensing Server site.

**---------- EXAMPLE 2 ----------**

Set-RASProvider -Id 3 -Enabled $False

Disables the Provider server specified by ID.

**---------- EXAMPLE 3 ----------**

Set-RASProvider $Provider -Enabled $True

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.\
&#xNAN;**---------- EXAMPLE 4 ----------**

Set-RASProvider $Provider -VCenter -ResourcePool "ResourcePool"

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

The object is obtained using the Get-RASProvider cmdlet.\
&#xNAN;**---------- EXAMPLE 5 ----------**

Get-RASProvider -Id 3 | Set-RASProvider -Enabled $True

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

## RELATED LINKS

* [New-RASProvider](new-rasprovider)
* [Get-RASProvider](get-rasprovider)
* [Remove-RASProvider](remove-rasprovider)
