Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

WinRM · Windows Automation

Direct answer

WinRM in Windows Automation provides WS-Management transport for remote management, with listener, certificate/trust, authentication, authorization and endpoint/session configuration as separate proof boundaries.

When to use this

Use it when designing, operating or troubleshooting Windows Automation behavior around WinRM. Keep target scope, execution context, operation result, platform read-back and workload acceptance as separate proof boundaries.

First 30 seconds

1. WinRM is the transport for Windows automation.

2. Enable via GPO.

3. HTTPS listener for non-domain/untrusted networks.

4. Firewall scope to admin subnets.

5. Monitor service.

Operational verification

client → WinRM 5985/5986 → host

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows and PowerShell automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows and PowerShell automation · Windows Automation → WinRM owns WS-Management transport automation; PowerShell Remoting and CIM own higher-level session/provider semantics.
Scope / prerequisiteUse it when designing, operating or troubleshooting Windows Automation behavior around WinRM. Keep target scope, execut…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

target/name → TCP reachability → WinRM listener → TLS/trust → authentication → authorization/session config → management operation → target verification

Healthy evidence: listener/trust/auth and endpoint context are controlled, and the intended higher-level management operation verifies.

Step 2 Failure modes and next checks Narrow the fault

Suspicious evidence: ports or Test-WSMan pass while certificate, policy, endpoint or authorization blocks the actual automation.

WinRM transport health does not show PowerShell/CIM/provider operation or final Windows state.

Step 3 Common mistakes Narrow the fault
  • WinRM over HTTP on untrusted networks.
Step 4 Where it fails Narrow the fault

Trace a failure along the path it takes: script/command → PowerShell runtime → remoting/CIM/WinRM/API → Windows subsystem → persisted/runtime state → independent read-back. Find the first step where the actual state differs from what you expected.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points
  • TCP 5985/5986 reachable ≠ WinRM listener usable.
  • HTTPS listener exists ≠ certificate identity trusted.
  • WinRM authentication ≠ PowerShell endpoint authorization.
  • Test-WSMan success ≠ requested remote command succeeds.
Key checks
  • winrm quickconfig — basic setup
  • winrm enumerate winrm/config/listener — listeners
  • Test-NetConnection <host> -Port 5986 — HTTPS listener
ReferenceWhat it is1 section · depth on demand

Core model

Trace name/network reachability to listener/protocol, TLS or trust configuration, authentication, service/endpoint policy and the management operation that follows.

ReferenceWhy it matters1 section · depth on demand

In depth

WinRM (Windows Remote Management) is the Windows implementation of WS-Management and the transport for PowerShell Remoting and Ansible's Windows support. It listens on TCP 5985 (HTTP) and 5986 (HTTPS).

Enable-PSRemoting -Force
winrm enumerate winrm/config/listener
Test-WSMan srv01
Set-Item WSMan:\localhost\Client\TrustedHosts -Value 'jump01' -Force   # workgroup only
SettingRecommendation
TransportHTTPS (5986) outside Kerberos-protected domains
AuthKerberos; certificate auth for non-domain
FirewallOnly from automation hosts
Basic authDisabled

Over HTTP with Kerberos or NTLM, message payloads are still encrypted by WinRM, but HTTPS adds server authentication and is required for Basic/CredSSP scenarios.

ReferenceImportant terms & boundaries2 sections · depth on demand

What this shows and what it does not

WinRM transport health does not show PowerShell/CIM/provider operation or final Windows state.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows and PowerShell automation current

Authoritative/upstream documentation reviewed for bounded claims in Windows Automation > WinRM. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://learn.microsoft.com/en-us/powershell/ · confidence 94%
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
winrm automationwsman windows automationwindows remote management automation
Embedded reference data

Quick lookup tables

WinRM automation proof-boundary map

Fast scope, execution, platform-state and workload-acceptance boundaries for WinRM.

BoundaryHealthy evidenceSuspicious evidence
Scope / identityExact source revision, hosts and execution identity are explicitSelector drift, stale inventory or wrong token changes scope/authority
OperationTool/provider action and per-host result are traceablePartial failure, hidden error semantics or environment differences are lost
Platform statePersistent and effective state are read backCommand/cmdlet success is mistaken for convergence
Workload proofOriginal service/application acceptance passesAutomation summary substitutes for actual runtime behavior
Confirmation

Confirm action

Continue?