Raw WinRM Transport

The raw WinRM transport uses WS-Management shell/command semantics rather than PowerShell SDK runspaces.

Requirements

Behavior

Raw WinRM supports:

Explicit credentials use the same credential reference model as PSRP. Dispatch resolves the configured provider locally, keeps the password in memory for the run, sets WSMan connection options for the raw WinRM shell session, and never accepts plaintext password command-line flags.

Differences From PSRP

Raw WinRM captures process stdout/stderr. It does not provide rich PowerShell streams such as warning, verbose, debug, and information as native stream records.

Validation Commands


dispatch run cmd whoami --target PC001 --transport winrm --no-progress --output json
dispatch run ps .\Smoke.ps1 --target PC001 --transport winrm --no-progress --output json
dispatch run cmd whoami --target PC001 --transport winrm --credential prod-admin --no-progress --output json

Common Failures

FailureMeaning
TransportUnavailableWinRM endpoint or shell service is unavailable.
AuthenticationFailedAuthentication failed before execution.
AuthorizationFailedAuthenticated user is not allowed to create shell/execute.
TimedOutProbe, shell, command, upload, or artifact operation timed out.

Dispatch does not run winrm quickconfig or change endpoint policy.