다음을 통해 공유


Get-SCSMWorkflowStatus

Service Manager에서 워크플로의 상태를 검색합니다.

Syntax

Get-SCSMWorkflowStatus
   [[-DisplayName] <String[]>]
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMWorkflowStatus
   [-Id] <Guid[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMWorkflowStatus
   [-Name] <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]

Description

Get-SCSMWorkflowStatus cmdlet은 Service Manager 워크플로의 상태 검색합니다.

예제

예제 1: 모든 워크플로의 상태 가져오기

C:\PS>Get-SCSMWorkflowStatus
Name                                                                   ManagementPackName                               Sealed Enabled TimeAdded
----                                                                   ------------------                               ------ ------- ---------
ServiceManager.IncidentManagement.ParentIncidentActivated.UpdateRule   ServiceManager.IncidentManagement.Library        True   true    8/8/2011 7:00:54 PM
ServiceManager.ActivityManagement.ActivityStatusChangedRule            ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ServiceRequest.Library.Rule.ActivityRerun               ServiceManager.ServiceRequest.Library            True   true    8/8/2011 7:04:54 PM
ServiceManager.ActivityManagement.ReviewerDeletedRule                  ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ActivityManagement.ActivityAddedRule                    ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ChangeManagement.ChangeRequestStatusChangedRule         ServiceManager.ChangeManagement.Library          True   true    8/8/2011 7:00:01 PM
ServiceManager.IncidentManagement.ParentIncidentResolved.UpdateRule    ServiceManager.IncidentManagement.Library        True   true    8/8/2011 7:00:54 PM
ServiceManager.ReleaseManagement.ActivityStatusChangedRule             ServiceManager.ReleaseManagement.Library         True   true    8/8/2011 7:00:24 PM
ServiceManager.ReleaseManagement.ActivityRerunRule                     ServiceManager.ReleaseManagement.Library         True   true    8/8/2011 7:00:24 PM
ServiceManager.ChangeManagement.ActivityStatusChangedRule              ServiceManager.ChangeManagement.Library          True   true    8/8/2011 7:00:01 PM
ServiceManager.ServiceRequest.Library.Rule.ServiceRequestStatusChanged ServiceManager.ServiceRequest.Library            True   true    8/8/2011 7:04:54 PM
ServiceManager.ReleaseManagement.ActivityAddedRule                     ServiceManager.ReleaseManagement.Library         True   true    8/8/2011 7:00:24 PM
ServiceManager.ActivityManagement.ReviewActivityActiveRule             ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ActivityManagement.ActivitySkippedRule                  ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ActivityManagement.ReviewerAddedRule                    ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ProblemManagement.Library.Rule.ResolveIncident          ServiceManager.ProblemManagement.Library         True   true    8/8/2011 7:01:37 PM
ServiceManager.ReleaseManagement.NewReleaseRecordRule                  ServiceManager.ReleaseManagement.Library         True   true    8/8/2011 7:00:24 PM
ServiceManager.ActivityManagement.DependentActivityActiveRule          ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ServiceRequest.Library.Rule.ActivityAdded               ServiceManager.ServiceRequest.Library            True   true    8/8/2011 7:04:54 PM
ServiceManager.ActivityManagement.DependentRelationshipCreatedRule     ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ActivityManagement.ReviewActivityUpdatedRule            ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
SSPModuleInvocationRule                                                ServiceManager.SoftwareDeployment.Configurations False  false   8/8/2011 7:05:21 PM
ServiceManager.IncidentManagement.ParentIncidentResolved.AddRule       ServiceManager.IncidentManagement.Library        True   true    8/8/2011 7:00:54 PM
ServiceManager.ChangeManagement.ActivityAddedRule                      ServiceManager.ChangeManagement.Library          True   true    8/8/2011 7:00:01 PM
ServiceManager.ActivityManagement.ReviewerVotedRule                    ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ActivityManagement.ContainerActivityStatusAlertRule     ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM
ServiceManager.ReleaseManagement.ReleaseRecordStatusAlertRule          ServiceManager.ReleaseManagement.Library         True   true    8/8/2011 7:00:24 PM
ServiceManager.ServiceRequest.Library.Rule.ActivityStatusChanged       ServiceManager.ServiceRequest.Library            True   true    8/8/2011 7:04:54 PM
ServiceManager.ChangeManagement.ActivityRerunRule                      ServiceManager.ChangeManagement.Library          True   true    8/8/2011 7:00:01 PM
ServiceManager.ServiceRequest.Library.Rule.NewServiceRequest           ServiceManager.ServiceRequest.Library            True   true    8/8/2011 7:04:54 PM
ServiceManager.ChangeManagement.NewChangeRequestRule                   ServiceManager.ChangeManagement.Library          True   true    8/8/2011 7:00:01 PM
ServiceManager.ActivityManagement.DependentActivityStatusRule          ServiceManager.ActivityManagement.Library        True   true    8/8/2011 6:59:27 PM

