> 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/es/knowledge-base/how-to-articles/test-variables.md).

# Variables de prueba

Compruebe qué valores envían las variables de la Auto Typing Macro de Remote Desktop Manager mediante un sencillo truco con un fichero por lotes.

{% hint style="warning" %}
Para que la contraseña esté disponible como variable, debe ir a ***Configuración de seguridad*** de la entrada y marcar ***Permitir contraseña en variable***. Si la opción aparece atenuada, debe activar ***Permitir variables de contraseña para todas las entradas*** y ***Permitir variable de contraseña en macros*** en ***Administración – Configuración del sistema – Política de contraseñas***.
{% endhint %}

{% hint style="warning" %}
Si utiliza el modo de credenciales ***Vinculado (bóveda)*** en sus entradas, también deberá habilitar la opción ***Permitir contraseña en variable*** en la entrada de credenciales vinculada.
{% endhint %}

La ***Auto Typing Macro*** de Remote Desktop Manager resulta muy útil para simular la interacción del usuario. Se utiliza sobre todo para realizar el inicio de sesión automático en páginas web, pero puede ejecutar comandos de shell avanzados en varios sistemas operativos.

A veces necesita confirmar exactamente qué se enviará al utilizar nuestras variables.

Un truco sencillo consiste en crear un fichero por lotes que simplemente escriba lo que se envíe en la línea de comandos.

Solo tiene que copiar lo siguiente en su editor favorito y guardarlo como un fichero de comandos; yo he llamado al mío parrot.bat

```
@echo off
echo.
echo.
echo %*
echo.
echo.
pause
```

Ahora solo se trata de crear una sesión de Línea de comandos (Aplicación externa) y establecer la línea de comandos con la ruta del fichero parrot.bat y añadir las variables justo después.

`"C:\tools\parrot.bat" $DOMAIN$ $IP$ $USERNAME$`

Ahora, al ejecutar la entrada, verá exactamente qué valores se envían.


---

# 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/es/knowledge-base/how-to-articles/test-variables.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.
