Remove-SCSMDCMWorkflow

Rimuove un flusso di lavoro DCM da Service Manager.

Sintassi

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

Descrizione

Il cmdlet Remove-SCSMDCMWorkflow rimuove un flusso di lavoro DCM (Desired Configuration Management) da Service Manager.

Esempio

Esempio 1: Rimuovere un flusso di lavoro

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*"

In questo esempio viene rimosso un flusso di lavoro DCM.

Parametri

-Confirm

Richiede la conferma dell'utente prima di eseguire il cmdlet.

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

-WhatIf

Mostra l'esito in caso di esecuzione del cmdlet. Il cmdlet non viene eseguito.

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

-Workflow

Specifica le istanze dei flussi di lavoro di DCM.

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

Input

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow

È possibile inviare tramite pipe un flusso di lavoro Service Manager DCM al parametro Workflow.

Output

None.

Questo cmdlet non genera alcun output.