Managing Remote Servers: SSH-Based Remoting, Invoke-Command, Sessions and Keeping Credentials Out of Scripts
In PowerShell remoting, the objects returned by Invoke-Command are serialized copies: properties come back, methods do not; do the remote work inside the script block. SSH-based remoting, $using:, sessions, the second hop, reading secrets from a vault with SecretManagement, and a rollout script that deploys Bookstore.Api to two servers one by one and stops at the first failure.
15 Nov 2026
·
13 min
·
7