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

# Kan ikke bruge variablen $PASSWORD$

Ret, at PASSWORD-variablen ikke opløses i indtastningsmakroer i Remote Desktop Manager, ved at aktivere valgmuligheden Tillad adgangskode i variabel.

Når `$PASSWORD$` bruges som en del af en ***Indtastningsmakro***, henter variablen muligvis ikke adgangskoden og sender i stedet variablen, som den er. Det er en sikkerhedsfunktion, der er aktiveret som standard, men som kan deaktiveres.

### Løsning

Følg trinnene nedenfor for at bruge adgangskoder i variabler:

1. Højreklik i Remote Desktop Manager på Deres post, og vælg ***Egenskaber***.
2. Gå i menuen til venstre til ***Sikkerhed – Sikkerhedsindstillinger***.
3. Markér afkrydsningsfeltet ***Tillad adgangskode i variabel*** under afsnittet ***Adgangskode***.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Hvis valgmuligheden er nedtonet, skal De aktivere <em><strong>Tillad adgangskodevariabler for alle poster</strong></em> og <em><strong>Tillad adgangskodevariabel i makroer</strong></em> under <em><strong>Administration – Systemindstillinger – Adgangskodeindstillinger</strong></em>. Hvis De bruger legitimationsoplysningstilstanden <em><strong>Tilknyttet (boks)</strong></em> eller <em><strong>Tilknyttet (ekstern boks)</strong></em> til Deres post, skal De også aktivere valgmuligheden <em><strong>Tillad adgangskode i variabel</strong></em> i den tilknyttede legitimationspost.</p></div>
4. Klik på ***OK*** for at gemme Deres ændringer.

De kan nu bruge variablen `$PASSWORD$` i Deres makroer.

{% hint style="info" %}
Hvad tilladelser angår, skal tilladelserne ***Vis***, ***Opret forbindelse (udfør)*** og ***Vis adgangskode*** være givet for at bruge variablen `$PASSWORD$`. Hvis De bruger en privilegeret konto (PAM i Devolutions Server), skal tilladelsessættet ***Operatør*** (eller højere) også være givet i PAM-boksen.
{% 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/da/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.
