Collapse the table of content
Expand the table of content
Expand Minimize
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

See Also

Community Additions

© 2015 Microsoft