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.
WinRM · Windows Automation
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.
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.
client → WinRM 5985/5986 → host
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
winrm quickconfig— basic setupwinrm enumerate winrm/config/listener— listenersTest-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
| Setting | Recommendation |
|---|---|
| Transport | HTTPS (5986) outside Kerberos-protected domains |
| Auth | Kerberos; certificate auth for non-domain |
| Firewall | Only from automation hosts |
| Basic auth | Disabled |
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.
Mechanics
Follow the chain of components script/command → PowerShell runtime → remoting/CIM/WinRM/API → Windows subsystem → persisted/runtime state → independent read-back and record which layer currently owns truth.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
Quick lookup tables
WinRM automation proof-boundary map
Fast scope, execution, platform-state and workload-acceptance boundaries for WinRM.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / identity | Exact source revision, hosts and execution identity are explicit | Selector drift, stale inventory or wrong token changes scope/authority |
| Operation | Tool/provider action and per-host result are traceable | Partial failure, hidden error semantics or environment differences are lost |
| Platform state | Persistent and effective state are read back | Command/cmdlet success is mistaken for convergence |
| Workload proof | Original service/application acceptance passes | Automation summary substitutes for actual runtime behavior |