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

# Scripting PowerShell

Automatizzi Remote Desktop Manager con PowerShell utilizzando il modulo Devolutions.PowerShell oppure comandi PowerShell personalizzati eseguiti direttamente nell'applicazione.

{% hint style="info" %}
Ci siamo spostati su un [repository GitHub](https://github.com/Devolutions/DevoSample-ps) per raccogliere i vari esempi e ricette di Devolutions. Lo consulti per sapere cosa è disponibile. Domande ed esempi vanno richiesti sul nostro [forum](https://forum.devolutions.net/product/powershell-module).
{% endhint %}

Esistono due modi per interagire con Remote Desktop Manager tramite PowerShell:

<table><thead><tr><th width="147"></th><th></th></tr></thead><tbody><tr><td><a href="/powershell/it/remote-desktop-manager-powershell/powershell-scripting/powershell-module.md">Modulo</a></td><td>Modulo Devolutions.PowerShell: si tratta di un modulo che espone molti cmdlet utilizzati per "pilotare" un'installazione locale di Remote Desktop Manager. In quanto tale, è piuttosto diverso dalla maggior parte dei moduli disponibili, poiché la maggior parte di essi viene utilizzata per comunicare con un servizio remoto. Ciò significa che richiede una sessione Windows interattiva in un contesto utente.</td></tr><tr><td><a href="/powershell/it/remote-desktop-manager-powershell/powershell-scripting/custom-powershell-commands.md">Azioni personalizzate</a></td><td>Frammenti di codice PowerShell che possono essere eseguiti direttamente in Remote Desktop Manager. Le azioni possono essere avviate tramite <em><strong>Modifica – Modifica (Azioni speciali) – Comando PowerShell personalizzato</strong></em>. I vantaggi di questo approccio sono i seguenti:<br><br>1. Non è necessario gestire il caricamento del modulo appropriato per l'istanza di Remote Desktop Manager.<br>2. Non è necessario gestire il filtraggio delle voci. Nella maggior parte dei casi, si effettua la selezione manuale direttamente nel <em><strong>riquadro di navigazione</strong></em> oppure, ancora meglio, si utilizza la <em><strong>Ricerca avanzata</strong></em> per selezionare le voci in un colpo solo.</td></tr></tbody></table>

#### Vedere anche

* [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 dynamically 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/it/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 `build a script that syncs our docs to a CMS` 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.
