Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

PowerShell Remoting Failure

Direct answer

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.

When to use this

Use it when the symptom is “PowerShell Remoting Failure”: work through the layers in order and stop at the first one that fails.

First 30 seconds

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.

Operational verification

client → DNS → WinRM → auth → session

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
automation troubleshooting and failure analysis
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.

Platformautomation troubleshooting and failure analysis · PowerShell Remoting Failure owns generic remoting isolation; Windows, AD/Kerberos and PowerShell language depth remain in owning branches. · Windows / PowerShell
Key commandTest-WSMan <computer>
Scope / prerequisiteUse it when the symptom is “PowerShell Remoting Failure”: work through the layers in order and stop at the first one th…
Reference · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
Automation command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

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

5 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

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 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
  • 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.
Key checks
  • Test-WSMan <host> — WinRM
  • Invoke-Command -ComputerName <host> { whoami } -Verbose — test
  • Get-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.

ErrorLikely cause
WinRM cannot complete the operationListener/firewall
Access is deniedNot authorised
The WinRM client cannot process the request (TrustedHosts)Non-domain target over HTTP
Access denied on network share inside sessionSecond hop
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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 docautomation troubleshooting and failure analysis current

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%
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
powershell remoting failurewinrm automation failurepsremoting troubleshooting
Embedded reference data

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.

BoundaryHealthy evidenceSuspicious evidence
Symptom / scopeTime window, immutable source/run identity, effective inputs and exact targets are explicitFloating source, changed inputs or ambiguous targets destroy reproducibility
First failed boundaryTransport/auth/dependency/render/operation evidence identifies the earliest divergenceInvestigation starts at the final error and skips earlier unproven boundaries
Effective outcomeController result is paired with target read-back and workload/service acceptanceGreen execution state or changed symptom substitutes for effective-state verification
Recovery / closureMinimal change restores the original test and regression/partial-state checks are cleanBroad retry or unrelated edits make the incident non-reproducible and hide residual state
Confirmation

Confirm action

Continue?