ActivityImplementationContext Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Holds an instance of System.Management.Automation.PowerShell, and the context it needs to run.
public ref class ActivityImplementationContext
[Windows::Foundation::Metadata::WebHostHidden]
class ActivityImplementationContext
public class ActivityImplementationContext
type ActivityImplementationContext = class
Public Class ActivityImplementationContext
- Inheritance
-
ActivityImplementationContext
- Derived
Constructors
ActivityImplementationContext() |
Properties
AppendOutput |
Determines whether to append output to Result. |
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 |
CIM Sessions to use for this activity. |
ConnectionInfo |
The connection info to use for this command (may be null) |
Debug |
Determines whether to emit debug output of the activity. |
EnableAllPrivileges |
Enables all the privileges of the current user before the command makes the WMI call. |
ErrorAction |
Determines how errors should be handled by the activity. |
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 |
Determines how information messages should be handled by the activity. |
Input |
The Input stream / collection for the activity. |
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 |
Determines whether to merge the error data to the output stream |
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 |
The instance of System.Management.Automation.PowerShell the activity has prepared. |
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 |
Defines the delay, in seconds, between action retry attempts. The default is one second. |
PSActionRunningTimeoutSec |
Defines the maximum amount of time, in seconds, that this activity may run. The default is unlimited. |
PSActivityEnvironment |
Policy for activity host that will execute this activity |
PSAllowRedirection |
Determines whether to allow redirection by the remote computer. The default is false. |
PSApplicationName |
Defines the remote application name to connect to. The default is "wsman". |
PSAuthentication |
Defines the authentication type to be used in the remote connection. |
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 |
Defines the certificate thumbprint to be used in the remote connection. |
PSComputerName |
The computer name to invoke this activity on. |
PSConfigurationName |
Defines the remote configuration name to connect to. The default is "Microsoft.PowerShell". |
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 |
Defines the delay, in seconds, between connection retry attempts. The default is one second. |
PSConnectionUri |
Defines the fully-qualified remote URI to connect to. When specified, the PSComputerName, PSApplicationName, PSConfigurationName, and PSPort are not used. |
PSCredential |
Defines the credential to use in the remote connection. |
PSDebug |
The Debug stream / collection for the activity. |
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 |
The Error stream / collection for the activity. |
PSInformation |
The Information stream / collection for the activity. |
PSPersist |
Forces the activity to not call the persist functionality, which will be responsible for persisting the workflow state onto the disk. |
PSPort |
The port to use in a remote connection attempt. The default is: HTTP: 5985, HTTPS: 5986. |
PSProgress |
The Progress stream / collection for the activity. |
PSProgressMessage |
Defines the PSProgressMessage. |
PSRemotingBehavior |
Defines the remoting behavior to use when invoking this activity. |
PSRequiredModules |
This the list of module names (or paths) that are required to run this Activity successfully. The default is null. |
PSSessionOption |
Defines any session options to be used in the remote connection. |
PSUseSsl |
Determines whether to use SSL in the connection attempt. The default is false. |
PSVerbose |
The Verbose stream / collection for the activity. |
PSWarning |
The Warning stream / collection for the activity. |
PSWorkflowPath |
The paththat the workflow was imported from. |
Result |
The collection to hold the results of the activity. |
Verbose |
Determines whether to emit verbose output of the activity. |
WarningAction |
Determines how warnings should be handled by the activity. |
WhatIf |
Determines whether to emit whatif output of the activity. |
WorkflowContext |
Any context required by the command. |
Methods
CleanUp() |
Perform any cleanup activities needed by this activity implementation |