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.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Workflow
Anger instanser av DCM-arbetsflöden.
Type: | Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | 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.