---
title: "Configure remote desktop"
sidebar_label: "Configure desktop"
sidebar_position: 3
description: "How to further configure a remote desktop: what to consider when configuring a VPN, how to configure the clipboard, how to disable drive redirection"
---

import Formbricks from '@theme/MDXComponents/Formbricks'
import {CustomTable} from '@selectel/docux/components'
import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'

# Configure remote desktop

For a remote desktop, you can additionally [configure VPN](#configure-vpn), [configure clipboard settings](#configure-clipboard), [or disable drive redirection](#disable-drive-redirection).

## Configure a VPN \{#configure-vpn}

When configuring VPN, consider the [limitations](#limitations).

If you use your own DNS servers, [add an entry to the host file](#add-entry-to-host-file).

### Limitations \{#limitations}

When configuring a VPN, do not use:

* default gateway of the remote network. [You can disable gateway usage](#disable-default-network-gateway) in Windows settings;
* networks used by DaaS:

  * `10.49.32.0/24`
  * `172.16.X.X/26`

You can use any networks from `172.16.0.0/12`, except for the allocated `/26` network. Upon request, we can replace the allocated `/26` block with another one of the same size.

#### Disable the default network gateway \{#disable-default-network-gateway}

1. In the **Start** menu, select **Settings**.
2. Open **Network and Internet** → **Ethernet**.
3. Open the **Change adapter settings** page.
4. Right-click the required network connection and select **Properties**.
5. Open the **Networking** tab.
6. Select **Internet Protocol Version 4 (TCP/IPv4)** and click **Properties**.
7. Click **Advanced**.
8. Uncheck **Use default gateway on remote network**.
9. Click **OK** → **OK** → **OK**.

### Add an entry to the host file \{#add-entry-to-host-file}

If you use your own DNS servers, add the following to the `host` file (`C:\Windows\System32\drivers\etc`):

* `10.49.32.17 cs-7a1.daas.vmw.selectel.org`
* `10.49.32.18 cs-7a2.daas.vmw.selectel.org`
* `10.49.32.19 cs-7a0.daas.vmw.selectel.org`

## Configure clipboard redirection \{#configure-clipboard}

By default, clipboard redirection works only from the user's computer (Omnissa® Horizon® Client) to the remote desktop virtual machine (Omnissa® Horizon® Agent).

Configuring the clipboard makes the exchange bidirectional.

<Tabs queryString="configure-clipboard">
  <TabItem value="windows" default>
    <TabItemLabel>
      Windows
    </TabItemLabel>

    <Tabs queryString="domain">
      <TabItem value="vm-in-domain" default>
        <TabItemLabel>
          VM in a domain
        </TabItemLabel>

        For more information on clipboard settings using Active Directory Group Policies, see the [View Agent Configuration ADMX Template Settings](https://docs.omnissa.com/bundle/Horizon-Remote-Desktop-FeaturesV2312/page/ViewAgentConfigurationADMXTemplateSettings.html) section of the Omnissa® Horizon® documentation.

        1. [Create a ticket](https://my.selectel.ru/tickets/create) to receive ADMX templates for Omnissa® Horizon® Client.
        2. Install the ADMX templates for VMware Horizon Client.
        3. Create a new Group Policy Object (GPO); for details, see the [Using Group Policy Settings to Configure Horizon Client](https://docs.omnissa.com/bundle/HorizonClient-WindowsGuideV2312/page/UsingGroupPolicySettingstoConfigureHorizonWindowsClient.html) section of the Omnissa® Horizon® documentation.
        4. Go to **Computer Configuration** → **Policies** → **Administrative Templates** → **Omnissa View Agent Configuration** → **Clipboard Redirection**.
        5. For the **Configure clipboard redirection** object, select the **Enabled in both directions** checkbox.
        6. Apply the Group Policy.
        7. Reconnect to your desktop.
      </TabItem>

      <TabItem value="vm-not-in-domain" default>
        <TabItemLabel>
          VM not in a domain
        </TabItemLabel>

        1. Open the Windows Registry Editor.
        2. Go to the `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\VMware, Inc.\VMware Blast\Config` registry key.
        3. Create a string parameter `ClipboardState` with the [value](#possible-values-of-clipboarddata-parameter) `1`.
        4. Reconnect to your desktop.
      </TabItem>
    </Tabs>
  </TabItem>

  <TabItem value="linux">
    <TabItemLabel>
      Linux
    </TabItemLabel>

    1. Open the `/etc/vmware/config` or `/etc/omnissa/config` configuration file for editing, for example:

       ```bash
       sudo nano /etc/vmware/config
       ```

    2. Create a string parameter `Clipboard.Direction` with the [value](#possible-values-of-clipboarddata-parameter) `1`.

    3. Restart the virtual machine.

    4. Reconnect to the remote desktop.
  </TabItem>
</Tabs>

### Values of the ClipboardData and Clipboard.Direction parameters \{#possible-values-of-clipboarddata-parameter}

The `ClipboardData` (on Windows) and `Clipboard.Direction` (on Linux) parameters determine the direction in which the clipboard works.

<CustomTable>
  <table>
    <tbody>
      <tr>
        <th>0, Disabled in both directions</th><td>Clipboard redirection is disabled in both directions</td>
      </tr>

      <tr>
        <th>1, Enabled in both directions</th><td>Clipboard redirection is enabled in both directions</td>
      </tr>

      <tr>
        <th>2, Enabled client to server only</th><td>Clipboard redirection is enabled from client to agent (default)</td>
      </tr>

      <tr>
        <th>3, Enabled server to client only</th><td>Clipboard redirection is enabled from agent to client</td>
      </tr>
    </tbody>
  </table>
</CustomTable>

## Disable drive redirection \{#disable-drive-redirection}

By default, drive sharing (Drive Redirection) is enabled, and the user can connect drives and folders to the remote desktop virtual machine. You can disable this feature.

After disabling drive redirection, the [clipboard](#configure-clipboard) (Clipboard) between the user's computer and the remote desktop virtual machine will also be disabled.

<Tabs queryString="disable-drive-redirection">
  <TabItem value="omnissa-horizon-client" default>
    <TabItemLabel>
      Via Omnissa® Horizon® Client
    </TabItemLabel>

    Drive redirection can only be disabled via Omnissa® Horizon® Client on Windows.

    <Tabs queryString="omnissa-horizon-client">
      <TabItem value="vm-in-domain" default>
        <TabItemLabel>
          VM in a domain
        </TabItemLabel>

        1. [Create a ticket](https://my.selectel.ru/tickets/create) to receive ADMX templates for Omnissa® Horizon® Client.
        2. Install the ADMX templates for VMware Horizon Client.
        3. Create a new Group Policy Object (GPO); for details, see the [Using Group Policy Settings to Configure Horizon Client](https://docs.omnissa.com/bundle/HorizonClient-WindowsGuideV2312/page/UsingGroupPolicySettingstoConfigureHorizonWindowsClient.html) section of the Omnissa® Horizon® documentation.
        4. Go to **Computer Configuration** → **Policies** → **Administrative Templates** → **Omnissa Horizon Client Configuration** → **Scripting definitions**.
        5. Select the **Disable sharing files and folders** checkbox.
        6. Apply the Group Policy.
        7. Reconnect to your desktop.
      </TabItem>

      <TabItem value="vm-not-in-domain" default>
        <TabItemLabel>
          VM not in a domain
        </TabItemLabel>

        1. Open the Windows Registry Editor.
        2. Go to the `HKEY_CURRENT_USER\SOFTWARE\Policies\VMware, Inc.\VMware VDM\Client` registry key.
        3. Create a string parameter `DisableSharing` with the value `true`.
        4. Reconnect to your desktop.
      </TabItem>
    </Tabs>
  </TabItem>

  <TabItem value="virtual-machine">
    <TabItemLabel>
      On the virtual machine
    </TabItemLabel>

    <Tabs>
      <TabItem value="windows">
        <TabItemLabel>
          Windows
        </TabItemLabel>

        1. Open the Windows Registry Editor.
        2. Go to the `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services` registry key.
        3. Create an integer parameter `fDisableCdm` with the value `1`.
        4. Restart the virtual machine.
      </TabItem>

      <TabItem value="linux">
        <TabItemLabel>
          Linux
        </TabItemLabel>

        1. Open the `/etc/vmware/config` or `/etc/omnissa/config` configuration file, for example:

           ```bash
           sudo nano /etc/vmware/config
           ```

        2. Depending on the agent version, create one of the parameters — `CDR.Enabled`, `EnableCDR`, or `CDR.Allow` — with the value `0`.

        3. Restart the virtual machine.
      </TabItem>
    </Tabs>
  </TabItem>
</Tabs>

<Formbricks />
