Update-SCSMDCMWorkflow
DCM iş akışının özelliklerini Güncelleştirmeler.
Syntax
Update-SCSMDCMWorkflow
[-Workflow] <DCMWorkflow[]>
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update-SCSMDCMWorkflow cmdlet'i, İstenen Yapılandırma Yönetimi (DCM) iş akışının özelliklerini güncelleştirir.
Örnekler
Örnek 1: İş akışının açıklamasını değiştirme
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
Bu örnek, DCM iş akışının açıklamasını değiştirir.
Parametreler
-Confirm
Cmdlet'i çalıştırmadan önce sizden onay ister.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
Bu cmdlet'in güncelleştirdiğini iş akışını döndürdüğünü gösterir. Bu nesneyi diğer cmdlet'lere geçirebilirsiniz.
Type: | System.Management.Automation.SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Cmdlet çalıştırılıyorsa ne olacağını gösterir. Cmdlet çalıştırılmaz.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Workflow
Güncelleştirilecek DCM iş akışının örneğini belirtir.
Type: | Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Girişler
Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.DCMWorkflow
Bir DCM iş akışını İş Akışı parametresine yöneltebilirsiniz.
Çıkışlar
None.
Bu cmdlet herhangi bir çıkış oluşturmaz.