> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/rdm/knowledge-base/how-to-articles/allow-password-in-variable.md).

# Allow password in variable

The ***Allow password in variable*** setting lets you store and reference passwords in variables, which can then be reused across multiple entries, scripts, or commands without having to enter the password.

To use the password as a variable, go to the entry's **Security settings** and enable **Allow password in variable**.

![](https://cdnweb.devolutions.net/docs/RDMW2083_2024_3.png)

If you have an advanced workspace, you will need to enable ***Allow password variables for all entries*** and ***Allow password variable in macros*** by going to ***Administration – System settings – Password policy***.

If your entries use the **Linked (vault) credential** mode, make sure to also enable **Allow password in variable** in the linked credential entry itself.

### Use case

Here is an example using the ***Allow password in variable*** setting to send the password automatically inside a TeamViewer session.

1. Open Remote Desktop Manager.
2. Add a new entry and select ***Typing Macro*** under ***Macro/Script/Tool***.
3. Enter `$USERNAME${TAB}$PASSWORD${TAB}{ENTER}` in the general field of the typing macro.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Please note that the <em><strong>initial wait</strong></em> has been configured to 5 seconds, this varies depending on each user system.</p></div>
4. Click ***Add*** to save.

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6016_2024_1.png" alt=""><figcaption></figcaption></figure>
5. Open your ***Credential Management entry***.

You can create a ***Credential Management entry*** in Remote Desktop Manager by clicking ***Add a new entry – Credential Management*** and selecting ***Username / Password***.

6. Go the properties of your Credential entry and enable ***Allow password in variable*** under ***Security Settings***.
7. Click ***Update*** to save.
8. The next step happens when the TeamViewer session is open and credentials are ready to be entered.
9. Right-click on your credential entry and select ***Macros/Scripts/Tools - Send Credentials*** (or the name you gave your entry).

   <figure><img src="https://cdnweb.devolutions.net/docs/RDMW6015_2024_1.png" alt=""><figcaption></figcaption></figure>
10. In conclusion, put the mouse cursor in the appropriate login field and the typing macro will do the rest.

### See also

* [Embedded credentials not working in Chromium-based browsers](https://docs.devolutions.net/rdm/kb/troubleshooting-articles/embedded-credentials-not-working-in-chromium-based-browsers)
* [Remote Desktop Manager typing macro to perform authentication](https://docs.devolutions.net/rdm/kb/how-to-articles/rdm-typing-macro-perform-authentication/)
* [Devolutions Academy - Automating Tasks with Scripts and Macros](https://academy.devolutions.net/student/path/1925316/activity/2668004)
* [Devolutions Academy - Streamlining Remote Connections with Event Triggers](https://academy.devolutions.net/student/path/1925316/activity/2668000)
* [Devolutions Academy - Allow passwords in variables](https://academy.devolutions.net/student/page/2616047-allow-passwords-in-variables?sid=f556a6fb-1f44-452a-9c1d-b7a3818942c9\&sid_i=0)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.devolutions.net/rdm/knowledge-base/how-to-articles/allow-password-in-variable.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.
