Get-SCSMDCMWorkflow

Retrieves the list of DCM workflows that are defined in Service Manager.

Syntax

Get-SCSMDCMWorkflow [[-DisplayName] <String[]>] [-ComputerName <String[]>] [-Credential <PSCredential>]
 [-SCSession <Connection[]>] [<CommonParameters>]

Description

The Get-SCSMDCMWorkflow cmdlet retrieves the Desired Configuration Management (DCM) workflows that are defined in Service Manager.

Examples

Example 1: Get workflows

C:\PS>Get-SCSMDCMWorkflow
DisplayName     Description   Enabled

-----------     -----------   -------

My DCM Workflow A Description True

This command retrieves DCM workflows. In this example, there is a single workflow.

Example 2: Display formatted list of workflows

C:\PS>Get-SCSMDCMWorkflow | Format-List
DisplayName           : My DCM Workflow
Description           : A Description
ConfigurationBaseLine : {}
Enabled               : True
ManagementPack        : [ServiceManager.IncidentManagement.Configuration] 
Template              : 
EnableNotification    : True
Notification          : {}

This command retrieves DCM workflows. In this example, there is a single workflow. The command uses the Format-List cmdlet to format the results.

Parameters

-ComputerName

Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

Specifies the display name of the workflow to retrieve. You can specify wildcard characters.

Type:String[]
Required:False
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-SCSession

Specifies an object that represents the session to a Service Manager management server.

Type:Connection[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

You can pipe a name to the *DisplayName* parameter.

Outputs

Workflow types.

This cmdlet returns workflow types.