Update-SCSMDCMWorkflow

Novedades propiedades de un flujo de trabajo de DCM.

Syntax

Update-SCSMDCMWorkflow
      [-Workflow] <DCMWorkflow[]>
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

El cmdlet Update-SCSMDCMWorkflow actualiza las propiedades de un flujo de trabajo de Desired Configuration Management (DCM).

Ejemplos

Ejemplo 1: Cambiar la descripción de un flujo de trabajo

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
DisplayName           : Activity Event Workflow Configuration
Description           : This is a new description
ConfigurationBaseLine : {}
Enabled               : False
ManagementPack        : [ServiceManager.IncidentManagement.Configuration] 
Template              : DefaultIncidentTemplate
EnableNotification    : True
Notification          : {System.Collections.Hashtable, System.Collections.Hashtable}

The final command updates the workflow to match the current value stored in $Workflow.
PS C:\>Update-SCSMDCMWorkflow -Workflow $Workflow

En este ejemplo se cambia la descripción de un flujo de trabajo de DCM.

Parámetros

-Confirm

Le solicita su confirmación antes de ejecutar el cmdlet.

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

-PassThru

Indica que este cmdlet devuelve el flujo de trabajo que actualiza. Puede pasar este objeto a otros cmdlets.

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

-WhatIf

Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.

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

-Workflow

Especifica la instancia de flujo de trabajo de DCM para actualizar.

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

Entradas

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow

Puede canalizar un flujo de trabajo de DCM al parámetro Workflow .

Salidas

None.

Este cmdlet no genera ningún resultado.