> Source: https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/Applications/RDSServers/

# RDS servers management

This screen is used to **register a directory's RDS servers in bulk**, then, in the same operation, deploy the recording agent on them and create the matching [applications](https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/Applications/Applications/).

It is a mass commissioning tool. Whereas creating an application declares one access at a time, this wizard starts from the list of servers that Active Directory publishes and produces one application per server, from a template.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_RDSServers_Module.png)

## Prerequisites

1. An [LDAP domain](https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/AuthenticationDomains/LDAPDirectory/), declared and reachable, with its read account, backed by an **Active Directory**: the server search uses queries specific to Active Directory, and does not work on a plain LDAP directory (OpenLDAP).
2. On that domain, the **Enable RDS server management** checkbox ticked.
3. RDS servers **published in the directory**, in the strict sense described below.
4. For agent deployment: an account with installation rights on the target machines, and an [Edge Gateway](https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/SitesAndGateways/Gateways/) that reaches them over **SMB (TCP 445)**: the agent is copied there, then installed as a service, through this protocol.

> **Domain checkbox off by default**
>
> This checkbox is off by default, and forgetting it gives an empty list. Without it, the domain is not offered in the wizard's selector. The setting is on the domain, not on this screen.

> **LDAP domains only**
>
> Discovery only works on an LDAP domain backed by an Active Directory. SAML, local and anonymous domains are out of scope: they do not appear in the selector.

## Server discovery

The console queries the directory and keeps only those machines that **publish a Remote Desktop service** (technically, a `TERMSRV` service principal name). An RDS server that does not publish one will never appear in the list.

> **Manual entry**
>
> No field exists to declare a server by hand: if the directory does not publish it, this screen cannot register it. The correction is made in the directory.

The search starts at the **root of the domain**, and that scope is not configurable: it cannot be narrowed to an organisational unit.

If the directory does not answer, the wizard names the failing domains rather than showing an empty list with no explanation.

## Registration wizard

Registration goes through a three-tab wizard, the last two of which only open if they are requested.

**1. Selecting servers.** Pick a domain, run the search, then drag the selected servers to the right-hand panel. Each selected server then carries two checkboxes, *Deploy an agent* and *Create applications*, which decide what follows.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_RDSServers_Wizard_Servers.png)

> **Selection limit**
>
> The selection is capped at two hundred servers per pass, and the counter at the bottom shows the number reached. Beyond that, several passes are needed.

**2. Agent configuration**, if at least one server asked for it. Target directory and drive, Edge Gateway, then the account that will perform the installation. Every field is mandatory.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_RDSServers_Wizard_Agent.png)

**3. Application templates**, if at least one server asked for it. The template describes one archetypal application, and the wizard creates one per server.

![](https://docs.cyberelements.io/saas/img/cyberelements/CYE_AdminConsole_RDSServers_Wizard_Templates.png)

> **Substitution character**
>
> In the template name, `{}` is replaced by the server's name. It yields distinct, recognisable applications from a single template. Without it, the server name is simply appended.

The validation button only becomes active once the requested tabs are valid. A greyed-out tab therefore means no server asked for it, not that it is unavailable.

## Applications created

The applications produced are **RDS** or **HTML5 (RDP)**, and nothing else: no SSH, no VNC, no virtual desktop. They receive an automatic description marking them as template-generated.

The template form is an application's own, stripped of what makes no sense in bulk: description, authorised networks, target server, dynamic mode and user alert are absent: they are set afterwards, application by application.

## Agent deployment and removal

Both toolbar actions apply to a selection of already-registered servers.

> **Asynchronous operation**
>
> The report fills in as the operation runs. The console pushes a task and polls its state every five seconds. The report can therefore stay on "Pending" for a while, and end on **To verify** when the machine did not answer in time. This state is neither a success nor a failure: the outcome is missing and is confirmed on the machine.

> **Gateways offered**
>
> From the **toolbar**, only gateways capable of recording are offered. From the **registration wizard**, the list is not filtered. Nothing on screen signals the difference: with identical configuration, an Edge Gateway may therefore appear on one route and not the other.

## Server unregistration

The deletion window offers two options, unticked by default: delete the **agents** and delete the **related applications**.

> **Deletion options unticked**
>
> Without those boxes, the agent and the applications are kept. Unregistering a server merely removes it from this list. The agent stays installed on the machine, the applications stay published and assigned. This is the intended behaviour of the operation, which rarely matches the need.

When the boxes are ticked, order matters: agents first, applications next, the server last.

> **Applications that cannot be deleted**
>
> An application cannot be deleted if an [access policy](https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AccessContracts/), a [notification profile](https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/NotificationProfiles/) or an [assistance profile](https://docs.cyberelements.io/saas/bg/Usage/Administration/AdminConsole/MainWorkPanel/AccessPolicies/AssistanceProfiles/) cites it, nor if a **session is open** on it. The server then stays in the list, and the report opens a column naming the applications at fault. Processing a batch is therefore partial by construction: some servers are unregistered, others stay.

## Limits

- A registered server **cannot be modified**: there is no edit screen and no edit button. It is deleted and registered again.
- Discovery only sees machines publishing a Remote Desktop service in the directory, and the search scope cannot be adjusted.
- Two hundred servers at most per wizard pass.
- The applications created are limited to the **RDS** and **HTML5 (RDP)** types.
- No access through the public API: the object is not exposed there.

---

The details of the fields, of the wizard's tabs and of the reports are in the [module reference](https://docs.cyberelements.io/saas/bg/Usage/AdminConsoleReference/RDSServers/).
