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

# PowerShell scripting

{% hint style="info" %}
We have moved to a [GitHub repository](https://github.com/Devolutions/DevoSample-ps) to hold Devolutions' various samples and recipes. Consult it to know what is available. Questions and samples should be requested on our [forum](https://forum.devolutions.net/product/powershell-module).
{% endhint %}

There are two ways to interact with Remote Desktop Manager using PowerShell:

<table><thead><tr><th width="147"></th><th></th></tr></thead><tbody><tr><td><a href="https://docs.devolutions.net/powershell/rdm-powershell/powershell-scripting/powershell-module/">Module</a></td><td>Devolutions.PowerShell module: It is a module that exposes many cmdlets that are used to "pilot" a local installation of Remote Desktop Manager. As such, it is quite different from most modules available out there since the majority is used to communicate with a remote service. This means that it requires an interactive Windows session in a user context.</td></tr><tr><td><a href="https://docs.devolutions.net/powershell/rdm-powershell/powershell-scripting/custom-powershell-commands/">Custom actions</a></td><td>Snippets of PowerShell code that can be executed directly in Remote Desktop Manager. The actions can be initiated using <em><strong>Edit – Edit (Special actions) – Custom PowerShell command</strong></em>. The advantages of this approach are the following:<br><br>1. There is no need to handle the loading of the appropriate module for the instance of Remote Desktop Manager.<br>2. There is no need to handle the filtering of entries. Most of the time, you would perform manual selection directly in your <em><strong>navigation pane</strong></em> or, even better, use the <em><strong>Advanced search</strong></em> to select entries in one fell swoop.</td></tr></tbody></table>

#### See also

* [Devolutions Academy - Automating Tasks with Scripts and Macros](https://academy.devolutions.net/student/path/1925316/activity/2668004)
* [Devolutions Academy - Streamlining Remote Connections with Event Triggers](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:

```
GET https://docs.devolutions.net/powershell/remote-desktop-manager-powershell/powershell-scripting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
