Get-SCSMWorkflow
Service Manager iş akışları için yapılandırma bilgilerini alır.
Syntax
Get-SCSMWorkflow
[[-DisplayName] <String[]>]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMWorkflow
[-Id] <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMWorkflow
[-Name] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SCSMWorkflow cmdlet'i Service Manager iş akışları için yapılandırma bilgilerini alır.
Örnekler
Örnek 1: İş akışı yapılandırmasını alma
PS C:\>Get-SCSMWorkflow
Enabled DisplayName ManagementPackName
------- ----------- ------------------
True New Service Request Workflow ServiceManager.ServiceRequest.Library
True Service Request Status Changed ServiceManager.ServiceRequest.Library
True Resolve Incident Workflow ServiceManager.ProblemManagement.Library
True Dependent Activity Status ServiceManager.ActivityManagement.Library
True Resolve Child Incidents (Parent Incident resolved) ServiceManager.IncidentManagement.Library
Bu komut iş akışı yapılandırmasını alır.
Örnek 2: Etkinlik Olayı İş Akışı Yapılandırmasını Alma
PS C:\>Get-SCSMWorkflow "Activity Status Changed"
Enabled DisplayName ManagementPackName
------- ----------- ------------------
True Activity Status Changed ServiceManager.ReleaseManagement.Library
True Activity Status Changed ServiceManager.ChangeManagement.Library
True Activity Status Changed ServiceManager.ServiceRequest.Library
Bu örnek, " Etkinlik Durumu Değiştirildi" iş akışının yapılandırmasını alır.
ÖRNEK 3
PS C:\>$wf = Get-SCSMWorkflow "Service Request Activity Rerun"
DisplayName : Service Request Activity Rerun
Description : Service Request Activity Rerun
Enabled : True
Event : Update
ManagementPack : [ServiceManager.ServiceRequest.Library, 9396306c2be7fcc4, 7.5.1088.248]
Criteria : <Criteria>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property
State="Pre">$Context/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Rerun"]$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property
State="Post">$Context/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Rerun"]$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Criteria>
Template :
EnableNotification : False
Notification : {}
WorkflowSubscription :
Microsoft.EnterpriseManagement.Subscriptions.WorkflowSubscriptionManagementPackName :
ServiceManager.ServiceRequest.Library
Bu komutlar "Hizmet İsteği Etkinliği Yeniden Çalıştırma" iş akışının ayrıntılarını görüntüler.
ÖRNEK 4
PS C:\>$wf = Get-SCSMWorkflow "Resolve Child Incidents (Parent Incident created)"
DisplayName : Resolve Child Incidents (Parent Incident created)
Description : Resolve Child Incidents when Parent Incident is created as resolved
Enabled : True
Event : Create
ManagementPack : [ServiceManager.IncidentManagement.Library, 9396306c2be7fcc4, 7.5.1088.248]
Criteria : <Criteria>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property State="Post">$Context/Property[Type='CoreIncident!System.WorkItem.Incident']/S
tatus$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$MPElement[Name="CoreIncident!IncidentStatusEnum.Resolved"]$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Criteria>
Template :
EnableNotification : False
Notification : {}
WorkflowSubscription : Microsoft.EnterpriseManagement.Subscriptions.WorkflowSubscription
ManagementPackName : ServiceManager.IncidentManagement.Library
Bu örnek, "Alt Olayları Çözümleme (Üst Olay oluşturuldu)" iş akışının yapılandırma ayrıntılarını alır.
ÖRNEK 5
PS C:\>$wf = Get-SCSMWorkflow "Desired Configuration Management Rule Update"
DisplayName : Desired Configuration Management Rule Update
Description : Desired Configuration Management Rule Update
Enabled : True
Event : Update
ManagementPack : [ServiceManager.IncidentManagement.Library, 9396306c2be7fcc4, 7.5.1088.248]
Criteria :
Template :
EnableNotification : False
Notification : {}
WorkflowSubscription :
Microsoft.EnterpriseManagement.Subscriptions.WorkflowSubscription
ManagementPackName : ServiceManager.IncidentManagement.Library
Bu örnek, "İstenen Yapılandırma Yönetimi Kuralı Güncelleştirmesi" iş akışının yapılandırma ayrıntılarını alır.
Parametreler
-ComputerName
System Center Veri Erişimi hizmetinin çalıştığı bilgisayarın adını belirtir.
Type: | System.String[] |
Position: | Named |
Default value: | Localhost |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Bu cmdlet'in System Center Veri Erişim hizmetinin çalıştığı sunucuya bağlanmak için kullandığı kimlik bilgilerini belirtir. Belirtilen kullanıcı hesabının bu sunucuya erişim hakları olmalıdır.
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
Alınacak iş akışı yapılandırmasının görünen adını belirtir. Normal bir ifade belirtebilirsiniz.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
Alınacak iş akışı yapılandırmasının kimliğini belirtir.
Type: | System.Guid[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Alınacak iş akışı yapılandırmasının adını belirtir. Normal bir ifade belirtebilirsiniz.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
Oturumu bir Service Manager yönetim sunucusuna temsil eden nesneyi belirtir.
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
System.String
DisplayName parametresine bir ad ekleyebilirsiniz.
System.Guid
Kimlik parametresine bir GUID yönlendirebilirsiniz.
Çıkışlar
Microsoft.EnterpriseManagement.ServiceManager.Sdk.Workflows.Workflow
Bu cmdlet iş akışları hakkındaki bilgileri alır.