Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1019 Bytes

File metadata and controls

20 lines (13 loc) · 1019 Bytes
description Creating Runspaces
ms.date 09/13/2016
title Creating Runspaces

Creating Runspaces

A runspace is the operating environment for the commands that are invoked by a host application. This environment includes the commands and data that are currently present, and any language restrictions that currently apply.

Host applications can use the default runspace that is provided by Windows PowerShell, which includes all available core commands, or create a custom runspace that includes only a subset of the available commands. To create a customized runspace, you create a System.Management.Automation.Runspaces.InitialSessionState object and assign it to your runspace.

Runspace tasks

  1. Creating an InitialSessionState

  2. Creating a constrained runspace

  3. Creating multiple runspaces

See Also