> 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

Apra terminali PowerShell nel browser in PowerShell Universal, con destinazione ambienti e credenziali Run As, con cronologia e timeout configurabili.

{% 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 conservata nel database di PowerShell Universal. È possibile riconnettersi ai terminali disconnessi purché non siano scaduti.

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

## Configurare un terminale

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

## Usare un terminale

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

Una volta avviato il terminale, potrà impartire comandi.

### Arrestare un terminale

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

### 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 dell'istanza di terminale inattiva.

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.

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.

Potrà esaminare qual è stato il comando 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 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-universal/it/automazione/terminals.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 `automate deployments from our CI pipeline` 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.
