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

# WinRM aktivieren und vertrauenswürdige Hosts hinzufügen

Diese Anleitung beschreibt die Schritte zum Aktivieren von WinRM und zum Hinzufügen des Namens eines Remote-Computers zur Liste der vertrauenswürdigen Hosts auf dem Server, auf dem Devolutions Server gehostet wird. Die WinRM-Transportports sind 5985 für HTTP und 5986 für HTTPS.

1. Stellen Sie sicher, dass WinRM auf dem Remote-Computer aktiviert ist, auf dem sich die lokalen Konten befinden. Mit dem Befehl `winrm quickconfig` kann WinRM aktiviert werden.

{% hint style="info" %}
Weitere Einzelheiten finden Sie unter [Enable Windows Remote Shell](https://docs.microsoft.com/en-us/troubleshoot/windows-server/remote/how-to-enable-windows-remote-shell) und [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. Fügen Sie den Namen des Remote-Computers zur Liste der vertrauenswürdigen Hosts des Computers hinzu, auf dem Devolutions Server gehostet wird. Hier sind die PowerShell-Befehle.

* Um alle Remote-Hosts gleichzeitig hinzuzufügen: `Set-Item WSMan:localhost\client\trustedhosts -value *`
* Um alle Remote-Hosts einer bestimmten Domäne zur Liste der vertrauenswürdigen Hosts hinzuzufügen: `Set-Item WSMan:\localhost\Client\TrustedHosts *.yourdomain.local`
* Um einen einzelnen Host zur bestehenden Liste der vertrauenswürdigen Hosts hinzuzufügen: `Set-Item WSMan:\localhost\Client\TrustedHosts host.yourdomain.local -Concatenate`

#### Siehe auch

* [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/de/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.
