> 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

Abra terminales de PowerShell en el navegador en PowerShell Universal, dirigidos a entornos y credenciales de ejecución como, con historial y tiempos de espera configurables.

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

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

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

## Configurar un terminal

Puede configurar un nuevo terminal navegando a **Ejecutar > Terminales** y haciendo clic en Crear nuevo terminal. Podrá seleccionar el entorno y la credencial con la que se ejecutará el terminal.

## Usar un terminal

Para usar un terminal, haga clic en el botón Abrir terminal del terminal que desea iniciar. Según su configuración, esto puede iniciar un nuevo proceso de PowerShell basado en el entorno que haya seleccionado.

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

### Detener un terminal

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

### Volver a conectarse a un terminal

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

Los terminales superarán el tiempo de espera automáticamente después de 5 minutos. Puede personalizar el tiempo de espera estableciendo el parámetro `-IdleTimeout` de `New-PSUTerminal`.

## Historial

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

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

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