# WinRM(PORT: 5985)

WinRM, is a Windows-native built-in remote management protocol that basically uses Simple Object Access Protocol (SOAP) to interact with remote computers and servers, as well as Operating Systems and applications. WinRM allows the user to :&#x20;

* Remotely communicate and interface with hosts.
* Execute commands remotely on systems that are not local to you but are network accessible.
* Monitor, manage and configure servers, operating systems and client machines from a remote location.

&#x20;As a pentester, this means that if we can find credentials (typically username and password) for a user who has remote management privileges, we can potentially get a PowerShell shell on the host.


---

# Agent Instructions: 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:

```
GET https://n0m4dsec.gitbook.io/sec-book/common-web-services/winrm-port-5985.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
