Get-SCSMTask
Service Manager'da tanımlanan görevleri alır.
Syntax
Get-SCSMTask
[[-DisplayName] <String[]>]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMTask
[-Id] <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Get-SCSMTask
[-Name] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Get-SCSMTask cmdlet'i Service Manager tanımlanan görevleri alır.
Örnekler
Örnek 1: Olaylarla ilişkili tüm görevleri alma
PS C:\>Get-SCSMTask -DisplayName "*incident*"
Enabled Category Name description
------- -------- ---- -----------
True Alert System.WorkItem.Incident.GeneralSettings.Task View or edit the general settings for incident management
True Alert System.WorkItem.Incident.ViewAlertDetailsCommand.Task View alert details
True Alert Microsoft.EnterpriseManagement.ServiceManager.UI.Administration.... Create an Incident Resolver user role
True Alert System.WorkItem.Incident.ViewHealthStateCommand.Task View the configuration item's health state
True Alert System.WorkItem.Incident.RequestUserInputCommand.Task Request user input
True Alert ServiceManager.IncidentManagement.Library.Task.DesiredConfiguration Configure System Center Configuration Manager Desired Configuration...
True Alert System.WorkItem.Incident.CreateIncidentforConfigItem.Task Create an incident linked to the current item
True Alert System.WorkItem.Incident.ChangeStatusCommand.Task Change the incident status
True Alert System.WorkItem.Incident.ActivateIncidentCommand.Task Activate the incident
True Alert ConsoleTask.HelpIncident Service Manager Incident Management Help
True Alert System.WorkItem.Incident.AssignToMeCommand.Task Assign the incident to me
True Alert System.WorkItem.Incident.New.Task Create an incident
True Alert ServiceManager.IncidentManagement.Library.Task.AutomaticIncident... Configure incident change workflows
True Alert System.WorkItem.Incident.EscalateIncidentCommand.Task Escalate or transfer the incident
True Alert System.WorkItem.Incident.AssignCommand.Task Assign the incident to an analyst
True Alert System.WorkItem.Incident.PingComputerCommand.Task Ping related computers
True Alert System.WorkItem.Incident.ApplyTemplateCommand.Task Apply a template
True Alert System.WorkItem.Incident.RemoteComputerCommand.Task Remote desktop
True Alert System.WorkItem.Incident.CloseIncidentCommand.Task Close the incident
True Alert System.WorkItem.Incident.ResolveIncidentCommand.Task Resolve the incident
Bu komut, olaylarla ilişkili tüm görevleri alır.
Parametreler
-ComputerName
System Center Veri Erişimi hizmetinin çalıştığı bilgisayarın adını belirtir. Credential parametresinde belirtilen kullanıcı hesabının belirtilen bilgisayara erişim hakları olmalıdır.
Type: | System.String[] |
Position: | Named |
Default value: | None |
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 görev nesnesinin görünen adını belirtir.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Id
Alınacak görev nesnesinin kimliğini belirtir.
Type: | System.Guid[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Alınacak görev nesnesinin adını belirtir.
Type: | System.String[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
bir Service Manager yönetim sunucusuna oturumu temsil eden bir 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
Guid'yi Id parametresine yönlendirebilirsiniz.
Çıkışlar
Microsoft.EnterpriseManagement.Configuration.ManagementPackConsoleTask
Bu cmdlet görev nesnelerini döndürür.