Session scheme (Intermediate)
There are numerous changes in PowerShell Version 3.0 with respect to PowerShell remote sessions. Previously, in Version 2.0, all remote PSSessions
were dependent on the current console session. Now, in Version 3.0, PowerShell maintains the remote PSSession
on the remote computer itself, and it is totally independent on the current console session. So, even though you close the current local session, you can continue and resume the session, and reconnect them.
Getting ready
There are a few recently introduced parameters for Get-PSSession
and New-PSSession
CMDLETs. Also, there are some newly introduced CMDLETs such as Connect-PSSession
, Disconnect-PSSession
, and New-PSTransportOption
.
How to do it...
Try executing the following ...
Get Instant Windows PowerShell Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.