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

# Impossibile utilizzare la variabile $PASSWORD$

Quando viene utilizzata all'interno di una ***Macro di digitazione***, la variabile `$PASSWORD$` potrebbe non recuperare la password e inviare invece la variabile così com'è. Si tratta di una funzionalità di sicurezza abilitata per impostazione predefinita, ma che può essere disabilitata.

### Soluzione

Segua i passaggi seguenti per utilizzare le password nelle variabili:

1. In Remote Desktop Manager, faccia clic con il tasto destro sulla sua voce e selezioni ***Proprietà***.
2. Nel menu a sinistra, vada su ***Sicurezza – Impostazioni di sicurezza***.
3. Nella sezione ***Password***, selezioni la casella dell'opzione ***Consenti password nella variabile***.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Se l'opzione è disattivata, deve attivare <em><strong>Consenti variabili di password per tutte le voci</strong></em> e <em><strong>Consenti variabile di password nelle macro</strong></em> in <em><strong>Amministrazione – Impostazioni di sistema – Impostazioni delle password</strong></em>. Inoltre, se utilizza le modalità di credenziali <em><strong>Collegate (cassaforte)</strong></em> o <em><strong>Collegate (cassaforte esterna)</strong></em> per la sua voce, dovrà abilitare l'opzione <em><strong>Consenti password nella variabile</strong></em> anche nella voce di credenziali collegata.</p></div>

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_kb_KB2130.png" alt=""><figcaption></figcaption></figure>
4. Clicchi su ***OK*** per salvare le modifiche.

Ora può utilizzare la variabile `$PASSWORD$` nelle sue macro.

{% hint style="info" %}
Per quanto riguarda le autorizzazioni, per utilizzare la variabile `$PASSWORD$` devono essere concesse le autorizzazioni ***Visualizza***, ***Connetti (esegui)*** e ***Visualizza password***. Se utilizza un account privilegiato (PAM in Devolutions Server), deve essere concesso anche il set di autorizzazioni ***Operatore*** (o superiore) nella cassaforte PAM.
{% 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 dynamically by asking a question.

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

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
