It was asked of me today: How can I get the groups and group members that are in a Notification Group?
After a bit of pondering, this is what I came up with.
$Notifications = get-notificationsubscription | ? {$_.DisplayName -match "Sharepoint Notifications"}$Groups = Get-MonitoringObjectGroupforeach ($NotificationGroupID in ($Notifications.Configuration).MonitoringObjectGroupIds) { $WorkingGroup = $Groups | ? {$_.Id -match $NotificationGroupID} $WorkingGroup | Select DisplayName $Members = $WorkingGroup.GetRelatedMonitoringObjects() $Members | Sort DisplayName | Select DisplayName "" }
Example Output:
DisplayName ----------- All Sharepoint Computers Server1.Example.comServer2.Example.comServer3.Example.comAll Sharepoint DatabasesDBServer1.Example.comDBServer2.Example.com
Many years ago, I started working with System Center Operations Manger in an Enterprise level company. This company had some requirements that pushed SCOM to the limits, and actually helped shape some of the changes that have happened.
During that time, I ran a blog for what I was doing, but eventually let it fall to the side.
So the next few posts to this blog will probably be information that is outdated, as they will be copied from my old blog. Which is currently offline.
As things progress, some of the new challenges I will be dealing with and their solutions will show up here.
Jason