Jason Rydstrand

System Center and Powershell

January, 2013

  • Notification Groups - How to list members with powershell

    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-MonitoringObjectGroup
    foreach ($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.com
    Server2.Example.com
    Server3.Example.com

    All Sharepoint Databases
    DBServer1.Example.com
    DBServer2.Example.com

  • First Technet Blog Post

    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