### View and Modify RD Session Host Properties Note: The information in this section does not apply to RD Session Hosts based on a template. Hosts of that type don't have individual properties and are managed on the template level. For more information, see Grouping and Cloning RD Session Hosts and Templates. To configure an RD Session Host: In the RAS Console, navigate to Farm / <site> / RD Session Hosts. Select a server and click Tasks > Properties. The server properties dialog opens where you can configure the RD Session Host properties. Using default settings The server properties dialog consists of tabs, each containing their own specific set of properties. All tabs, except Properties, have one common link Site Defaults, which allows you to view and modify Site default settings. If you want the properties on a particular tab to inherit default settings, select the Inherit default settings option. When you do this, the default settings will be inherited from one of the following: Group defaults if the server is assigned to an RD Session Host group. Groups are described in Grouping and Cloning RD Session Host Servers. Site defaults if the server is not assigned to an RD Session Host group. Note that a group may also inherit Site defaults, but this can be overridden in the group properties dialog where you can specify custom settings for a group. To view or modify Site default settings, click the Site Defaults link (available on every tab, except Properties). This will open either the Group default properties or Site default properties dialog depending on whether the server is assigned to a group (see above). Note that each individual tab can inherit default settings independently from other tabs. The rest of this section describes individual tabs of the server properties dialog. General Select or clear the Enable Server in Site option to enable or disable the server. A disabled server cannot serve published applications and virtual desktops to clients. Other elements on this tab are: Server: Specifies the server FQDN or IP address. Description: An optional server description. Change Direct Address: Select this option if you need to change the direct address that Parallels Client uses to establish a direct connection with the RD Session Host. Agent settings Each RD Session Host in the Farm has an RAS RD Session Host Agent installed through which it communicates with other Parallels RAS components. Use the Agent Settings tab to configure the agent. To use default settings, select the Inherit default settings option. See the Using default settings subsection above. If you want to specify custom settings for a given server, clear the Inherit default settings option and specify agent properties as follows: Port. Specifies a different remote desktop connection port number if a non-default port is configured on the server. Max sessions. Specifies the maximum number of sessions. Publishing session disconnect timeout. Specifies the amount of time each session remains connected in the background after the user has closed the published application. This option is used to avoid unnecessary reconnections with the server. Publishing session reset timeout. This feature allows you to control how long it takes for a session to be logged off after it is marked as "disconnected". Allow Client URL/Mail redirection. When a user tries to open a URL or an HTML Mailto link in a remote application, the link can be redirected to the client computer and open in a local default application (a web browser or email client) instead of an application on the remote host. This option allows you to enable or disable the redirection. You can choose from the following options: Enabled — select this option to enable the redirection and then select the Support Windows Shell URL namespace objects option (bellow the drop-down box). This is the default redirection configuration that works in most common scenarios. The Shell URL namespace objects support means that Parallels RAS can intercept actions in published applications that use Shell namespace API to open links, which is a standard behavior in most applications. The ability to disable the support for Shell URL namespace objects is for compatibility with older versions of Parallels RAS. You may disable this option if you want the behavior of an older version of Parallels RAS (RAS v16.2 or earlier). Enabled (Replace Registered Application) — this option uses an alternative method of redirecting a link. It replaces the default web browser and mail client with "dummy" apps on the remote server side. By doing so, it can intercept an attempt to open a link and redirect it to the client computer. You may try this option if the default option above doesn't work with your published application. Disabled — this option disables URL/Mail redirection, so URL or Mailto links always open on the remote host. Please note that you can configure a list of URLs that should never be redirected, even if the redirection is enabled. This can be done on the Farm / Site / Settings / URL Redirection tab. See more in Site Settings. Drag and drop. Allows you to set how the drag and drop functionality works in Parallels Clients. You can select from "Disabled" (no drag and drop functionality at all), "Server to client only" (drag and drop to a local application, but not in the opposite direction), "Client to server only" (drag and drop to a remote application only), "Bidirectional" (default). Note that this option has changed since Parallels RAS 17.1. In the past, it was a checkbox that would enable or disable drag and drop which worked in the "Client to server only" mode. When upgrading from an older version of Parallels RAS, and if the checkbox was enabled, the "Client to server only" option is selected by default. If the option was disabled, the "Disabled" option will be set. You can change it to any of the new available options if you wish. Note: At the time of this writing, the drag and drop functionality is only supported on Parallels Client for Windows and Parallels Client for Mac. Preferred Publishing Agent. Select a Publishing Agent to which the RD Session Host should connect. This is helpful when Site components are installed in multiple physical locations communicating through WAN. You can decrease network traffic by specifying a more appropriate Publishing Agent. Allow 2XRemoteExec to send command to the client. Select this option to allow a process running on the server to instruct the client to deploy an application on the client side. More about 2XRemoteExec in the Using RemoteExec subsection below. Use RemoteApp if available. Enable this option to allow use of remote apps for shell-related issues when an app is not displayed correctly. This feature is supported on the Parallels Client for Windows only. Enable applications monitoring. Enable or disable monitoring of applications on the server. Disabling application monitoring stops the WMI monitoring to reduce CPU usage on the server and network usage while transferring the information to RAS Publishing Agent. If the option is enabled, the collected information will appear in a corresponding RAS report. If the option is disabled, the information from this server will be absent from a report. Allow file transfer command. Allows you to enable or disable the remote file transfer functionality. For more information, see Enabling or Disabling Remote File Transfer. Enable drive redirection cache. Improves user experience by making file browsing and navigation on redirected drives much faster. For details, see Drive Redirection Cache Explanation. Using 2XRemoteExec 2XRemoteExec is a feature that facilitates the servers ability to send commands to the client. This is done using the command line utility `2XRemoteExec.exe`. Command line options include:
Command Line Parameter | Parameter Description
`-s` | Used to run the 2XRemoteExec command in ‘silent’ mode. Without this parameter, the command will display pop up messages from the application. If you include the parameter, the messages will not be displayed.
`-t` | Is used to specify the timeout until the application is started. Timeout must be a value between 5000ms and 30000ms. Note that the value inserted is in ‘ms’. If the timeout expires the command returns with an error. Please note that the application might still be started on the client.
`-?` | Shows a help list of the parameters that 2XRemoteExec uses.
`"Path for Remote Application"` | The Application that will be started on the client as prompted from the server.
2XRemoteExec examples: The following command displays a message box describing the parameters that can be used. 2XRemoteExec -? This command runs Notepad on the client. 2XRemoteExec C:\Windows\System32\Notepad.exe In this example, the command opens the `C:\readme.txt` file in the Notepad on the client. No message is shown and 2XRemoteExec would wait for 6 seconds or until the application is started. 2XRemoteExec C:\Windows\System32\Notepad.exe “C:\readme.txt” User profile Configure user profile settings. For complete instructions, please see User Profile. Optimization The Optimization tab allows you to specify settings that will be used to optimize the RD Session Host for best performance in a Parallels RAS environment. You can select Windows components, services, and other options that will be disabled, removed, or optimized to ensure a more efficient, streamlined, and improved delivery of virtual apps and desktops. For the complete description, please see Optimization. Desktop access The Desktop Access tab allows you to restrict remote desktop access to certain users. To use default settings, select the Inherit default settings option. See the Using default settings subsection above. By default, all users who have access to remote applications on an RD Session Host can also connect to the server via a standard RDP connection. If you want to restrict remote desktop access to certain users, do the following: On the Desktop Access tab, select the Restrict direct desktop access to the following users option. If you have the Inherit default settings option selected, click the Edit Defaults link to see (and modify if needed) the default configuration. The rest of the steps apply to both the Server Properties and Default Server Properties dialogs. Click the Add button. Select the desired users. To include multiple users, separate them by a semicolon. Click OK. The selected users will appear in the list on the Desktop Access tab. Users in this list will still be able to access remote applications using Parallels Client, but will be denied direct remote desktop access to this server. Note: Computer Configuration > Administrative Templates > Windows Components > Remote Desktop Services > Remote Desktop Session Host > Connection > Allow users to connect remotely using remote desktop services must be set to Not configured, otherwise it takes precedence. Please note that members of the Administrator group will still be able to connect to the remote desktop even if they are included in this list. RDP printer The RDP Printer tab allows you to configure the renaming format of redirected printers. The format may vary depending on which version and language of the server you are using. To use default settings, select the Inherit default settings option. See the Using default settings subsection above. The RDP Printer Name Format drop-down list allows you to select a printer name format specifically for the configured server. Select the Remove session number from printer name and the Remove client name from printer name options to exclude the corresponding information from the printer name.