Skip to main content

winrm

The winrm command provides Windows Remote Management (WinRM) operations for remote command execution and PowerShell remoting.

Usage


Overview

WinRM is Microsoft’s implementation of WS-Management, providing a SOAP-based protocol for remote system management. It enables operators to execute commands and PowerShell scripts on remote Windows hosts over HTTP (port 5985) or HTTPS (port 5986). WinRM is the protocol underlying PowerShell Remoting (Enter-PSSession, Invoke-Command) and is commonly enabled in enterprise environments for administrative management.

Planned Capabilities


Authentication

WinRM uses the same global authentication flags as all other R4t commands. The following authentication methods are supported:

Connection Details


Payload Execution via WinRM

WinRM is a primary execution channel for delivering payloads to remote hosts. The payload factory can generate artifacts suited for WinRM delivery:

Payload Factory Integration

When the payload factory is operational, WinRM execution modules will request artifacts by capability:

Spray Integration

WinRM credential spraying tests credentials against WinRM endpoints. See spray winrm.

  • psremote — PowerShell Remoting (full runspace execution over WinRM)
  • wmi — WMI remote execution (alternative to WinRM)
  • smb — SMB file operations (payload staging)
  • spray — Multi-protocol credential spraying
  • rdp — RDP operations