> 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

{% 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="/pages/3t3MHbjd02DNd27vbI8K">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="/pages/yc99iJJOifLOBQdZpOtX">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 current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell/it/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.
