Update-SCSMDCMWorkflow

Update-SCSMDCMWorkflow

Updates properties of a Desired Configuration Management (DCM) workflow.

構文

Parameter Set: Default
Update-SCSMDCMWorkflow [-Workflow] <DCMWorkflow[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Update-SCSMDCMWorkflow cmdlet updates properties of a DCM workflow.

パラメーター

-PassThru

Specifies the output object that represents the workflow to update. This output object can be passed to other cmdlets.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Workflow<DCMWorkflow[]>

Specifies the instance of a DCM workflow to update.

エイリアス

なし

必須?

true

位置は?

1

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Confirm

コマンドレットを実行する前に、ユーザーに確認を求めます。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-WhatIf

コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。

必須?

false

位置は?

named

既定値

false

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow

    You can pipe a DCM workflow to the Workflow parameter.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None.

    This cmdlet does not generate any output.

Example 1: Change the description of a workflow

This example changes the description of a DCM workflow.

The first command gets workflows by using the Get-SCSMDCMWorkflow cmdlet. The command stores the workflow in the $Workflow variable.

PS C:\> $Workflow = Get-SCSMDCMWorkflow -DisplayName "Activity Event Workflow Configuration"

The second command assigns a new value to the Description property of $Workflow.

PS C:\> $Workflow.Description = "This is a new description"

The third command passes the contents of $Workflow to the Format-List cmdlet by using the pipeline operator. The command displays the contents of $Workflow as a list.

PS C:\> $Workflow | Format-List

The final command updates the workflow to match the current value stored in $Workflow.

PS C:\> Update-SCSMDCMWorkflow -Workflow $Workflow

関連トピック

Get-SCSMDCMWorkflow

New-SCSMDCMWorkflow

Remove-SCSMDCMWorkflow