Partilhar via


PSInvocationSettings Class

Definition

Settings to control command invocation.

public ref class PSInvocationSettings sealed
public sealed class PSInvocationSettings
type PSInvocationSettings = class
Public NotInheritable Class PSInvocationSettings
Inheritance
PSInvocationSettings

Constructors

PSInvocationSettings()

Default Constructor.

Properties

AddToHistory

Boolean which tells if the command is added to the history of the Runspace the command is executing in. By default this is false.

ApartmentState

ApartmentState of the thread in which the command is executed.

ErrorActionPreference

Determines how errors should be handled during batch command execution.

ExposeFlowControlExceptions

When true, allows an unhandled flow control exceptions to propagate to a caller invoking the PowerShell object.

FlowImpersonationPolicy

Used by Powershell remoting infrastructure to flow identity from calling thread to Pipeline Execution Thread.

Host

Host to use with the Runspace when the command is executed.

RemoteStreamOptions

Options for the Error, Warning, Verbose and Debug streams during remote calls.

Applies to