PSInvocationSettings Class

Definition

Settings to control command invocation.

public sealed 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
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