Microsoft.PowerShell.Activities Namespace
Updated: April 27, 2016
Applies To: Windows PowerShell
The Microsoft.PowerShell.Activities namespace contains classes used to manage activities used by Windows PowerShell workflow.
| Class | Description | |
|---|---|---|
![]() | ActivityGenerator | Provides methods that generate activities that can be used in Workflows. Introduced in Windows PowerShell 3.0. |
![]() | ActivityImplementationContext | Holds an instance of PowerShell, and provides the context it requires in order to run. Introduced in Windows PowerShell 3.0. |
![]() | BehaviorCategoryAttribute | Represents the behavior category attribute. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | CimActivityImplementationContext | Provides additional functionalty for CIM activity implementations. Introduced in Windows PowerShell 3.0. |
![]() | ConnectivityCategoryAttribute | Represents the connectivity category attribute. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | DisablePSWorkflowConnection | Represents an activity that cleans up all runspaces (PowerShell remoting protocol connections) to a remote machine. Introduced in Windows PowerShell 3.0. |
![]() | GenericCimCmdletActivity | Base class for the built-in generic CIM cmdlets. Introduced in Windows PowerShell 3.0. |
![]() | GetCimAssociatedInstance | Represents an activity that invokes the CimCmdlets module's Get-CimAssociatedInstance cmdlet in a workflow. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | GetCimClass | Activity to invoke the CimCmdlets\Get-CimClass command in a workflow. Introduced in Windows PowerShell 3.0. |
![]() | GetCimInstance | Activity to invoke the CimCmdlets\Get-CimInstance command in a Workflow. Introduced in Windows PowerShell 3.0. |
![]() | GetPSWorkflowData<'T> | Represents an activity that retrieves the value of a workflow runtime variable. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | GetWmiObject | The workflow activity that wraps the Get-Wmiobject cmdlet. Introduced in Windows PowerShell 3.0. |
![]() | HostParameterDefaults | Represents the parameter defaults for a workflow host. An instance of this class contains all the information that must be passed to a workflow context. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | HostSettingCommandMetadata | Runtime metadata that represents the currently-running command. Introduced in Windows PowerShell 3.0. |
![]() | InlineScript | Activity to support the invocation of Windows PowerShell script content in a workflow. Introduced in Windows PowerShell 3.0. |
![]() | InlineScriptContext | Defines the context information available to scripts running within the InlineScript activity. These are exposed through the $PSActivity automatic variable. Introduced in Windows PowerShell 3.0. |
![]() | InlineScriptDesigner | Contains the interaction logic for the inline script designer. This class implements the System.Windows.Markup.IComponentConnector interface. Introduced in Windows PowerShell 3.0. |
![]() | InputAndOutputCategoryAttribute | Represents the attribute for the category of input and output. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | InvokeCimMethod | Activity to invoke the CimCmdlets\Invoke-CimMethod command in a workflow. Introduced in Windows PowerShell 3.0. |
![]() | InvokeWmiMethod | Wraps the Invoke-WmiMethod cmdlet. Introduced in Windows PowerShell 3.0. |
![]() | NewCimInstance | Activity to invoke the CimCmdlets\New-CimInstance command in a workflow. Introduced in Windows PowerShell 3.0. |
![]() | NewCimSession | Activity to invoke the CimCmdlets\New-CimSession command in a workflow. Introduced in Windows PowerShell 3.0. |
![]() | NewCimSessionOption | Represents an activity that invokes the CimCmdlets module's New-CimSessionOption cmdlet in a workflow. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | ParameterSpecificCategoryAttribute | Represents the attribute for the parameter-specific category. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | Pipeline | This class is the implementation of pipeline activity for workflow activities. This is similar to the concept of the pipeline in Windows PowerShell, where the result of a command is treated as the input for the next command. Introduced in Windows PowerShell 3.0. |
![]() | PipelineDesigner | Contains the interaction logic for the pipeline designer. This class implements the System.Windows.Markup.IComponentConnector interface. Introduced in Windows PowerShell 3.0. |
![]() | PipelineEnabledActivity | Activities derived from this class can be used in the Pipeline activity Introduced in Windows PowerShell 3.0. |
![]() | PowerShellValue<'T> | Represents an activity that evaluates a Windows PowerShell expression and returns the value of type T. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | PSActivity | Represents the base class for Windows PowerShell workflow activities. Introduced in Windows PowerShell 3.0. |
![]() | PSActivityArgumentInfo | Stores information about an activity argument. Introduced in Windows PowerShell 3.0. |
![]() | PSActivityContext | Represents the execution environment of an activity. Introduced in Windows PowerShell 3.0. |
![]() | PSActivityEnvironment | This class describes the policy of an activity host. Introduced in Windows PowerShell 3.0. |
![]() | PSActivityHostController | Activity host manager interface. This interface can be used to implement various activity hosts. Introduced in Windows PowerShell 3.0. |
![]() | PSCleanupActivity | Represents the base class for cleanup activities. Introduced in Windows PowerShell 3.0. |
![]() | PSGeneratedCIMActivity | Represents the base functionality for Windows PowerShell-generated CIM activities that can use Web Services for Management protocol (WsMan) directly to contact the managed node. Introduced in Windows PowerShell 3.0. |
![]() | PSPersist | Persists the current workflow and defines the persistence point where a job is suspended. Introduced in Windows PowerShell 3.0. |
![]() | PSRemotingActivity | Base class for Windows PowerShell workflow remote activities Introduced in Windows PowerShell 3.0. |
![]() | PSResumableActivityHostController | Defines an activity host that hosts activities that can be resumed. Introduced in Windows PowerShell 3.0. |
![]() | PSWorkflowHost | Defines the set of services made available to a Windows PowerShell workflow activity. Introduced in Windows PowerShell 3.0. |
![]() | PSWorkflowInstanceExtension | Contains functionality to resume bookmarks using extensions that access an instance of a workflow through a proxy. Introduced in Windows PowerShell 3.0. |
![]() | RemoveCimInstance | Activity to invoke the CimCmdlets\Remove-CimInstance command in a workflow. Introduced in Windows PowerShell 3.0. |
![]() | RunspaceProvider | Provides a runspace with the specified options and constraints. Introduced in Windows PowerShell 3.0. |
![]() | SetPSWorkflowData | Defines an activity that sets data values for a Windows PowerShell workflow host. This class cannot be inherited. Introduced in Windows PowerShell 3.0. |
![]() | Suspend | Suspends the current workflow. Introduced in Windows PowerShell 3.0. |
![]() | ThrottledParallelForEach<'T> | Implements the equivalent of the ParallelForeach activity, but supports throttling as well. Taken from the Workflow SDK. Introduced in Windows PowerShell 4.0. |
![]() | WmiActivity | Abstract base that contains the common members and invocation code for the WMI cmdlets. Introduced in Windows PowerShell 3.0. |
![]() | WorkflowPreferenceVariables | Contains special variables that can be defined in a workflow to control the behavior of Windows PowerShell activities. Introduced in Windows PowerShell 3.0. |
| Interface | Description | |
|---|---|---|
![]() | IImplementsConnectionRetry | Implementing this interface indicates that the activity supports connection retry. Introduced in Windows PowerShell 3.0. |
| Enumeration | Description | |
|---|---|---|
![]() | ActivityOnResumeAction | Specifies whether an activity can be resumed without being restarted. Introduced in Windows PowerShell 3.0. |
![]() | PSWorkflowRuntimeVariable | Describes values that are used to indicate the type of a runtime variable that is being retrieved in a Windows PowerShell workflow process. Introduced in Windows PowerShell 3.0. |


