EnterPSSession
Enter-PSSession is a PowerShell cmdlet used to start an interactive remote session with a computer through PowerShell Remoting. When connected, commands entered in the local session are executed on the remote machine until the session is closed.
Remoting generally relies on WinRM on Windows hosts, or SSH-based remoting in newer PowerShell versions. The
Typical usage includes entering a remote session with Enter-PSSession -ComputerName Server01, or Enter-PSSession -Session $s where
Relationship to other commands: New-PSSession creates a persistent session object suitable for reuse with Invoke-Command, while
See also: Exit-PSSession, New-PSSession, Invoke-Command, Enable-PSRemoting.