Remove-SCSMDCMWorkflow

Quita un flujo de trabajo de DCM de Service Manager.

Syntax

Remove-SCSMDCMWorkflow
      [-Workflow] <DCMWorkflow[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

El cmdlet Remove-SCSMDCMWorkflow quita un flujo de trabajo de Desired Configuration Management (DCM) de Service Manager.

Ejemplos

Ejemplo 1: Quitar un flujo de trabajo

The first command gets the workflows that match the specified display name by using the Get-SCSMDCMWorkflow cmdlet. The cmdlet displays the results. 
PS C:\>Get-SCSMDCMWorkflow -DisplayName "MyDCM*"
DisplayName   Description           Enabled
-----------   -----------           -------
MyDCMWorkflow This is a description False

The second command passes the results of the **Get-SCSMDCMWorkflow** cmdlet to the current cmdlet by using the pipeline operator. The command removes the workflow. 
PS C:\>Get-SCSMDCMWorkflow -DisplayName "MyDCM*" | Remove-SCSMDCMWorkflow 

The final command repeats the first command. The results show that the workflow has been deleted. 
PS C:\>Get-SCSMDCMWorkflow -DisplayName "MyDCM*"

En este ejemplo se quita un flujo de trabajo de DCM.

Parámetros

-Confirm

Le solicita su confirmación antes de ejecutar el cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Workflow

Especifica las instancias de flujos de trabajo de DCM.

Type:Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Entradas

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow

Puede canalizar un flujo de trabajo de DCM Service Manager al parámetro Workflow.

Salidas

None.

Este cmdlet no genera ningún resultado.