이 명령은 모든 워크플로의 상태를 검색합니다.

예제 2: 단일 워크플로의 상태 가져오기

PS C:\>Get-SCSMWorkflowStatus -Name "ServiceManager.ActivityManagement.ActivityStatusChangedRule"
Name                                                        ManagementPackName                        Sealed Enabled TimeAdded
----                                                        ------------------                        ------ ------- ---------
ServiceManager.ActivityManagement.ActivityStatusChangedRule ServiceManager.ActivityManagement.Library True   true    12/2/2010 12:21:44 AM

이 명령은 ServiceManager.ActivityManagement.ActivityStatusChangedRule 워크플로의 상태를 검색합니다.

예제 3: 기본 작업의 상태 가져오기

PS C:\>$Status = Get-SCSMWorkflowStatus -Name "ServiceManager.ActivityManagement.ActivityStatusChangedRule"
PS C:\> $Status.GetStatus()
Status    TimeStarted           TimeFinished          Duration         RelatedObject
------    -----------           ------------          --------         -------------
Succeeded 12/2/2010 12:42:42 AM 12/2/2010 12:42:43 AM 00:00:00.1970000 RA3: Initial Screening

첫 번째 명령은 ServiceManager.ActivityManagement.ActivityStatusChangedRule 워크플로의 상태 검색한 다음 $Status 변수에 저장합니다.

두 번째 명령은 $Status 워크플로의 기본 활동 상태 검색합니다.

매개 변수

-ComputerName

System Center Data Access 서비스를 실행 중인 컴퓨터의 이름을 지정합니다. Credential 매개 변수에 지정된 사용자 계정에는 지정된 컴퓨터에 대한 액세스 권한이 있어야 합니다.

Type:System.String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

이 cmdlet이 System Center Data Access 서비스가 실행되는 서버에 연결하는 데 사용하는 자격 증명을 지정합니다. 지정된 사용자 계정에는 해당 서버에 대한 액세스 권한이 있어야 합니다.

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

-DisplayName

검색할 워크플로 개체의 표시 이름을 지정합니다.

Type:System.String[]
Position:0
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Id

검색할 워크플로 개체의 ID(GUID)를 지정합니다.

Type:System.Guid[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

검색할 워크플로 개체의 이름을 지정합니다.

Type:System.String[]
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SCSession

Service Manager 관리 서버에 대한 세션을 나타내는 개체를 지정합니다.

Type:Microsoft.SystemCenter.Core.Connection.Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

입력

System.String

워크플로 이름을 DisplayName 매개 변수로 파이프할 수 있습니다.

System.Guid

워크플로 개체의 GUID를 Id 매개 변수로 파이프할 수 있습니다.

출력

Microsoft.EnterpriseManagement.Configuration.ManagementPackRule

이 cmdlet은 워크플로에 대한 정보를 검색합니다.