Summary
This chapter delved into remoting in PowerShell, starting with a look at Enter-PSSession
and Invoke-Command
, the backbone of any code making use of remoting.
PS Sessions were explored, which allow greater flexibility and enable the use of the ToSession
and FromSession
parameters of Copy-Item
.
WS-Management was explored, along with the more advanced configuration scenarios for PowerShell remoting it offers, before looking at configuring PS remoting on Linux.
The double-hop problem was briefly considered, and remains a common problem for remoting users.
CIM sessions will, by default, make use of PS remoting and therefore implicitly depend on the service. CIM can be explicitly made to use DCOM instead if required.
Just Enough Administration offers the ability to provide delegated access to PowerShell content via a remoting session.
The next chapter explores asynchronous processing.
Learn more on Discord
Read this book alongside other users, PowerShell...