> 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

Installi il modulo Devolutions.PowerShell e si connetta a Devolutions Cloud per creare, recuperare e aggiornare casseforti e voci tramite 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. Ciò l'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 applicativo](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`
2. Si connetta a Devolutions Cloud utilizzando il comando seguente. Se non visualizza 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]`

### Esempio di comando e utilizzo

1. Con il comando `Get-HubVault`, può ottenere le casseforti che il suo utente applicativo può visualizzare e modificare. Se ha impostato le autorizzazioni del suo utente applicativo su più casseforti, vedrà un array di casseforti.
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.
3. Per visualizzare informazioni specifiche, può assegnare il risultato del comando Devolutions Cloud a una variabile e recuperare ciò che le serve, come l'ID della connessione in questo esempio:
4. Per modificare questa voce, può cambiare l'oggetto e aggiornarlo con il comando `Set-HubEntry`.

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.
