> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasrdshost.md).

# Set-RASRDSHost

## SYNOPSIS

Modifies RD Session Host server settings.

## SYNTAX

```powershell
Set-RASRDSHost [-Id] <uint> [-AllowRemoteExec <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-AutoPreferredConnectionBroker <SwitchParameter>] [-Description <string>]
 [-DirectAddress <string>] [-DisconnectActiveSessionAfter <uint>]
 [-DragAndDropMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}]
 [-EnableAppMonitoring <bool>] [-Enabled <bool>] [-EnableDriveRedirectionCache <bool>]
 [-EnablePrinting <bool>] [-EnableTWAIN <bool>] [-EnableWIA <bool>] [-EnableZOrder <bool>]
 [-ExcludeFilePath <string[]>] [-ExcludeFolderPath <string[]>] [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>] [-IncludeFilePath <string[]>]
 [-IncludeFolderPath <string[]>] [-InheritDefaultAgentSettings <bool>]
 [-InheritDefaultAppPackageSettings <bool>] [-InheritDefaultDesktopAccessSettings <bool>]
 [-InheritDefaultOptimizationSettings <bool>] [-InheritDefaultPrinterSettings <bool>]
 [-InheritDefaultUserProfileSettings <bool>] [-LogoffDisconnectedSessionAfter <uint>]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}]
 [-MaxSessions <uint>] [-MaxUserProfileDiskSizeGB <uint>] [-NewServer <string>] [-Port <uint>]
 [-PreferredConnectionBrokerId <uint>] [-PreferredConnectionBrokerObj <ConnectionBroker>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-RemoveClientNameFromPrinterName <bool>] [-RemoveSessionNumberFromPrinterName <bool>]
 [-RestrictDesktopAccess <bool>] [-RestrictedUsers <string[]>]
 [-SupportShellURLNamespaceObjects <bool>]
 [-Technology {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-UPDiskPath <string>]
 [-UPDMode {DoNotChange | Enabled | Disabled}] [-UPDRoamingMode {Exclude | Include}]
 [-UseRemoteApps <bool>] [<CommonParameters>]
```

```powershell
Set-RASRDSHost [-InputObject] <RDSHost> [-AllowRemoteExec <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-AutoPreferredConnectionBroker <SwitchParameter>] [-Description <string>]
 [-DirectAddress <string>] [-DisconnectActiveSessionAfter <uint>]
 [-DragAndDropMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}]
 [-EnableAppMonitoring <bool>] [-Enabled <bool>] [-EnableDriveRedirectionCache <bool>]
 [-EnablePrinting <bool>] [-EnableTWAIN <bool>] [-EnableWIA <bool>] [-EnableZOrder <bool>]
 [-ExcludeFilePath <string[]>] [-ExcludeFolderPath <string[]>] [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>] [-IncludeFilePath <string[]>]
 [-IncludeFolderPath <string[]>] [-InheritDefaultAgentSettings <bool>]
 [-InheritDefaultAppPackageSettings <bool>] [-InheritDefaultDesktopAccessSettings <bool>]
 [-InheritDefaultOptimizationSettings <bool>] [-InheritDefaultPrinterSettings <bool>]
 [-InheritDefaultUserProfileSettings <bool>] [-LogoffDisconnectedSessionAfter <uint>]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}]
 [-MaxSessions <uint>] [-MaxUserProfileDiskSizeGB <uint>] [-NewServer <string>] [-Port <uint>]
 [-PreferredConnectionBrokerId <uint>] [-PreferredConnectionBrokerObj <ConnectionBroker>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-RemoveClientNameFromPrinterName <bool>] [-RemoveSessionNumberFromPrinterName <bool>]
 [-RestrictDesktopAccess <bool>] [-RestrictedUsers <string[]>]
 [-SupportShellURLNamespaceObjects <bool>]
 [-Technology {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-UPDiskPath <string>]
 [-UPDMode {DoNotChange | Enabled | Disabled}] [-UPDRoamingMode {Exclude | Include}]
 [-UseRemoteApps <bool>] [<CommonParameters>]
```

