Open a Remote Shell With Enter-PSSession

Work inside a remote PowerShell session as if you were logged in there.

WindowsnetworksystemadminpowershellLow risk
Run Enter-PSSession -ComputerName server01 to start an interactive session; exit to leave.

01Command

Command
$ Enter-PSSession -ComputerName server01

02What it does

Enter-PSSession gives a full interactive prompt on the remote host over WinRM, with tab completion and objects intact, which avoids RDP for quick checks. It is a natural terminal capability that remote desktop tools only approximate with much heavier sessions.

03Risk

RiskLow risk
RequirementsWindows 10/11 with PowerShell 5.1 or PowerShell 7+
!Warning: The session depends on WinRM and the remote host's configuration; use Exit-PSSession to close it cleanly.

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Enter-PSSession
    Microsoft Learn · vendor-doc · 2026-09-20
    Evidence: Starts an interactive session with a remote computer.

Last verified: 2026-10-13 · Category: System & Settings

06Related solutions