This article only applies to Squared Up Version 2.0. If you're looking for help with Squared Up Version 3.0, please visit our new knowledge base

1. Open a SCOM PowerShell window (Start Menu > Microsoft System Center 2012 > Operations Manager > Operation Manager Shell)

2. Copy and paste the following single line of PowerShell:

For Operations Manager 2012, use the following single line of PowerShell:

 

(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

 

 For Operations Manager 2007 R2, use the following single line of PowerShell:

 

(Get-ManagementGroupConnection).ManagementGroup.GetType().GetMethod("GetServiceLevelObjectives", [Type[]]@()).MakeGenericMethod([Microsoft.EnterpriseManagement.Configuration.ManagementPackSLO]).Invoke( (Get-ManagementGroupConnection).ManagementGroup,@() ) | select @{Name="SLA Name";Expression={$_.ConfigurationGroupId.GetElement().DisplayName}},@{Name="SLO Name";Expression={$_.DisplayName}},@{Name="SLO ID";Expression={$_.Id}} | Format-List

 

3. The results of this command are a list of all SLOs and their SCOM IDs.