$Alert = Get-SCOMAlert -Name "Alert Name"

$MonitorID = $Alert.MonitoringRuleId

$MonitorName = Get-SCOMMonitor -id $MonitorID

$managementpack = $MonitorName.GetManagementPack()

$managementpackname = $managementpack.DisplayName

$managementpackname

Leave a Reply

Your email address will not be published. Required fields are marked *