Get-SCSMWorkflowStatus
Updated: January 14, 2013
Applies To: System Center 2012 - Service Manager, System Center 2012 SP1 - Service Manager
Get-SCSMWorkflowStatus
Syntax
Parameter Set: FromDisplayName Get-SCSMWorkflowStatus [[-DisplayName] <String[]> ] [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>] Parameter Set: FromId Get-SCSMWorkflowStatus [-Id] <Guid[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>] Parameter Set: FromName Get-SCSMWorkflowStatus [-Name] <String[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Detailed Description
The Get-SCSMWorkflowStatus cmdlet retrieves the status of workflows in Service Manager.
Parameters
-ComputerName<String[]>
Specifies the name of the computer on which System Center Data Access service runs.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-Credential<PSCredential>
Specifies the credential to use when connecting to the System Center Data Access service.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-DisplayName<String[]>
Specifies the DisplayName of the workflow object to be retrieved.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
true |
-Id<Guid[]>
Specifies the ID (GUID) of the workflow object to be retrieved.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
-Name<String[]>
Specifies the name of the workflow object to be retrieved.
|
Aliases |
none |
|
Required? |
true |
|
Position? |
1 |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
true |
-SCSession<Connection[]>
Specifies an object that represents the session to a Service Manager management server.
|
Aliases |
none |
|
Required? |
false |
|
Position? |
named |
|
Default Value |
none |
|
Accept Pipeline Input? |
true (ByValue) |
|
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
-
System.String
You can pipe a workflow name to the DisplayName parameter of the
Get-SCSMWorkflowStatuscmdlet.
-
System.Guid
You can pipe a GUID of a workflow object to the Id parameter of the
Get-SCSMWorkflowStatuscmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
-
Microsoft.EnterpriseManagement.Configuration.ManagementPackRule
This cmdlet retrieves information about workflows.
Examples
-------------------------- EXAMPLE 1 --------------------------
This command retrieves the status of all workflows.
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
-------------------------- EXAMPLE 2 --------------------------
This command retrieves the status of the ServiceManager.ActivityManagement.ActivityStatusChangedRule workflow.
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
-------------------------- EXAMPLE 3 --------------------------
This command retrieves the status of each of the underlying activities of a workflow.
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
