Use it when the symptom is “PowerShell Remoting Failure”: work through the layers in order and stop at the first one that fails.
PowerShell Remoting Failure
PowerShell Remoting Failure isolates Windows remote execution across name resolution/network, WinRM listener, TLS/Kerberos/NTLM trust, authentication, session configuration, second-hop delegation and local authorization.
1. Remoting failure: WinRM listener, firewall, Kerberos/SPN (use FQDN), TrustedHosts for non-domain, double hop, JEA config.
2. Test step by step.
3. Read WinRM events.
4. Avoid CredSSP.
5. Fix and retest.
client → DNS → WinRM → auth → session
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Test-WSMan <computer>Primary Commands
Configuration and operational commands for this Topic.
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
runner → DNS/network → WinRM listener/TLS → Kerberos/NTLM/cert authentication → session configuration → local authorization → second hop if needed → command → target read-back
Healthy evidence: listener/trust/auth/session identities are explicit, server logs explain failures, the exact non-interactive command works and target state is verified.
Step 2 Telling causes apart Verify boundary
Known-good is Test-WSMan returning WSMan identity/protocol information from the intended host, followed by the same automation identity opening the required remoting session and executing a harmless read-back command successfully. Broken state is no WSMan response, authentication/authorization rejection or session establishment followed by endpoint-specific denial. Test-WSMan shows WS-Management listener reachability only, but it does not show PowerShell session authorization or command success.
Step 3 Failure modes and next checks Narrow the fault
Suspicious evidence: TrustedHosts is broadened blindly, RDP/manual tests substitute for remoting context, second-hop is misdiagnosed as first-hop auth, or logs are ignored.
Step 4 Observation-driven branch and next-check logic Narrow the fault
Run Test-WSMan <computer> from the same control host. If no WSMan response arrives, inspect name resolution, route/firewall and WinRM listener/service; if it responds but Enter-PSSession/Invoke-Command fails, inspect authentication method, SPN/Kerberos or HTTPS certificate, TrustedHosts where relevant and endpoint authorization. If only one command fails after session creation, move to remote execution policy/module/privilege rather than WinRM transport. Compare a known-good target in the same policy scope to isolate host-specific drift.
Step 5 Common mistakes Narrow the fault
- WinRM not enabled or firewall blocking 5985/5986.
- Second-hop authentication problems.
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.
- WinRM service running ≠ remote session is reachable.
- Test-WSMan success ≠ PowerShell command authorization succeeds.
- Interactive RDP success ≠ remoting identity/delegation is equivalent.
- PSSession opens ≠ second-hop access to downstream resources works.
Test-WSMan <host>— WinRMInvoke-Command -ComputerName <host> { whoami } -Verbose— testGet-WinEvent -LogName Microsoft-Windows-WinRM/Operational -MaxEvents 20— events
ReferenceWhat it is1 section · depth on demand
Core model
Pin source runner and target; test WSMan/port/listener; identify HTTP/HTTPS, SPN and auth mechanism; capture WinRM and PowerShell operational logs; distinguish auth, TrustedHosts/certificate, session endpoint, constrained language/JEA and second-hop failures; correct the first step and run the exact non-interactive command.
ReferenceHow it works1 section · depth on demand
How it works and how it fails
PowerShell Remoting Failure involves DNS/network reachability, WinRM listener/service state, transport (HTTP/HTTPS), authentication, TrustedHosts/certificate policy and endpoint/session configuration. Test-WSMan <computer> verifies that a WS-Management endpoint responds, but it does not authenticate the final user or execute a PowerShell runspace. WinRM service health and usable remoting authorization are therefore distinct states.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
PowerShell remoting connectivity shows only a session boundary; downstream resource access, privilege and command semantics require separate evidence.
Method
PowerShell Remoting failures occur at transport, authentication, authorisation or session level. Checking each in order finds the cause.
1. Transport: Test-NetConnection srv01 -Port 5985 (or 5986), Test-WSMan srv01.
2. Listener: winrm enumerate winrm/config/listener on the target.
3. Authentication: Kerberos needs DNS name (not IP) and domain trust; otherwise HTTPS + TrustedHosts/certificates.
4. Authorisation: user in Administrators or Remote Management Users, or a JEA endpoint.
5. Session: second-hop access, memory/time quotas.
| Error | Likely cause |
|---|---|
| WinRM cannot complete the operation | Listener/firewall |
| Access is denied | Not authorised |
| The WinRM client cannot process the request (TrustedHosts) | Non-domain target over HTTP |
| Access denied on network share inside session | Second hop |
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 Automation Troubleshooting > PowerShell Remoting Failure. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · 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
PowerShell Remoting Failure troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for PowerShell Remoting Failure.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |