Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

PowerShell Remoting · PowerShell

Direct answer

PowerShell Remoting uses the PowerShell Remoting Protocol (PSRP) to run commands in another PowerShell session. On Windows, WSMan/WinRM is the traditional transport; modern PowerShell also supports SSH remoting. Transport, authentication, endpoint/session configuration and target authorization are separate layers.

When to use this

Use this topic when Enter-PSSession/Invoke-Command/New-PSSession fails, remote objects are deserialized, double-hop/resource access fails, PowerShell 7 endpoints differ from Windows PowerShell endpoints, or you need to choose persistent vs ephemeral remote execution.

First 30 seconds

1. Test-WSMan <host> — WinRM answers?

2. Enter-PSSession <host> / Invoke-Command -ComputerName <host> {hostname}.

3. Access denied → member of Administrators or Remote Management Users?

4. Workgroup/IP → TrustedHosts or HTTPS listener.

5. Double hop → use CredSSP alternatives (JEA, resource-based delegation).

Operational verification

client → WinRM (5985/5986) → authentication (Kerberos/NTLM/cert) → session on the remote host → command runs

Evidence · next step

Run the smallest target command in the remote runspace; if it reaches another system, inspect second-hop credentials/authorization separately.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

Do not enable broad TrustedHosts or weaken authentication as a first troubleshooting step. Do not assume Enter-PSSession success means SMB/SQL/HTTP access from inside the session will use your original credentials. Do not call methods on deserialized objects expecting live remote behavior.

Platform / version applicability
Windows execution, automation and observability
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 execution, automation and observability · Windows / Windows Server / PowerShell
Key commandEnter-PSSession -ComputerName <computer>
Scope / prerequisiteUse this topic when Enter-PSSession/Invoke-Command/New-PSSession fails, remote objects are deserialized, double-hop/res…
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Windows 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.

1 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 Verification path Verify boundary

Start with a minimal identity/version probe in the same transport and endpoint. Record client/target identity, endpoint, engine version and authentication method. Then add the target command. If only downstream access fails, isolate delegation/credential scope instead of changing firewall/WinRM broadly.

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
  • Network reachability to a host/port does not prove a PowerShell remoting endpoint is usable.
  • Authentication success does not prove authorization inside the session or on downstream resources.
  • PowerShell 7 and Windows PowerShell can expose different remoting endpoints/configurations.
  • Remote objects are commonly serialized and may not retain live methods.
  • Double-hop/delegation issues are credential-forwarding boundaries, not generic network failures.
Key checks
  • Test-WSMan <host> — WinRM reachability
  • $PSVersionTable — PowerShell edition and version
  • Get-Command <name> — which cmdlet/function/exe runs
  • Get-Help <cmdlet> -Full — syntax and parameters
  • Get-ExecutionPolicy -List — execution policy per scope
ReferenceWhat it is1 section · depth on demand

Core model

PowerShell Remoting abstracts remote command execution, but its failure modes span several systems. A client may reach TCP/WSMan yet fail authentication; authenticate but be denied an endpoint; enter a session yet lack a module; run a command but fail when that command reaches a second network resource.

ReferenceWhy it matters1 section · depth on demand

Internals and state

Topic-specific scope

Local intent: PowerShell Remoting/PSRP model: one-to-one and one-to-many sessions, WinRM/WSMan on Windows, SSH transport, session configurations, authentication, serialization and authorization.

ReferenceImportant terms & boundaries2 sections · depth on demand

PowerShell boundary

Invoke-Command is suited to one-to-many/discrete execution, while PSSession objects preserve a remote session across commands. The returned data is serialized for transport, so design remote code to perform method-dependent work remotely and return the necessary structured properties.

In depth

PowerShell remoting runs commands on remote machines over WinRM (HTTP 5985/HTTPS 5986) or SSH (PowerShell 7).

Enable-PSRemoting -Force
Invoke-Command -ComputerName srv01,srv02 -ScriptBlock { Get-Service W32Time }
$s = New-PSSession -ComputerName srv01; Invoke-Command -Session $s { $env:COMPUTERNAME }; Copy-Item .\tool.zip -ToSession $s -Destination C:\Temp
Enter-PSSession srv01
Invoke-Command -HostName linux01 -UserName ops -ScriptBlock { uname -a }    # SSH transport

The second-hop problem: from a remote session you cannot access a third machine with your credentials by default — use resource-based Kerberos constrained delegation, pass credentials explicitly, or JEA endpoints.

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 docWindows execution, automation and observability current

Authoritative/upstream documentation reviewed for bounded claims in PowerShell → PowerShell Remoting. 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
powershell remotinginvoke-command powershellenter-pssessionpsrp winrm ssh remoting
Embedded reference data

Quick lookup tables

PowerShell → PowerShell Remoting reference map

Fast lookup boundaries for PowerShell → PowerShell Remoting.

ItemMeaningEvidence boundary
TransportWSMan/WinRM or SSH pathport reachability alone is insufficient
AuthenticationRemote identity establishmentnot target/downstream authorization
EndpointPowerShell session configurationcan differ by engine/version
RunspaceRemote execution contextmodules/profile/language mode may differ
SerializationReturn-object transportcan remove live methods/type fidelity
Confirmation

Confirm action

Continue?