# Terminal Server Support

QLM Professional can limit the number of instances of your application running on a Terminal Server or Citrix XenDesktop.

To restrict the number of instances on a Terminal Server or Citrix XenDesktop, you must set the "Floating Seats" property when creating an Activation Key.

Below are the steps required to specify the number of allowed terminal server instances:

* Click on the Manage Keys tab.
* Click on the Create button.
* Specify the Floating Seats property to the number of instances allowed to run on the Terminal Server.
* Click OK

In your code, you must also set the LimitTerminalServerInstances property to *true*. The default value is *false*.

Note that an instance is uniquely identified by a session id and a user id. For example, if only 1 instance is allowed, **the same user can still launch your application multiple times within the same Terminal Server session.** That same user or another user will not be able to start another Terminal Server session and start another instance of your application.

As of QLM 9.2, if QLM detects that the maximum number of instances of your application has been reached, the returned error message includes information about the running instances.&#x20;


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.soraco.co/docs/faq/terminal-server-support.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
