> 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/powershell/es/remote-desktop-manager-powershell/powershell-scripting.md).

# Scripting de PowerShell

{% hint style="info" %}
Hemos migrado a un [repositorio de GitHub](https://github.com/Devolutions/DevoSample-ps) para albergar los distintos ejemplos y recetas de Devolutions. Consúltelo para saber qué está disponible. Las preguntas y las solicitudes de ejemplos deben realizarse en nuestro [foro](https://forum.devolutions.net/product/powershell-module).
{% endhint %}

Hay dos formas de interactuar con Remote Desktop Manager mediante PowerShell:

<table><thead><tr><th width="147"></th><th></th></tr></thead><tbody><tr><td><a href="/pages/kad9uxkZLGmps2ZRLfVH">Módulo</a></td><td>Módulo Devolutions.PowerShell: es un módulo que expone numerosos cmdlets que se utilizan para «pilotar» una instalación local de Remote Desktop Manager. Por ello, es bastante diferente de la mayoría de los módulos disponibles, ya que la mayoría se utiliza para comunicarse con un servicio remoto. Esto significa que requiere una sesión interactiva de Windows en un contexto de usuario.</td></tr><tr><td><a href="/pages/PoYAl5xcZnlXgFj1nJnW">Acciones personalizadas</a></td><td>Fragmentos de código PowerShell que pueden ejecutarse directamente en Remote Desktop Manager. Las acciones pueden iniciarse mediante <em><strong>Editar – Editar (Acciones especiales) – Comando PowerShell personalizado</strong></em>. Las ventajas de este enfoque son las siguientes:<br><br>1. No es necesario gestionar la carga del módulo adecuado para la instancia de Remote Desktop Manager.<br>2. No es necesario gestionar el filtrado de las entradas. La mayoría de las veces, realizaría la selección manual directamente en su <em><strong>panel de navegación</strong></em> o, mejor aún, utilizaría la <em><strong>Búsqueda avanzada</strong></em> para seleccionar entradas de una sola vez.</td></tr></tbody></table>

#### Véase también

* [Devolutions Academy - Automatizar tareas con scripts y macros](https://academy.devolutions.net/student/path/1925316/activity/2668004)
* [Devolutions Academy – Automatización integrada: scripts de PowerShell y macros](https://academy.devolutions.net/student/activity/3380125)
* [Devolutions Academy - Optimizar las conexiones remotas con desencadenadores de eventos](https://academy.devolutions.net/student/path/1925316/activity/2668000)


---

# 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/powershell/es/remote-desktop-manager-powershell/powershell-scripting.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.
