Get-SCSMWorkflowStatus
Načte stav pracovních postupů na portálu 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
Rutina Get-SCSMWorkflowStatus načte stav pracovních postupů v Service Manager.
Příklady
Příklad 1: Získání stavu všech pracovních postupů
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
Tento příkaz načte stav všech pracovních postupů.
Příklad 2: Získání stavu jednoho pracovního postupu
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
Tento příkaz načte stav pracovního postupu ServiceManager.ActivityManagement.ActivityStatusChangedRule.
Příklad 3: Získání stavu základních aktivit
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
První příkaz načte stav pracovního postupu ServiceManager.ActivityManagement.ActivityStatusChangedRule a uloží ho do proměnné $Status.
Druhý příkaz načte stav základních aktivit pracovního postupu v $Status.
Parametry
-ComputerName
Určuje název počítače, na kterém běží služba System Center Data Access. Uživatelský účet zadaný v parametru Credential musí mít přístupová práva k zadanému počítači.
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Určuje přihlašovací údaje, které tato rutina používá pro připojení k serveru, na kterém běží služba System Center Data Access. Zadaný uživatelský účet musí mít přístupová práva k danému serveru.
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
Určuje zobrazovaný název objektu pracovního postupu, který se má načíst.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
Určuje ID (GUID) objektu pracovního postupu, který se má načíst.
Type: | System.Guid[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Určuje název objektu pracovního postupu, který se má načíst.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
Určuje objekt, který představuje relaci k serveru pro správu Service Manager.
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Vstupy
System.String
Název pracovního postupu můžete převést do parametru DisplayName .
System.Guid
Identifikátor GUID objektu pracovního postupu můžete směrovat na parametr Id .
Výstupy
Microsoft.EnterpriseManagement.Configuration.ManagementPackRule
Tato rutina načte informace o pracovních postupech.