> 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/server/es/knowledge-base/how-to-articles/enable-winrm-and-add-trusted-hosts.md).

# Activar WinRM y añadir hosts de confianza

Esta guía proporciona los pasos para habilitar WinRM y añadir el nombre de una máquina remota a la lista de hosts de confianza en el servidor donde está alojado Devolutions Server. Los puertos de transporte de WinRM son 5985 para HTTP y 5986 para HTTPS.

1. Asegúrese de que WinRM está habilitado en la máquina remota donde se encuentran las cuentas locales. Se puede usar el comando `winrm quickconfig` para habilitar WinRM.

{% hint style="info" %}
Para más detalles, consulte [Enable Windows Remote Shell](https://docs.microsoft.com/en-us/troubleshoot/windows-server/remote/how-to-enable-windows-remote-shell) e [Installation and configuration for Windows Remote Management](https://learn.microsoft.com/en-us/windows/win32/winrm/installation-and-configuration-for-windows-remote-management).
{% endhint %}

2. Añada el nombre de la máquina remota a la lista de hosts de confianza de la máquina en la que está alojado Devolutions Server. Estos son los comandos de PowerShell.

* Para añadir todos los hosts remotos a la vez: `Set-Item WSMan:localhost\client\trustedhosts -value *`
* Para añadir todos los hosts remotos de un dominio específico a la lista de hosts de confianza: `Set-Item WSMan:\localhost\Client\TrustedHosts *.yourdomain.local`
* Para añadir un único host a la lista de hosts de confianza existente: `Set-Item WSMan:\localhost\Client\TrustedHosts host.yourdomain.local -Concatenate`

#### Véase también

* [Enable PowerShell WinRM Remoting in PowerShell 7](https://awakecoding.com/posts/enable-powershell-winrm-remoting-in-powershell-7/)


---

# 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/server/es/knowledge-base/how-to-articles/enable-winrm-and-add-trusted-hosts.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.
