Export (0) Print
Expand All

Windows PowerShell Host Application Concepts

This section describes the concepts that you should be familiar with when writing host applications.

In This Section

This section includes the following topics.

Host Application Runspaces
This topic describes how the host application creates and opens its runspaces. Host applications can use the default runspace that is provided by Windows PowerShell, or they can create their own runspaces using the RunspaceFactory class.

Runspace Initial Session States
For runspaces, the initial session state defines the commands and data files that are accessible when the runspace is opened.

Constrained Runspaces
Runspaces can restrict the programming elements that are available to the user, the data that is available to the user, and the Windows PowerShell language elements that can be applied by the user.

Custom Host
Host applications can use the host that is provided by Windows PowerShell, or they can create a custom host by implementing their own host classes. The host is the component of Windows PowerShell that provides communications between the user and the Windows PowerShell engine.

Windows PowerShell Remoting
Host applications can send and receive data from remote computers in several ways. For instance, they can use a PowerShell object to run cmdlets that use WS-Management-based Windows PowerShell remoting, such as running the Invoke-Command cmdlet. They can also run cmdlets that use WMI to connect to remote computers, such as the Stop-Computer and Restart-Computer cmdlets.

See Also

© 2014 Microsoft