Use this topic when WSMan connections fail, PowerShell remoting over WinRM cannot connect, listener/firewall configuration is in doubt, or you need to distinguish transport from PowerShell session-configuration problems.
WinRM · PowerShell
WinRM is the Windows implementation of WS-Management and provides a management transport used by Windows PowerShell remoting and other clients. A WinRM listener/service can be healthy while a PowerShell endpoint, authentication method or authorization policy still prevents a PSRP session.
WinRM service → listener on 5985/5986 → firewall → authentication → PowerShell endpoint
Enumerate/test the intended PowerShell endpoint with a minimal PSRP command.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not run broad quickconfig/reset commands repeatedly on managed servers without understanding their firewall/listener/security impact. Do not equate port-open with listener-ready, or Test-WSMan success with PowerShell endpoint success.
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 Verification path Verify boundary
Troubleshoot bottom-up: DNS/network, port/listener, WinRM service/WSMan response, authentication/trust, then PowerShell endpoint and authorization. Capture exact errors and identities at each stage before changing TrustedHosts/listeners/authentication.
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/listener health is a lower boundary than PowerShell endpoint health.
- HTTP/HTTPS WinRM listeners define transport exposure; authentication and session authorization remain separate.
- Firewall/network reachability can block transport before PowerShell is involved.
- TrustedHosts is not a general “fix remoting” switch; it changes trust behavior and must be scoped intentionally.
Test-WSMan-style success proves WSMan response, not successful PowerShell command execution.
winrm enumerate winrm/config/listener— listeners$PSVersionTable— PowerShell edition and versionGet-Command <name>— which cmdlet/function/exe runsGet-Help <cmdlet> -Full— syntax and parametersGet-ExecutionPolicy -List— execution policy per scope
ReferenceWhat it is1 section · depth on demand
Core model
WinRM exposes WS-Management through configured listeners and the Windows service. In domain environments Kerberos is commonly involved; other authentication/trust patterns have different requirements. PowerShell Remoting builds on this transport rather than replacing it.
ReferenceWhy it matters1 section · depth on demand
Internals and state
Topic-specific scope
Local intent: Windows Remote Management (WinRM) as WS-Management service/transport for Windows PowerShell remoting and other management clients: listeners, service state, authentication, firewall and endpoint boundary.
ReferenceImportant terms & boundaries2 sections · depth on demand
PowerShell boundary
PowerShell session configurations are registered endpoints above WinRM. This layering explains why WinRM diagnostics can pass while Enter-PSSession fails. Conversely, a firewall/listener failure must be solved before endpoint debugging is meaningful.
In depth
WinRM is Microsoft's WS-Management service used by PowerShell remoting, Server Manager and many tools.
winrm quickconfig
winrm enumerate winrm/config/listener
Test-WSMan srv01
Get-Item WSMan:\localhost\Client\TrustedHosts
winrm create winrm/config/Listener?Address=*+Transport=HTTPS '@{Hostname="srv01.corp.example.com";CertificateThumbprint="<thumb>"}'
In domains, Kerberos encrypts WinRM traffic even over HTTP 5985. Workgroup or cross-domain connections need HTTPS (or TrustedHosts with NTLM, which is weaker). Restrict access with firewall rules and the Remote Management Users group.
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 PowerShell → 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
PowerShell → WinRM reference map
Fast lookup boundaries for PowerShell → WinRM.
| Item | Meaning | Evidence boundary |
|---|---|---|
| Network path | Reach listener address/port | not proof WinRM application response |
| Listener | WSMan transport binding | not proof authentication/endpoint |
| WinRM service | WSMan implementation | not proof PSRP session config |
| Authentication/trust | Identity boundary | not proof remote command authorization |
| PowerShell endpoint | Runspace/session config | separate from listener existence |