> 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/parallels-ras-powershell-admin-module/commands/set-rasrdsdefaultsettings.md).

# Set-RASRDSDefaultSettings

## NAME

Set-RASRDSDefaultSettings

## SYNOPSIS

Modifies default settings used to configure an RD Session Host server.

## SYNTAX

**Set-RASRDSDefaultSettings** \[[AllowRemoteExec](#allowremoteexec-string) *(bool)*] \[[AllowURLAndMailRedirection](#allowurlandmailredirection-string) {Disabled | Enabled | EnabledWithAppRegistration}] \[[AutoPreferredConnectionBroker](#autopreferredconnectionbroker-string) *(SwitchParameter)*] \[[DisconnectActiveSessionAfter](#disconnectactivesessionafter-string) *(uint)*] \[[DragAndDropMode](#draganddropmode-string) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[EnableAppMonitoring](#enableappmonitoring-string) *(bool)*] \[[EnableDriveRedirectionCache](#enabledriveredirectioncache-string) *(bool)*] \[[EnableZOrder](#enablezorder-string) *(bool)*] \[[ExcludeFilePath](#excludefilepath-string) *(string\[])*] \[[ExcludeFolderPath](#excludefolderpath-string) *(string\[])*] \[[FileTransferAutoCloseWindow](#filetransferautoclosewindow-string) *(bool)*] \[[FileTransferExistingFileMode](#filetransferexistingfilemode-string) {CreateNewFile | OverwriteExistingFile}] \[[FileTransferLocation](#filetransferlocation-string) *(string)*] \[[FileTransferLockLocation](#filetransferlocklocation-string) *(bool)*] \[[FileTransferMode](#filetransfermode-string) {Disabled | ClientToServer | ServerToClient | Bidirectional}] \[[FileTransferSuppressPromptForUploadFiles](#filetransfersuppresspromptforuploadfiles-string) *(bool)*] \[[IncludeFilePath](#includefilepath-string) *(string\[])*] \[[IncludeFolderPath](#includefolderpath-string) *(string\[])*] \[[LogoffDisconnectedSessionAfter](#logoffdisconnectedsessionafter-string) *(uint)*] \[[ManageRDPTransportProtocol](#managerdptransportprotocol-string) {Disabled | BothUDPTCP | OnlyTCP | EitherUDPTCP}] \[[MaxSessions](#maxsessions-string) *(uint)*] \[[MaxUserProfileDiskSizeGB](#maxuserprofiledisksizegb-string) *(uint)*] \[[Port](#port-string) *(uint)*] \[[PreferredConnectionBrokerId](#preferredconnectionbrokerid-string) *(uint)*] \[[PreferredConnectionBrokerObj](#preferredconnectionbrokerobj-string) *(*[*ConnectionBroker*](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/connectionbroker.md)*)*] \[[PrinterNameFormat](#printernameformat-string) {PrnFormat\_PRN\_CMP\_SES | PrnFormat\_SES\_CMP\_PRN | PrnFormat\_PRN\_REDSES}] \[[RemoveClientNameFromPrinterName](#removeclientnamefromprintername-string) *(bool)*] \[[RemoveSessionNumberFromPrinterName](#removesessionnumberfromprintername-string) *(bool)*] \[[RestrictDesktopAccess](#restrictdesktopaccess-string) *(bool)*] \[[RestrictedUsers](#restrictedusers-string) *(string\[])*] \[[SiteId](#siteid-string) *(uint)*] \[[SupportShellURLNamespaceObjects](#supportshellurlnamespaceobjects-string) *(bool)*] \[[Technology](#technology-string) {DoNotManage | UPD | FSLogix | FSLogixProfileContainer}] \[[UPDiskPath](#updiskpath-string) *(string)*] \[[UPDMode](#updmode-string) {DoNotChange | Enabled | Disabled}] \[[UPDRoamingMode](#updroamingmode-string) {Exclude | Include}] \[[UseRemoteApps](#useremoteapps-string) *(bool)*] \[*(*[*CommonParameters*](#commonparameters-string)*)*] \*\*

## DESCRIPTION

Modifies default settings used to configure 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.

Default settings are defined on a site level and are applied to an RD Session Host server when it is initially added to the site.

To retrieve the current defaults settings, use the Get-RASRDSDefaultSettings cmdlet.

## PARAMETERS

## SiteId (uint)

Site ID for which to modify the default RD Session Host server settings.

```
        Required?                    false

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Port (uint)

Specifies the RD Session Host agent port number.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## MaxSessions (uint)

Specifies the 'Maximum Sessions' option.

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

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AllowURLAndMailRedirection ([AllowURLAndMailRedirection](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/allowurlandmailredirection.md))

Specifies the 'Allow mail and URL redirection' option. Accepted values: Disabled, Enabled, EnabledWithAppRegistration (Enable with app 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
```

## AutoPreferredConnectionBroker (SwitchParameter)

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

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## AutoPreferredBroker (SwitchParameter)

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

This is an alias of the AutoPreferredConnectionBroker parameter.

```
        Required?                    false

        Position?                    named

        Default value                False

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreferredConnectionBrokerObj ([ConnectionBroker](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/connectionbroker.md))

The preferred Connection Broker.

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

## PreferredBrokerObj ([ConnectionBroker](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/connectionbroker.md))

The preferred Connection Broker.

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

This is an alias of the PreferredConnectionBrokerObj parameter.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreferredConnectionBrokerId (uint)

The preferred Connection Broker.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PreferredBrokerId (uint)

The preferred Connection Broker.

This is an alias of the PreferredConnectionBrokerId parameter.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableZOrder (bool)

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

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## EnableAppMonitoring (bool)

Enable or disable the 'Enable application monitoring' option.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferMode ([FileTransferControlMode](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/filetransfercontrolmode.md))

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

## FileTransferSuppressPromptForUploadFiles (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferExistingFileMode ([FileTransferExistingFileMode](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/filetransferexistingfilemode.md))

Specifies the behavior when a file with the same name already exists in the destination folder during file transfer.

Possible values: CreateNewFile, OverwriteExistingFile

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## FileTransferAutoCloseWindow (bool)

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## DragAndDropMode ([DragAndDropModeValue](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/draganddropmodevalue.md))

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

Possible values: Disabled, ClientToServer, ServerToClient, Bidirectional

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ManageRDPTransportProtocol ([ManageRDPTransportProtocol](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/managerdptransportprotocol.md))

Manage RDP transport protocol.

Possible values: Disabled, BothUDPTCP, OnlyTCP, EitherUDPTCP

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## PrinterNameFormat ([PrnNameFormat](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/prnnameformat.md))

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

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

## Technology ([UserProfileTech](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/userprofiletech.md))

Specifies the 'User Profile Technology' value.

Possible values: DoNotManage, UPD, FSLogix, FSLogixProfileContainer

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UPDMode ([UPDMode](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/updmode.md))

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

Possible values: DoNotChange, Enabled, Disabled

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UPDRoamingMode ([UPDRoamingMode](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/updroamingmode.md))

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

Possible values: Exclude, Include

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## UPDiskPath (string)

Specifies the User Profile Disk path.

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

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IncludeFolderPath (string\[])

Specifies the UPD 'Include' folder paths.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## IncludeFilePath (string\[])

Specifies the UPD 'Include' file paths.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExcludeFolderPath (string\[])

Specifies the UPD 'Exclude' folder paths.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## ExcludeFilePath (string\[])

Specifies the UPD 'Exclude' file paths.

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

To specify the list of users, use the RestrictedUsers parameter.

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

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

-none-

## OUTPUTS

-none-

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

Set-RASRDSDefaultSettings -SiteId 2 -MaxSessions 100

Modifies the default value of the MaxSessions property for the specified site.

## RELATED LINKS

* [Get-RASRDSDefaultSettings](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasrdsdefaultsettings.md)
* [Set-RASRDSHost](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rasrdshost.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/parallels-ras-powershell-admin-module/commands/set-rasrdsdefaultsettings.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.