```powershell
Set-RASRDSHost [-Server] <string> [[-SiteId] <uint>] [-AllowRemoteExec <bool>]
 [-AllowURLAndMailRedirection {Disabled | Enabled | EnabledWithAppRegistration}]
 [-AutoPreferredConnectionBroker <SwitchParameter>] [-Description <string>]
 [-DirectAddress <string>] [-DisconnectActiveSessionAfter <uint>]
 [-DragAndDropMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-DriveRedirectionFileCache {None | ReadAhead | ReadAheadWriteBehind}]
 [-EnableAppMonitoring <bool>] [-Enabled <bool>] [-EnableDriveRedirectionCache <bool>]
 [-EnablePrinting <bool>] [-EnableTWAIN <bool>] [-EnableWIA <bool>] [-EnableZOrder <bool>]
 [-ExcludeFilePath <string[]>] [-ExcludeFolderPath <string[]>] [-FileTransferAutoCloseWindow <bool>]
 [-FileTransferExistingFileMode {CreateNewFile | OverwriteExistingFile}]
 [-FileTransferLocation <string>] [-FileTransferLockLocation <bool>]
 [-FileTransferMode {Disabled | ClientToServer | ServerToClient | Bidirectional}]
 [-FileTransferSuppressPromptForUploadFiles <bool>] [-IncludeFilePath <string[]>]
 [-IncludeFolderPath <string[]>] [-InheritDefaultAgentSettings <bool>]
 [-InheritDefaultAppPackageSettings <bool>] [-InheritDefaultDesktopAccessSettings <bool>]
 [-InheritDefaultOptimizationSettings <bool>] [-InheritDefaultPrinterSettings <bool>]
 [-InheritDefaultUserProfileSettings <bool>] [-LogoffDisconnectedSessionAfter <uint>]
 [-ManageRDPTransportProtocol {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}]
 [-MaxSessions <uint>] [-MaxUserProfileDiskSizeGB <uint>] [-NewServer <string>] [-Port <uint>]
 [-PreferredConnectionBrokerId <uint>] [-PreferredConnectionBrokerObj <ConnectionBroker>]
 [-PrinterNameFormat {PrnFormat_PRN_CMP_SES | PrnFormat_SES_CMP_PRN | PrnFormat_PRN_REDSES}]
 [-RemoveClientNameFromPrinterName <bool>] [-RemoveSessionNumberFromPrinterName <bool>]
 [-RestrictDesktopAccess <bool>] [-RestrictedUsers <string[]>]
 [-SupportShellURLNamespaceObjects <bool>]
 [-Technology {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] [-UPDiskPath <string>]
 [-UPDMode {DoNotChange | Enabled | Disabled}] [-UPDRoamingMode {Exclude | Include}]
 [-UseRemoteApps <bool>] [<CommonParameters>]
```

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

## EXAMPLES

### Example 1

```powershell
Set-RASRDSHost -Server "server.company.dom" -Enabled $False
```

Disables the specified RD Session Host server in the Licensing Server site.

### Example 2

```powershell
Set-RASRDSHost -Id 3 -Enabled $False
```

Disables the RD Session Host server specified by ID.

### Example 3

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

### Example 4

```powershell
Get-RASRDSHost -Id 3 | Set-RASRDSHost -Enabled $True
```

Enables the RD Session Host server represented by an RDS object obtained from the pipeline output.

## PARAMETERS

### -Server

The name of the target RD Session Host server.

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

```yaml
Type: string
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SiteId

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.

```yaml
Type: uint
Required: False
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -Id

The ID of the RD Session Host server to modify. To obtain the ID, use the Get-RASRDSHost cmdlet.

```yaml
Type: uint
Required: True
Position: 0
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
```

### -InputObject

The RD Session Host servers to modify.

To obtain an object of type RDS representing a RD Session Host server, use the Get-RASRDSHost cmdlet.

Type reference: [RDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/rdshost.md)

```yaml
Type: RDSHost
Required: True
Position: 0
Default value: None
Accept pipeline input: true (ByValue)
Accept wildcard characters: False
```

### -Enabled

Enable or disable the specified RD Session Host server in a site.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -NewServer

A new server name. This must be either the server's FQDN or IP address.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Description

A user-defined RD Session Host server description.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DirectAddress

Specifies the RD Session Host server direct address.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultAgentSettings

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultPrinterSettings

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultUserProfileSettings

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultDesktopAccessSettings

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultOptimizationSettings

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

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -InheritDefaultAppPackageSettings

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Port

Specifies the port number for the RD Session Host agent.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaxSessions

Specifies the 'Maximum Sessions' property.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DisconnectActiveSessionAfter

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

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -LogoffDisconnectedSessionAfter

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

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllowURLAndMailRedirection

Specifies the 'Allow Client URL/Mail Redirection' option. Accepted values: Disabled, Enabled, EnabledWithAppRegistration (Enable with app registration).

Possible values: Disabled, Enabled, EnabledWithAppRegistration

Type reference: [AllowURLAndMailRedirection](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/allowurlandmailredirection.md)

