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 conferma prima di eseguire il cmdlet.
Tipo: | System.Management.Automation.SwitchParameter |
Alias: | cf |
Posizione: | Named |
Valore predefinito: | False |
Necessario: | False |
Accettare l'input della pipeline: | False |
Accettare caratteri jolly: | False |
-WhatIf
Mostra cosa accadrebbe se il cmdlet viene eseguito. Il cmdlet non viene eseguito.
Tipo: | System.Management.Automation.SwitchParameter |
Alias: | wi |
Posizione: | Named |
Valore predefinito: | False |
Necessario: | False |
Accettare l'input della pipeline: | False |
Accettare caratteri jolly: | False |
-Workflow
Specifica le istanze dei flussi di lavoro DCM.
Tipo: | Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow[] |
Posizione: | 0 |
Valore predefinito: | None |
Necessario: | True |
Accettare l'input della pipeline: | True |
Accettare caratteri jolly: | False |
Input
Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow
È possibile inviare tramite pipe un flusso di lavoro DCM di Service Manager al parametro flusso di lavoro
Output
None.
Questo cmdlet non genera alcun output.