I'm trying to get all the ID:s for my Service Level Tracking Objects in Powershell/Console.
Anyone knows if this is possible? I cant find any views, or custom views that exposes this. Neither can I get the SLA Class/Objects by Powershell.
I'm trying to get all the ID:s for my Service Level Tracking Objects in Powershell/Console.
Anyone knows if this is possible? I cant find any views, or custom views that exposes this. Neither can I get the SLA Class/Objects by Powershell.
You can get the Service Tracking Object IDs by running the following PowerShell command:
(Get-ScomManagementGroup).ServiceLevelAgreements.GetType().GetMethod("GetServiceLevelObjectives", [Type[]]@()).MakeGenericMethod([Microsoft.EnterpriseManagement.Configuration.ManagementPackSLO]).Invoke( (Get-ScomManagementGroup).ServiceLevelAgreements, @() ) | select @{Name="SLA Name";Expression={$_.ConfigurationGroupId.GetElement().DisplayName}},@{Name="SLO Name";Expression={$_.DisplayName}},@{Name="SLO ID";Expression={$_.Id}} | Format-List
(If the reply was helpful please don't forget to upvote or accept as answer, thank you)
Best regards,
Leon
4 people are following this question.