> 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/devolutions-cloud-powershell/powershell-module.md).

# Modulo PowerShell

Il [modulo Devolutions.PowerShell](/powershell/it/remote-desktop-manager-powershell/devolutions.powershell-core-module.md) è un modo per accedere, creare, aggiornare e rimuovere elementi in Devolutions Cloud. Questo la aiuterà ad automatizzare alcune operazioni/script. Dopo aver installato il modulo Devolutions.PowerShell, sarà pronto per utilizzare il modulo e connettersi alla sua istanza di Devolutions Cloud.

### Prerequisiti

* PowerShell 7.4 o versione successiva installato:
  * [Windows](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)
  * [macOS](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos)
  * [Linux](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux)
* Un [utente dell'applicazione](https://docs.devolutions.net/cloud/it/web-interface/administration/management/application-identities/manage-application-identities)

### Connessione alla sua istanza di Devolutions Cloud

{% hint style="info" %}
Per l'elenco completo dei comandi disponibili, consulti [Comandi PowerShell](/powershell/it/powershell-commands.md). Altre opzioni di installazione sono disponibili nella [PowerShell Gallery](https://www.powershellgallery.com/packages/devolutions.powershell/).
{% endhint %}

1. Una volta installato PowerShell 7.4 o versione successiva, apra un terminale PowerShell e installi il modulo Devolutions.PowerShell con il seguente comando: `Install-Module -Name Devolutions.Powershell`

   ![](https://cdnweb.devolutions.net/docs/docs_en_hub_Hub2136.png)
2. Si connetta a Devolutions Cloud utilizzando il comando seguente. Se non compare alcun errore, significa che è connesso alla sua istanza di Devolutions Cloud.

   `Connect-HubAccount -Url https<area>://yourhub.devolutions.app/ -ApplicationSecret [YOUR_APPLICATION_SECRET] -ApplicationKey [YOUR_APPLICATION_KEY]`

   ![](https://cdnweb.devolutions.net/docs/docs_en_hub_Hub4062.png)

### Esempio e utilizzo dei comandi

1. Con il comando `Get-HubVault`, può ottenere le casseforti che il suo utente dell'applicazione può visualizzare e modificare. Se ha impostato le autorizzazioni del suo utente dell'applicazione su più casseforti, vedrà un array di casseforti.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_hub_Hub4063.png" alt=""><figcaption></figcaption></figure>
2. Con queste informazioni sulla cassaforte, può ottenere tutte le voci con il comando `Get-HubEntry` e l'ID della cassaforte. Se ha più di una voce, vedrà un array di voci.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_hub_Hub4064.png" alt=""><figcaption></figcaption></figure>
3. Per visualizzare informazioni specifiche, può assegnare il risultato del comando Devolutions Cloud a una variabile e recuperare ciò di cui ha bisogno, come l'ID della connessione in questo esempio:

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_hub_Hub4065.png" alt=""><figcaption></figcaption></figure>
4. Per modificare questa voce, può cambiare l'oggetto e aggiornarlo con il comando `Set-HubEntry`.

   <figure><img src="https://cdnweb.devolutions.net/docs/docs_en_hub_Hub4066.png" alt=""><figcaption></figcaption></figure>

In qualsiasi momento, può verificare nella versione web di Devolutions Cloud che le modifiche siano state applicate.


---

# 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/devolutions-cloud-powershell/powershell-module.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.
