# Setting up the remote context

In order to run an automation with the Remote Desktop minimized, follow these steps:

Note: These steps must be done on the machine that runs the Remote Desktop, not the Remote Desktop itself.

Note: All instances of Remote Desktop must be closed.

1\) In the Windows search bar, type "run"(or Windows Key + R) and the following window should pop up:

<div align="left"><figure><img src="/files/qExcTIAVPUkiAi0WR5Ey" alt=""><figcaption><p>Run box</p></figcaption></figure></div>

In it, type "regedit" and press Ok.

2\) In the Registry Editor's search bar, type: "Computer\HKEY\_CURRENT\_USER\SOFTWARE\Microsoft\Terminal Server Client" and press Enter.

<figure><img src="/files/DAmpIseeqVSTGmMgjcp6" alt=""><figcaption></figcaption></figure>

3\) In the folder that you have just opened, right click -> select "New" -> select "DWORD (32-bit) Value"

<figure><img src="/files/PSjZen7igcU7CggEdqpC" alt=""><figcaption></figcaption></figure>

Change the name of the newly created file to "RemoteDesktop\_SuppressWhenMinimized"

4\) Open the file and in the "Value data" field, put 2 (it's 0 by default).

<figure><img src="/files/N1iUfRQu5lfEYTclnObd" alt=""><figcaption></figcaption></figure>

Click "OK" to save

5\) Restart the PC.


---

# 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.tailent.com/remote-desktop-automation/setting-up-the-remote-context.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.
