Remove-SCSMDCMWorkflow

SERVICE MANAGERから DCM ワークフローを削除します。

構文

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

説明

Remove-SCSMDCMWorkflow コマンドレットは、Service Managerから Desired Configuration Management (DCM) ワークフローを削除します。

例 1: ワークフローを削除する

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

この例では、DCM ワークフローを削除します。

パラメーター

-Confirm

コマンドレットの実行前に確認を求めるメッセージが表示されます。

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

-WhatIf

コマンドレットの実行時に発生する内容を示します。 このコマンドレットは実行されません。

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

-Workflow

DCM ワークフローのインスタンスを指定します。

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

入力

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow

Service Manager DCM ワークフローを Workflow パラメーターにパイプできます。

出力

None.

このコマンドレットは出力を生成しません。