winrm_exec
Execute PowerShell commands on remote Windows hosts via WinRM, no SSH required. Captures output in-process without console windows.
Instructions
Run a command on a remote Windows host via PowerShell Remoting (WinRM / Invoke-Command). Native to Windows Server — no SSH server or agent needed on the target, only WinRM enabled. Output captured in-process (no console window).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| useSsl | No | Use HTTPS/5986 WinRM. | |
| command | Yes | PowerShell command/scriptblock body to run remotely. | |
| password | No | Credential password. | |
| username | No | Credential username (DOMAIN\\user or host\\user). Omit to use the host process identity. | |
| timeoutMs | No | Hard timeout in ms (default 120000). | |
| computerName | Yes | Remote Windows host name or IP. | |
| authentication | No | WinRM auth mechanism. |