Skip to content
WinRM
Service

WinRM

WinRM is Windows remote management over HTTP/HTTPS. Attackers probe auth, brute force creds, gain remote shells, bypass CLM, escape JEA, and move laterally across Windows environments

:5985 :5986 15 guides 5 phases
1 min read Created: Dec 28, 2025 Updated: Jul 14, 2026

WinRM (Windows Remote Management) is Microsoft's implementation of the WS-Management protocol for remote administration of Windows systems. It runs on TCP port 5985 for HTTP and TCP port 5986 for HTTPS. Nmap identifies it as wsman or http with WinRM-specific responses.

WinRM is a primary lateral movement vector in Windows and Active Directory environments. It provides full PowerShell remoting capabilities, meaning valid credentials grant interactive command execution on the target. Tools like evil-winrm, crackmapexec, and PowerShell's Enter-PSSession use WinRM for post-exploitation access. It supports NTLM and Kerberos authentication, making it compatible with pass-the-hash and pass-the-ticket attacks.

Enumeration starts with checking whether WinRM is accessible and which authentication methods are accepted. Brute-forcing or spraying credentials against WinRM is effective because it supports local and domain accounts. Once credentials are obtained, WinRM provides a full interactive shell, file upload/download capabilities, and the ability to load PowerShell modules for further enumeration and privilege escalation.

Enumeration

WinRM discovery, auth probing, cred validation, and config enum

5

Vulnerability Discovery

Guides for finding WinRM misconfigs, weak TLS, and auth flaws

4

Exploitation

Brute force, shell access, CLM bypass, and JEA escape guides

3

Privilege Escalation

Bypass CLM and escape JEA endpoints over WinRM sessions

2

Lateral Movement

Move across accounts or systems to expand reach. Use trust paths to access new assets.

1

WinRM Lateral Movement

Exploiting Windows Remote Management (WinRM) for lateral movement using tools like Evil-WinRM, CrackMapExec, and PowerShell remoting.

May 6, 2026 • 4 min read