# Set-RASRDSHost

### NAME

Set-RASRDSHost\ <br>

### SYNOPSIS

Modifies RD Session Host server settings.\ <br>

### SYNTAX

Set-RASRDSHost \[-[Id](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Id)] *\<uint>* \[-[AllowDragAndDrop](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowDragAndDrop) *\<bool>*] \[-[AllowFileTransfer](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowFileTransfer) *\<bool>*] \[-[AllowRemoteExec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowRemoteExec) *\<bool>*] \[-[AllowURLAndMailRedirection](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AutoPreferredBroker](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AutoPreferredBroker) *\<SwitchParameter>*] \[-[Description](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Description) *\<string>*] \[-[DirectAddress](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DirectAddress) *\<string>*] \[-[DisconnectActiveSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DisconnectActiveSessionAfter) *\<uint>*] \[-[DragAndDropMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[EnableAppMonitoring](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableAppMonitoring) *\<bool>*] \[-[Enabled](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Enabled) *\<bool>*] \[-[EnableDriveRedirectionCache](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableDriveRedirectionCache) *\<bool>*] \[-[EnablePrinting](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnablePrinting) *\<bool>*] \[-[EnableTWAIN](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableTWAIN) *\<bool>*] \[-[EnableWIA](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableWIA) *\<bool>*] \[-[ExcludeFilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ExcludeFilePath) *\<string\[]>*] \[-[ExcludeFolderPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ExcludeFolderPath) *\<string\[]>*] \[-[FileTransferLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferLocation) *\<string>*] \[-[FileTransferLockLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferLockLocation) *\<bool>*] \[-[FileTransferMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[IncludeFilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#IncludeFilePath) *\<string\[]>*] \[-[IncludeFolderPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#IncludeFolderPath) *\<string\[]>*] \[-[InheritDefaultAgentSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultAgentSettings) *\<bool>*] \[-[InheritDefaultAppPackageSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultAppPackageSettings) *\<bool>*] \[-[InheritDefaultDesktopAccessSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultDesktopAccessSettings) *\<bool>*] \[-[InheritDefaultOptimizationSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultOptimizationSettings) *\<bool>*] \[-[InheritDefaultPrinterSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultPrinterSettings) *\<bool>*] \[-[InheritDefaultUserProfileSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultUserProfileSettings) *\<bool>*] \[-[LogoffDisconnectedSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#LogoffDisconnectedSessionAfter) *\<uint>*] \[-[ManageRDPTransportProtocol](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[MaxSessions](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#MaxSessions) *\<uint>*] \[-[MaxUserProfileDiskSizeGB](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#MaxUserProfileDiskSizeGB) *\<uint>*] \[-[NewServer](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#NewServer) *\<string>*] \[-[Port](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Port) *\<uint>*] \[-[PreferredBrokerId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PreferredBrokerId) *\<uint>*] \[-[PreferredBrokerObj](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PreferredBrokerObj) *<*[*Broker*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/Broker.html)*>*] \[-[PrinterNameFormat](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[RemoveClientNameFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RemoveClientNameFromPrinterName) *\<bool>*] \[-[RemoveSessionNumberFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RemoveSessionNumberFromPrinterName) *\<bool>*] \[-[RestrictDesktopAccess](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RestrictDesktopAccess) *\<bool>*] \[-[RestrictedUsers](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RestrictedUsers) *\<string\[]>*] \[-[SupportShellURLNamespaceObjects](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#SupportShellURLNamespaceObjects) *\<bool>*] \[-[Technology](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[-[UPDiskPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDiskPath) *\<string>*] \[-[UPDMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDMode) {DoNotChange | Enabled | Disabled}] \[-[UPDRoamingMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDRoamingMode) {Exclude | Include}] \[-[UseRemoteApps](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UseRemoteApps) *\<bool>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#CommonParameters)*>*]\
\
Set-RASRDSHost \[-[InputObject](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InputObject)] *<*[*RDSHost*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RDSHost.html)*>* \[-[AllowDragAndDrop](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowDragAndDrop) *\<bool>*] \[-[AllowFileTransfer](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowFileTransfer) *\<bool>*] \[-[AllowRemoteExec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowRemoteExec) *\<bool>*] \[-[AllowURLAndMailRedirection](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AutoPreferredBroker](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AutoPreferredBroker) *\<SwitchParameter>*] \[-[Description](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Description) *\<string>*] \[-[DirectAddress](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DirectAddress) *\<string>*] \[-[DisconnectActiveSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DisconnectActiveSessionAfter) *\<uint>*] \[-[DragAndDropMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[EnableAppMonitoring](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableAppMonitoring) *\<bool>*] \[-[Enabled](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Enabled) *\<bool>*] \[-[EnableDriveRedirectionCache](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableDriveRedirectionCache) *\<bool>*] \[-[EnablePrinting](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnablePrinting) *\<bool>*] \[-[EnableTWAIN](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableTWAIN) *\<bool>*] \[-[EnableWIA](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableWIA) *\<bool>*] \[-[ExcludeFilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ExcludeFilePath) *\<string\[]>*] \[-[ExcludeFolderPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ExcludeFolderPath) *\<string\[]>*] \[-[FileTransferLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferLocation) *\<string>*] \[-[FileTransferLockLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferLockLocation) *\<bool>*] \[-[FileTransferMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[IncludeFilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#IncludeFilePath) *\<string\[]>*] \[-[IncludeFolderPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#IncludeFolderPath) *\<string\[]>*] \[-[InheritDefaultAgentSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultAgentSettings) *\<bool>*] \[-[InheritDefaultAppPackageSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultAppPackageSettings) *\<bool>*] \[-[InheritDefaultDesktopAccessSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultDesktopAccessSettings) *\<bool>*] \[-[InheritDefaultOptimizationSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultOptimizationSettings) *\<bool>*] \[-[InheritDefaultPrinterSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultPrinterSettings) *\<bool>*] \[-[InheritDefaultUserProfileSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultUserProfileSettings) *\<bool>*] \[-[LogoffDisconnectedSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#LogoffDisconnectedSessionAfter) *\<uint>*] \[-[ManageRDPTransportProtocol](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[MaxSessions](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#MaxSessions) *\<uint>*] \[-[MaxUserProfileDiskSizeGB](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#MaxUserProfileDiskSizeGB) *\<uint>*] \[-[NewServer](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#NewServer) *\<string>*] \[-[Port](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Port) *\<uint>*] \[-[PreferredBrokerId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PreferredBrokerId) *\<uint>*] \[-[PreferredBrokerObj](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PreferredBrokerObj) *<*[*Broker*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/Broker.html)*>*] \[-[PrinterNameFormat](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[RemoveClientNameFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RemoveClientNameFromPrinterName) *\<bool>*] \[-[RemoveSessionNumberFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RemoveSessionNumberFromPrinterName) *\<bool>*] \[-[RestrictDesktopAccess](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RestrictDesktopAccess) *\<bool>*] \[-[RestrictedUsers](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RestrictedUsers) *\<string\[]>*] \[-[SupportShellURLNamespaceObjects](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#SupportShellURLNamespaceObjects) *\<bool>*] \[-[Technology](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[-[UPDiskPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDiskPath) *\<string>*] \[-[UPDMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDMode) {DoNotChange | Enabled | Disabled}] \[-[UPDRoamingMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDRoamingMode) {Exclude | Include}] \[-[UseRemoteApps](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UseRemoteApps) *\<bool>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#CommonParameters)*>*]\
\
Set-RASRDSHost \[-[Server](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Server)] *\<string>* \[\[-[SiteId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#SiteId)] *\<uint>*] \[-[AllowDragAndDrop](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowDragAndDrop) *\<bool>*] \[-[AllowFileTransfer](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowFileTransfer) *\<bool>*] \[-[AllowRemoteExec](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowRemoteExec) *\<bool>*] \[-[AllowURLAndMailRedirection](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AllowURLAndMailRedirection) {Disabled | Enabled | EnabledWithAppRegistration}] \[-[AutoPreferredBroker](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#AutoPreferredBroker) *\<SwitchParameter>*] \[-[Description](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Description) *\<string>*] \[-[DirectAddress](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DirectAddress) *\<string>*] \[-[DisconnectActiveSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DisconnectActiveSessionAfter) *\<uint>*] \[-[DragAndDropMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#DragAndDropMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[EnableAppMonitoring](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableAppMonitoring) *\<bool>*] \[-[Enabled](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Enabled) *\<bool>*] \[-[EnableDriveRedirectionCache](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableDriveRedirectionCache) *\<bool>*] \[-[EnablePrinting](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnablePrinting) *\<bool>*] \[-[EnableTWAIN](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableTWAIN) *\<bool>*] \[-[EnableWIA](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#EnableWIA) *\<bool>*] \[-[ExcludeFilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ExcludeFilePath) *\<string\[]>*] \[-[ExcludeFolderPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ExcludeFolderPath) *\<string\[]>*] \[-[FileTransferLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferLocation) *\<string>*] \[-[FileTransferLockLocation](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferLockLocation) *\<bool>*] \[-[FileTransferMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#FileTransferMode) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[-[IncludeFilePath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#IncludeFilePath) *\<string\[]>*] \[-[IncludeFolderPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#IncludeFolderPath) *\<string\[]>*] \[-[InheritDefaultAgentSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultAgentSettings) *\<bool>*] \[-[InheritDefaultAppPackageSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultAppPackageSettings) *\<bool>*] \[-[InheritDefaultDesktopAccessSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultDesktopAccessSettings) *\<bool>*] \[-[InheritDefaultOptimizationSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultOptimizationSettings) *\<bool>*] \[-[InheritDefaultPrinterSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultPrinterSettings) *\<bool>*] \[-[InheritDefaultUserProfileSettings](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#InheritDefaultUserProfileSettings) *\<bool>*] \[-[LogoffDisconnectedSessionAfter](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#LogoffDisconnectedSessionAfter) *\<uint>*] \[-[ManageRDPTransportProtocol](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#ManageRDPTransportProtocol) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[-[MaxSessions](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#MaxSessions) *\<uint>*] \[-[MaxUserProfileDiskSizeGB](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#MaxUserProfileDiskSizeGB) *\<uint>*] \[-[NewServer](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#NewServer) *\<string>*] \[-[Port](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Port) *\<uint>*] \[-[PreferredBrokerId](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PreferredBrokerId) *\<uint>*] \[-[PreferredBrokerObj](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PreferredBrokerObj) *<*[*Broker*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/Broker.html)*>*] \[-[PrinterNameFormat](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#PrinterNameFormat) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[-[RemoveClientNameFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RemoveClientNameFromPrinterName) *\<bool>*] \[-[RemoveSessionNumberFromPrinterName](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RemoveSessionNumberFromPrinterName) *\<bool>*] \[-[RestrictDesktopAccess](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RestrictDesktopAccess) *\<bool>*] \[-[RestrictedUsers](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#RestrictedUsers) *\<string\[]>*] \[-[SupportShellURLNamespaceObjects](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#SupportShellURLNamespaceObjects) *\<bool>*] \[-[Technology](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#Technology) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[-[UPDiskPath](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDiskPath) *\<string>*] \[-[UPDMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDMode) {DoNotChange | Enabled | Disabled}] \[-[UPDRoamingMode](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UPDRoamingMode) {Exclude | Include}] \[-[UseRemoteApps](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#UseRemoteApps) *\<bool>*] \[*<*[*CommonParameters*](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/cmdlets/Set-RASRDSHost.html#CommonParameters)*>*]\ <br>

### DESCRIPTION

Modifies settings of an RD Session Host server.\
\
For each setting, the cmdlet has a corresponding input parameter. To modify a setting, specify a matching parameter and its value.\ <br>

### PARAMETERS

\
-**Server \<string>**\
The name of the target RD Session Host server.\
\
This must be the actual server name used in the RAS farm.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**SiteId \<uint>**\
Site ID in which to modify the specified RD Session Host server.\
\
If the parameter is omitted, the site ID of the Licensing Server will be used.\ <br>

```
        Required?                    false
```

```
        Position?                    1
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Id \<uint>**\
The ID of the RD Session Host server to modify. To obtain the ID, use the Get-RDS cmdlet.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                0
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InputObject <**[**RDSHost**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RDSHost.html)**>**\
The RD Session Host servers to modify.\
\
To obtain an object of type RDS representing a RD Session Host server, use the Get-RDS cmdlet.\ <br>

```
        Required?                    true
```

```
        Position?                    0
```

```
        Default value                
```

```
        Accept pipeline input?       true (ByValue)
```

```
        Accept wildcard characters?  false
```

\
-**Enabled \<bool>**\
Enable or disable the specified RD Session Host server in a site.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**NewServer \<string>**\
A new server name. This must be either the server's FQDN or IP address.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Description \<string>**\
A user-defined RD Session Host server description.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DirectAddress \<string>**\
Specifies the RD Session Host server direct address.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritDefaultAgentSettings \<bool>**\
Enable or disable the 'Inherit default agent settings' option. This will inherit RD Session Host agent settings from the default profile.\
\
If you would like to specify custom settings, you need to disable this option and specify the desired parameters.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritDefaultPrinterSettings \<bool>**\
Enable or disable the 'Inherit default printer settings' option. This will inherit RD Session Host 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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritDefaultUserProfileSettings \<bool>**\
Enable or disable the 'Inherit default user profile settings' option. This will inherit RD Session Host 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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritDefaultDesktopAccessSettings \<bool>**\
Enable or disable the 'Inherit default desktop access settings' option. This will inherit RD Session Host Desktop Access settings from the default profile.\
\
If you would like to specify custom settings, you need to disable this option and specify the desired parameters.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritDefaultOptimizationSettings \<bool>**\
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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**InheritDefaultAppPackageSettings \<bool>**\
Enable or disable the 'Inherit default App Package Settings' option. This will inherit Application Packages from the default profile.\
\
If you would like to specify custom settings, you need to disable this option and specify the desired parameters.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Port \<uint>**\
Specifies the port number for the RD Session Host agent.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MaxSessions \<uint>**\
Specifies the 'Maximum Sessions' property.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

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

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

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

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowURLAndMailRedirection <**[**AllowURLAndMailRedirection**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/AllowURLAndMailRedirection.html)**>**\
Specifies the 'Allow Client URL/Mail Redirection' option. Accepted values: Disabled, Enabled, EnabledWithAppRegistration (Enable with app registration).\
\
Possible values: Disabled, Enabled, EnabledWithAppRegistration\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowRemoteExec \<bool>**\
Enable or disable the 'Allow 2XRemoteExec to send command to the client' option.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnableAppMonitoring \<bool>**\
Enable or disable the 'Application Monitoring' option.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UseRemoteApps \<bool>**\
Enable or disable the 'Use RemoteApps if available' option.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**FileTransferMode <**[**FileTransferControlMode**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/FileTransferControlMode.html)**>**\
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\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AllowDragAndDrop \<bool>**\
Enable or disable the 'Allow local to remote drag and drop' option. (deprecated)\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**DragAndDropMode <**[**DragAndDropModeValue**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/DragAndDropModeValue.html)**>**\
Specifies the mode the client server drag and drop feature will operate.\
\
Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ManageRDPTransportProtocol <**[**ManageRDPTransportProtocol**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/ManageRDPTransportProtocol.html)**>**\
Manage RDP transport protocol.\
\
Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnablePrinting \<bool>**\
Enables or disables Universal Printing on the RD Session Host server.\
\
In the RAS console, this option is toggled on the Universal Printing tab page in the Universal Printing category.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnableTWAIN \<bool>**\
Enable or disable TWAIN (Universal Scanning) on the RD Session Host server.\
\
In the RAS console, this option is toggled on the TWAIN tab page in the Universal Scanning category.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**EnableWIA \<bool>**\
Enable or disable WIA (Universal Scanning) on the RD Session Host server.\
\
In the RAS console, this options is toggled on the WIA tab page in the Universal Scanning category.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PrinterNameFormat <**[**PrnNameFormat**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/PrnNameFormat.html)**>**\
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\ <br>

```
        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.\ <br>

```
        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.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**AutoPreferredBroker \<SwitchParameter>**\
Set the 'Preferred Connection Broker' option to 'Automatically".\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                False
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**PreferredBrokerObj <**[**Broker**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/Broker.html)**>**\
The preferred Connection Broker\
\
To obtain an object of type Broker representing the preferred Connection Broker, use the Get-RASBroker cmdlet.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

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

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

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

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**Technology <**[**UserProfileTech**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/UserProfileTech.html)**>**\
Specifies the 'User Profile Technology' value.\
\
Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UPDMode <**[**UPDMode**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/UPDMode.html)**>**\
Specifies the 'User Profile Disk Mode' option. Accepted values: DoNotChange, Enabled, Disabled.\
\
Possible values: DoNotChange, Enabled, Disabled\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UPDRoamingMode <**[**UPDRoamingMode**](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/UPDRoamingMode.html)**>**\
Specifies the 'UPD Roaming Mode' option. Accepted values: Exclude, Include.\
\
Possible values: Exclude, Include\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**UPDiskPath \<string>**\
Specifies the User Profile Disk path.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**MaxUserProfileDiskSizeGB \<uint>**\
Specifies the max user profile disk size (in GB).\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**IncludeFolderPath \<string\[]>**\
Specifies the UPD 'Include' folder paths.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**IncludeFilePath \<string\[]>**\
Specifies the UPD 'Include' file paths.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ExcludeFolderPath \<string\[]>**\
Specifies the UPD 'Exclude' folder paths.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**ExcludeFilePath \<string\[]>**\
Specifies the UPD 'Exclude' file paths.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**RestrictDesktopAccess \<bool>**\
Enable or disable the 'Restrict direct desktop access to the following users' option.\
\
Use the RestrictedUsers parameter to specify the list of users.\ <br>

```
        Required?                    false
```

```
        Position?                    named
```

```
        Default value                
```

```
        Accept pipeline input?       false
```

```
        Accept wildcard characters?  false
```

\
-**RestrictedUsers \<string\[]>**\
Specifies the list of users for the RestrictDesktopAccess option (the option should be enabled).\
\
The list can contain user account names and user SIDs.\ <br>

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

<br>

### INPUTS

[RDSHost](https://download.parallels.com/ras/v19/docs/en_US/Parallels-RAS-v19-PowerShell-Guide/RASAdmin/types/RDSHost.html)

### OUTPUTS

-none-

### EXAMPLES

\
\&#xNAN;**---------- EXAMPLE 1 ----------**\
\
Set-RASRDSHost -Server "server.company.dom" -Enabled $False\
\
Disables the specified RD Session Host server in the Licensing Server site.\
\
\&#xNAN;**---------- EXAMPLE 2 ----------**\
\
Set-RASRDSHost -Id 3 -Enabled $False\
\
Disables the RD Session Host server specified by ID.\
\
\&#xNAN;**---------- EXAMPLE 3 ----------**\
\
Set-RASRDSHost $RDS -Enabled $True\
\
Enables the RD Session Host server specified by the $RDS variable, which is an object of type RDS.\
\
The object is obtained using the Get-RASRDSHost cmdlet.\
\&#xNAN;**---------- EXAMPLE 4 ----------**\
\
Get-RASRDSHost -Id 3 | Set-RASRDSHost -Enabled $True\
\
Enables the RD Session Host server represented by an RDS object obtained from the pipeline output.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/v19/parallels-ras-powershell-admin-module/commands/set-rasrdshost.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
