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

# PowerShell scripting

Script Remote Desktop Manager med PowerShell ved hjælp af enten Devolutions.PowerShell modul eller brugerdefineret PowerShell kommandoer run direkte i app.

{% hint style="info" %}
Vi har moved til en [GitHub lager](https://github.com/Devolutions/DevoSample-ps) til hold Devolutions' various eksempler og recipes. Consult den til know hvad er tilgængelig. Spørgsmål og eksempler skal være requested på vores [forum](https://forum.devolutions.net/product/powershell-module).
{% endhint %}

Der er to ways til interact med Remote Desktop Manager ved hjælp af PowerShell:

<table><thead><tr><th width="147"></th><th></th></tr></thead><tbody><tr><td><a href="/powershell/da/remote-desktop-manager-powershell/powershell-scripting/powershell-module.md">Modul</a></td><td>Devolutions.PowerShell modul: Den er et modul at exposes mange cmdlets at bruges til "pilot" en lokal installation af Remote Desktop Manager. Som sådan, den er quite different fra flest moduler tilgængelig ud der since majority bruges til communicate med en fjern tjeneste. Denne means at den kræver en interactive Windows session i en bruger kontekst.</td></tr><tr><td><a href="/powershell/da/remote-desktop-manager-powershell/powershell-scripting/custom-powershell-commands.md">Brugerdefineret handlinger</a></td><td>Snippets af PowerShell code at kan være executed direkte i Remote Desktop Manager. Handlingerne kan være initiated ved hjælp af <em><strong>Edit – Edit (Særlig handlinger) – Brugerdefineret PowerShell kommando</strong></em>. advantages af denne approach er følgende:<br><br>1. Der er ingen behøver til handle loading af passende modul for instansen af Remote Desktop Manager.<br>2. Der er ingen behøver til handle filtering af poster. Flest af klokkeslættet, De ville perform manual valg direkte i Deres <em><strong>navigation pane</strong></em> eller, selv better, brug <em><strong>Avanceret søgning</strong></em> at vælge poster i en fell swoop.</td></tr></tbody></table>

#### Se også

* [Devolutions Academy - Automating Tasks with Scripts and Macros](https://academy.devolutions.net/student/path/1925316/activity/2668004)
* [Devolutions Academy – Built-in automation: PowerShell scripts and macros](https://academy.devolutions.net/student/activity/3380125)
* [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 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/powershell/da/remote-desktop-manager-powershell/powershell-scripting.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.
