> 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/es/automatizacion/terminals.md).

# Terminales

{% hint style="info" %}
Las terminales requieren una [licencia](https://store.devolutions.net/package#psu).
{% endhint %}

Las terminales son consolas de PowerShell en el navegador en las que puede ejecutar comandos arbitrarios. Las terminales se configuran para orientarse a un entorno que usted seleccione y, opcionalmente, pueden usar credenciales de Run As para ejecutarse como otros usuarios. El historial de las terminales se mantiene en la base de datos de PowerShell Universal. Puede volver a conectarse a las terminales desconectadas siempre que no hayan superado el tiempo de espera.

{% hint style="info" %}
Las configuraciones de terminal se almacenan en `terminals.ps1`
{% endhint %}

## Configurar una terminal

Puede configurar una nueva terminal navegando a Automation \ Terminals y haciendo clic en Create New Terminal. Podrá seleccionar el entorno y la credencial con la que se ejecutará la terminal.

<figure><img src="/files/N3w5h7qNrx6RihZVlF7N" alt=""><figcaption><p>Lista de terminales disponibles</p></figcaption></figure>

## Usar una terminal

Para usar una terminal, haga clic en el botón Open Terminal de la terminal que desee iniciar. Según su configuración, esto puede iniciar un nuevo proceso de PowerShell basado en el entorno que haya seleccionado.

Una vez que la terminal se haya iniciado, podrá emitir comandos.

<figure><img src="/files/2Cfknz5uGiVewgHQ6YFx" alt=""><figcaption><p>Uso de una terminal</p></figcaption></figure>

### Detener una terminal

Para detener una terminal, puede navegar a la pestaña de instancias de terminal en la página Terminals. Haga clic en la papelera para detener la terminal.

<figure><img src="/files/nR7FEwQc4P7WHZtFRwoG" alt=""><figcaption><p>Instancias de terminal</p></figcaption></figure>

### Volver a conectarse a una terminal

Si sale de PowerShell Universal, la terminal quedará inactiva. Puede volver a conectarse a una terminal haciendo clic en el botón Open Terminal de la instancia de terminal inactiva.

<figure><img src="/files/nE8efOIUe2DOa3XGjLl3" alt=""><figcaption><p>Volver a conectarse a una terminal</p></figcaption></figure>

Las terminales superarán el tiempo de espera automáticamente tras 5 minutos. Puede personalizar el tiempo de espera configurando el parámetro `-IdleTimeout` de `New-PSUTerminal`.

## Historial

El historial de terminal se puede habilitar por cada configuración de terminal.

<figure><img src="/files/761LoPX7RpOR7lfWJf0U" alt=""><figcaption><p>Habilitar el historial de comandos</p></figcaption></figure>

Cuando el historial de terminal está habilitado, podrá ver el historial de todos los comandos que se ejecutaron en la terminal. Haga clic en el botón View Command History de la instancia en cuestión.

<figure><img src="/files/AlSUikbisxRiuvBf2fcV" alt=""><figcaption><p>Ver el historial de comandos</p></figcaption></figure>

Podrá revisar cuál fue el comando que se ejecutó, cuándo se ejecutó, quién inició la terminal y cuál fue la salida 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/es/automatizacion/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.
