Creating PSSession-Based PowerShell Tools
Let's continue our exploration of creating and working with PSSession
objects built from scratch. While I would normally use New-PSSession
, using the .NET Framework shaves a few milliseconds off the process because I don't have the overhead of a cmdlet, and I can control the process more directly.
Today, I want to continue our exploration, including demonstrating how to make an SSH-based PSSession
. And I want to give you a sample scripting project.
Opening the Remote Runspace
Before we get to those topics, I want to briefly revisit working with the runspace that is part of the PSSession
object. I shared this script sample that will create a PSSession
.
Want to read the full issue?