ActivityImplementationContext ActivityImplementationContext ActivityImplementationContext Class


Holds an instance of System.Management.Automation.PowerShell, and the context it needs to run.

public class ActivityImplementationContext
type ActivityImplementationContext = class
Public Class ActivityImplementationContext


ActivityImplementationContext() ActivityImplementationContext() ActivityImplementationContext()


AppendOutput AppendOutput AppendOutput

Determines whether to append output to Result.

Authority Authority Authority

Specifies the authority to use to authenticate the WMI connection. You can specify standard NTLM or Kerberos authentication. To use NTLM, set the authority setting to ntlmdomain:"DomainName", where "DomainName" identifies a valid NTLM domain name. To use Kerberos, specify kerberos:"DomainName>\ServerName". You cannot include the authority setting when you connect to the local computer.

CimSession CimSession CimSession

CIM Sessions to use for this activity.

ConnectionInfo ConnectionInfo ConnectionInfo

The connection info to use for this command (may be null)

Debug Debug Debug

Determines whether to emit debug output of the activity.

EnableAllPrivileges EnableAllPrivileges EnableAllPrivileges

Enables all the privileges of the current user before the command makes the WMI call.

ErrorAction ErrorAction ErrorAction

Determines how errors should be handled by the activity.

Impersonation Impersonation Impersonation

Specifies the impersonation level to use. Valid values are: 0: Default (reads the local registry for the default impersonation level , which is usually set to "3: Impersonate".) 1: Anonymous (Hides the credentials of the caller.) 2: Identify (Allows objects to query the credentials of the caller.) 3: Impersonate (Allows objects to use the credentials of the caller.) 4: Delegate (Allows objects to permit other objects to use the credentials of the caller.)

InformationAction InformationAction InformationAction
Input Input Input

The Input stream / collection for the activity.

Locale Locale Locale

Specifies the preferred locale for WMI objects. Specify the value of the Locale parameter as an array in the MS_"LCID" format in the preferred order .

MergeErrorToOutput MergeErrorToOutput MergeErrorToOutput

Determines whether to merge the error data to the output stream

Namespace Namespace Namespace

When used with the Class parameter, this parameter specifies the WMI repository namespace where the referenced WMI class is located. When used with the List parameter, it specifies the namespace from which to gather WMI class information.

PowerShellInstance PowerShellInstance PowerShellInstance

The instance of System.Management.Automation.PowerShell the activity has prepared.

PSActionRetryCount PSActionRetryCount PSActionRetryCount

Defines the number of retries that the activity will make when it encounters an error during execution of its action. The default is to not retry.

PSActionRetryIntervalSec PSActionRetryIntervalSec PSActionRetryIntervalSec

Defines the delay, in seconds, between action retry attempts. The default is one second.

PSActionRunningTimeoutSec PSActionRunningTimeoutSec PSActionRunningTimeoutSec

Defines the maximum amount of time, in seconds, that this activity may run. The default is unlimited.

PSActivityEnvironment PSActivityEnvironment PSActivityEnvironment

Policy for activity host that will execute this activity

PSAllowRedirection PSAllowRedirection PSAllowRedirection

Determines whether to allow redirection by the remote computer. The default is false.

PSApplicationName PSApplicationName PSApplicationName

Defines the remote application name to connect to. The default is "wsman".

PSAuthentication PSAuthentication PSAuthentication

Defines the authentication type to be used in the remote connection.

PSAuthenticationLevel PSAuthenticationLevel PSAuthenticationLevel

Specifies the authentication level to be used with the WMI connection. Valid values are: -1: Unchanged 0: Default 1: None (No authentication in performed.) 2: Connect (Authentication is performed only when the client establishes a relationship with the application.) 3: Call (Authentication is performed only at the beginning of each call when the application receives the request.) 4: Packet (Authentication is performed on all the data that is received from the client.) 5: PacketIntegrity (All the data that is transferred between the client and the application is authenticated and verified.) 6: PacketPrivacy (The properties of the other authentication levels are used, and all the data is encrypted.)

PSCertificateThumbprint PSCertificateThumbprint PSCertificateThumbprint

Defines the certificate thumbprint to be used in the remote connection.

PSComputerName PSComputerName PSComputerName

The computer name to invoke this activity on.

PSConfigurationName PSConfigurationName PSConfigurationName

Defines the remote configuration name to connect to. The default is "Microsoft.PowerShell".

PSConnectionRetryCount PSConnectionRetryCount PSConnectionRetryCount

Defines the number of retries that the activity will make to connect to a remote machine when it encounters an error. The default is to not retry.

PSConnectionRetryIntervalSec PSConnectionRetryIntervalSec PSConnectionRetryIntervalSec

Defines the delay, in seconds, between connection retry attempts. The default is one second.

PSConnectionUri PSConnectionUri PSConnectionUri

Defines the fully-qualified remote URI to connect to. When specified, the PSComputerName, PSApplicationName, PSConfigurationName, and PSPort are not used.

PSCredential PSCredential PSCredential

Defines the credential to use in the remote connection.

PSDebug PSDebug PSDebug

The Debug stream / collection for the activity.

PSDisableSerialization PSDisableSerialization PSDisableSerialization

Forces the activity to return non-serialized objects. Resulting objects have functional methods and properties (as opposed to serialized versions of them), but will not survive persistence when the Workflow crashes or is persisted.

PSError PSError PSError

The Error stream / collection for the activity.

PSInformation PSInformation PSInformation
PSPersist PSPersist PSPersist

Forces the activity to not call the persist functionality, which will be responsible for persisting the workflow state onto the disk.

PSPort PSPort PSPort

The port to use in a remote connection attempt. The default is: HTTP: 5985, HTTPS: 5986.

PSProgress PSProgress PSProgress

The Progress stream / collection for the activity.

PSProgressMessage PSProgressMessage PSProgressMessage

Defines the PSProgressMessage.

PSRemotingBehavior PSRemotingBehavior PSRemotingBehavior

Defines the remoting behavior to use when invoking this activity.

PSRequiredModules PSRequiredModules PSRequiredModules

This the list of module names (or paths) that are required to run this Activity successfully. The default is null.

PSSessionOption PSSessionOption PSSessionOption

Defines any session options to be used in the remote connection.

PSUseSsl PSUseSsl PSUseSsl

Determines whether to use SSL in the connection attempt. The default is false.

PSVerbose PSVerbose PSVerbose

The Verbose stream / collection for the activity.

PSWarning PSWarning PSWarning

The Warning stream / collection for the activity.

PSWorkflowPath PSWorkflowPath PSWorkflowPath

The paththat the workflow was imported from.

Result Result Result

The collection to hold the results of the activity.

Verbose Verbose Verbose

Determines whether to emit verbose output of the activity.

WarningAction WarningAction WarningAction

Determines how warnings should be handled by the activity.

WhatIf WhatIf WhatIf

Determines whether to emit whatif output of the activity.

WorkflowContext WorkflowContext WorkflowContext

Any context required by the command.


CleanUp() CleanUp() CleanUp()

Perform any cleanup activities needed by this activity implementation

Applies to