Remote Runspace Samples


This section includes sample code that shows how to create runspaces that can be used to connect to a computer by using WS-Management-based Windows PowerShell remoting. You can use Microsoft Visual Studio to create a console application and then copy the code from the topics in this section into your host application.

In This Section


For more information about running commands on a remote computer, see Windows PowerShell Remoting.

RemoteRunspace01 Sample

This sample shows how to create a remote runspace that is used to establish a remote connection.

RemoteRunspacePool01 Sample

This sample shows how to construct a remote runspace pool and how to run multiple commands concurrently by using this pool.