Remove-SCSMDCMWorkflow
Tar bort ett DCM-arbetsflöde från Service Manager.
Syntax
Remove-SCSMDCMWorkflow
[-Workflow] <DCMWorkflow[]>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Cmdleten Remove-SCSMDCMWorkflow tar bort ett DCM-arbetsflöde (Desired Configuration Management) från Service Manager.
Exempel
Exempel 1: Ta bort ett arbetsflöde
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*"
Det här exemplet tar bort ett DCM-arbetsflöde.
Parametrar
-Confirm
Uppmanar dig att bekräfta innan du kör cmdleten.
Typ: | System.Management.Automation.SwitchParameter |
Alias: | cf |
Position: | Named |
Standardvärde: | False |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-WhatIf
Visar vad som skulle hända om cmdleten körs. Cmdleten körs inte.
Typ: | System.Management.Automation.SwitchParameter |
Alias: | wi |
Position: | Named |
Standardvärde: | False |
Obligatorisk: | False |
Godkänn pipeline-indata: | False |
Godkänn jokertecken: | False |
-Workflow
Anger instanser av DCM-arbetsflöden.
Typ: | Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow[] |
Position: | 0 |
Standardvärde: | None |
Obligatorisk: | True |
Godkänn pipeline-indata: | True |
Godkänn jokertecken: | False |
Indata
Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow
Du kan skicka ett Service Manager DCM-arbetsflöde till parametern Workflow.
Utdata
None.
Den här cmdleten genererar inga utdata.