> 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/troubleshooting-articles/unable-to-use-the-usdpasswordusd-variable.md).

# Unable to use the $PASSWORD$ variable

Fix the PASSWORD variable not resolving in Remote Desktop Manager typing macros by enabling the Allow password in variable option.

When used as part of a ***Typing macro***, the `$PASSWORD$` variable might not retrieve the password and instead send the variable as is. This is a security feature that is enabled by default, but can be disabled.

### Solution

Follow the steps below to use passwords in variables:

1. In Remote Desktop Manager, right-click on your entry and select ***Properties***.
2. In the left menu, navigate to ***Security – Security settings***.
3. Under the ***Password*** section, check the ***Allow password in variable*** option box.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>If the option is greyed out, you need to activate <em><strong>Allow password variables for all entries</strong></em> and <em><strong>Allow password variable in macros</strong></em> in <em><strong>Administration – System settings – Password settings</strong></em>. Also, if you are using the <em><strong>Linked (vault)</strong></em> or <em><strong>Linked (external vault)</strong></em> credential modes for your entry, you will need to enable the <em><strong>Allow password in variable</strong></em> option in the linked credential entry as well.</p></div>
4. Click ***OK*** to save your changes.

You can now use the `$PASSWORD$` variable in your macros.

{% hint style="info" %}
As far as permissions are concerned, to use the `$PASSWORD$` variable, the ***View***, ***Connect (execute)***, and ***View password*** permissions must be granted. If using a privileged account (PAM in Devolutions Server), the ***Operator*** permission set (or higher) must also be granted in the PAM vault.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/rdm/knowledge-base/troubleshooting-articles/unable-to-use-the-usdpasswordusd-variable.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