```yaml
Type: AllowURLAndMailRedirection
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -SupportShellURLNamespaceObjects

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AllowRemoteExec

Enable or disable the 'Allow 2XRemoteExec to send command to the client' option.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableAppMonitoring

Enable or disable the 'Application Monitoring' option.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UseRemoteApps

Enable or disable the 'Use RemoteApps if available' option.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -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](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/filetransfercontrolmode.md)

```yaml
Type: FileTransferControlMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferLocation

Location where the File Transfer takes place, if and where it is allowed.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferLockLocation

Lock Location where the File Transfer takes place, if and where it is allowed.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferSuppressPromptForUploadFiles

Specifies if the 'Suppress prompt for upload files' option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -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](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/filetransferexistingfilemode.md)

```yaml
Type: FileTransferExistingFileMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FileTransferAutoCloseWindow

Specifies if the "Close transfer window when complete" option is enabled or disabled.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DragAndDropMode

Specifies the mode the client server drag and drop feature will operate.

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

Type reference: [DragAndDropModeValue](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/draganddropmodevalue.md)

```yaml
Type: DragAndDropModeValue
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ManageRDPTransportProtocol

Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

Type reference: [ManageRDPTransportProtocol](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/managerdptransportprotocol.md)

```yaml
Type: ManageRDPTransportProtocol
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnablePrinting

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableTWAIN

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableWIA

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.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PrinterNameFormat

Specifies the 'Printer Name Format' option. Accepted values: PrnFormat\_PRN\_CMP\_SES, PrnFormat\_SES\_CMP\_PRN, PrnFormat\_PRN\_REDSES.

Possible values: PrnFormat\_PRN\_CMP\_SES, PrnFormat\_SES\_CMP\_PRN, PrnFormat\_PRN\_REDSES

Type reference: [PrnNameFormat](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/prnnameformat.md)

```yaml
Type: PrnNameFormat
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RemoveClientNameFromPrinterName

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RemoveSessionNumberFromPrinterName

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -AutoPreferredConnectionBroker

Set the 'Preferred Connection Broker' option to 'Automatically".

```yaml
Type: SwitchParameter
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
```

### -PreferredConnectionBrokerObj

The preferred Connection Broker

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

Type reference: [ConnectionBroker](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/connectionbroker.md)

```yaml
Type: ConnectionBroker
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -PreferredConnectionBrokerId

The preferred Connection Broker ID.

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableDriveRedirectionCache

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

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -DriveRedirectionFileCache

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

Possible values: None, ReadAhead, ReadAheadWriteBehind

Type reference: [DriveRedirectionFileCacheMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/driveredirectionfilecachemode.md)

```yaml
Type: DriveRedirectionFileCacheMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -EnableZOrder

Enable or disable the 'Enable Z-Order' option. (Experimental)

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -Technology

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

Type reference: [UserProfileTech](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/userprofiletech.md)

```yaml
Type: UserProfileTech
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UPDMode

Specifies the 'User Profile Disk Mode' option. Accepted values: DoNotChange, Enabled, Disabled.

Possible values: DoNotChange, Enabled, Disabled

Type reference: [UPDMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/updmode.md)

```yaml
Type: UPDMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UPDRoamingMode

Specifies the 'UPD Roaming Mode' option. Accepted values: Exclude, Include.

Possible values: Exclude, Include

Type reference: [UPDRoamingMode](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/updroamingmode.md)

```yaml
Type: UPDRoamingMode
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -UPDiskPath

Specifies the User Profile Disk path.

```yaml
Type: string
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -MaxUserProfileDiskSizeGB

Specifies the max user profile disk size (in GB).

```yaml
Type: uint
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IncludeFolderPath

Specifies the UPD 'Include' folder paths.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IncludeFilePath

Specifies the UPD 'Include' file paths.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ExcludeFolderPath

Specifies the UPD 'Exclude' folder paths.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -ExcludeFilePath

Specifies the UPD 'Exclude' file paths.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RestrictDesktopAccess

Enable or disable the 'Restrict direct desktop access to the following users' option.

Use the RestrictedUsers parameter to specify the list of users.

```yaml
Type: bool
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -RestrictedUsers

Specifies the list of users for the RestrictDesktopAccess option (the option should be enabled).

The list can contain user account names and user SIDs.

```yaml
Type: string[]
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### 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](https://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### [RDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/types/rdshost.md)

## OUTPUTS

### None

## RELATED LINKS

* [New-RASRDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/new-rasrdshost.md)
* [Get-RASRDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/get-rasrdshost.md)
* [Remove-RASRDSHost](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/remove-rasrdshost.md)
* [Set-RASRDSDefaultSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasrdsdefaultsettings.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/rasadmin/cmdlets/set-rasrdshost.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
