> 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-universal/it/automazione/terminals.md).

# Terminali

{% hint style="info" %}
I terminali richiedono una [licenza](https://store.devolutions.net/package#psu).
{% endhint %}

I terminali sono console PowerShell nel browser all'interno delle quali è possibile eseguire comandi arbitrari. I terminali sono configurati per puntare a un ambiente selezionato e possono facoltativamente usare le credenziali Run As per essere eseguiti come altri utenti. La cronologia dei terminali viene mantenuta all'interno del database di PowerShell Universal. È possibile riconnettersi ai terminali disconnessi purché non siano scaduti.

{% hint style="info" %}
Le configurazioni dei terminali sono archiviate in `terminals.ps1`
{% endhint %}

## Configurare un terminale

È possibile configurare un nuovo terminale accedendo a Automation \ Terminals e facendo clic su Create New Terminal. Potrà selezionare l'ambiente e la credenziale con cui eseguire il terminale.

<figure><img src="/files/Gv7GHB4lV2FptkYCvKYc" alt=""><figcaption><p>Elenco dei terminali disponibili</p></figcaption></figure>

## Usare un terminale

Per usare un terminale, faccia clic sul pulsante Open Terminal del terminale che desidera avviare. A seconda della configurazione, questo potrebbe avviare un nuovo processo PowerShell basato sull'ambiente selezionato.

Una volta avviato il terminale, potrà impartire comandi.

<figure><img src="/files/BjM2pkAxdvcVUSkFW2ze" alt=""><figcaption><p>Uso di un terminale</p></figcaption></figure>

### Arrestare un terminale

Per arrestare un terminale, può accedere alla scheda delle istanze del terminale nella pagina Terminals. Faccia clic sul cestino per arrestare il terminale.

<figure><img src="/files/nlofxo3cl4FANDapmV7i" alt=""><figcaption><p>Istanze del terminale</p></figcaption></figure>

### Riconnettersi a un terminale

Se si allontana da PowerShell Universal, il terminale passerà in stato di inattività. È possibile riconnettersi a un terminale facendo clic sul pulsante Open Terminal per l'istanza del terminale inattiva.

<figure><img src="/files/1HZvGuip5mrAXqSYKRo7" alt=""><figcaption><p>Riconnessione a un terminale</p></figcaption></figure>

I terminali scadono automaticamente dopo 5 minuti. È possibile personalizzare il timeout impostando il parametro `-IdleTimeout` di `New-PSUTerminal`.

## Cronologia

La cronologia del terminale può essere abilitata per ogni configurazione di terminale.

<figure><img src="/files/BgsNNHBsGTXEkvBlNFSV" alt=""><figcaption><p>Abilitare la cronologia dei comandi</p></figcaption></figure>

Quando la cronologia del terminale è abilitata, potrà visualizzare la cronologia di tutti i comandi eseguiti all'interno del terminale. Faccia clic sul pulsante View Command History per l'istanza in questione.

<figure><img src="/files/DUjlaZMAgpIVd6AZJxx3" alt=""><figcaption><p>Visualizzare la cronologia dei comandi</p></figcaption></figure>

Potrà esaminare quale comando è stato eseguito, quando è stato eseguito, chi ha avviato il terminale e quale è stato l'output del comando.


---

# 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-universal/it/automazione/terminals.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.
