Freigeben über


SCOM Enhanced Email Notification Script Version 2.2

 

SCOM Enhanced Email Notification Script Version 2.2 now supports Subscriber schedules and Address schedules!

Setup Instructions:  See original post.

 

You can download the current version of this script from Technet Gallery

 

Note: Any exclusions take precedence over any inclusions.

 

Page Updates:

2015.3.12: Modified the script slightly to change the way the PSModulePath variable gets set.

Comments

  • Anonymous
    February 12, 2015
    Mr. Paul:   Is the only added support/enhancement to this script just the ability to add schedules to subscriptions?

  • Anonymous
    February 12, 2015
    Yes. I may have also fixed a few minor typos.

  • Anonymous
    February 12, 2015
    Mr. Paul:  I noticed that in some of the alerts when Get-HealthReport is added to the alert context in the email that the columns within the alert are not structured thus making it difficult to quickly determine what is health versus what is unhealthy, especially when on a mobile device. What are the chances that this script could be modified to create a table within the email that properly formats the table that is created within the alert context?

  • Anonymous
    February 12, 2015
    Mr. Paul:   When some alert emails are generated, in the body of the email, there is a printout of the Get-HealthReport. However, it is very difficult to quickly identify, especially via mobile devices, what is healthy and what isn't. Is there anyway your script can be updated to properly format that output to make it a bit simpler to quickly review which items are health and which are not?

  • Anonymous
    February 19, 2015
    Hi Curious1,   I'm not entirely sure to what you are referring. The Get-HealthReport cmdlet is available only in on-premises Exchange Server 2013.  I don't have Exchange set up in my lab so it's difficult to poke around.  Did you modify the script already to include the output of that cmdlet?  Or are you saying that the output of the cmdlet automatically exists in the alert context data and that it ends up being difficult to read in the context data area of the email?  Either way, the email is formatted with html. You can manipulate the structure of the email body any way you see fit. If you are asking me to do it... well... don't hold your breath. But feel free to experiment with this yourself.

  • Anonymous
    March 05, 2015
    Should this work with SCOM 2012 R2 I am having difficulty getting it to run there

  • Anonymous
    March 05, 2015
    @Rick:  Yes. I've only tested it on SCOM 2012 and not 2007. Did you look at the Troubleshooting section of the original post?

  • Anonymous
    March 05, 2015
    I found a few commands in it that my system did not understand and needed to change like get-alert needed to be get-scomalert.   Getting this now though Error Data: You cannot call a method on a null-valued expression.

  • Anonymous
    March 05, 2015
    @Rick:  These commands on or around lines 456-457 should enable the use of legacy (SCOM 2007R2) commands: Add-PSSnapin Microsoft.EnterpriseManagement.OperationsManager.Client -ErrorAction SilentlyContinue -ErrorVariable Err New-PSDrive -Name:Monitoring -PSProvider:OperationsManagerMonitoring -Root: -ErrorAction SilentlyContinue -ErrorVariable Err | Out-Null However, feel free to change/update the commands as you see fit if that works for you. If you do everything according to the instructions on the original post page it should work without issues. "Should" work.

  • Anonymous
    April 19, 2015
    I get two emails from this everytime. Any idea why?

  • Anonymous
    April 19, 2015
    The comment has been removed

  • Anonymous
    August 08, 2015
    Hey Guys you ever run into the: The Process could not load because the maximum number of asynchronous has already been reached? Might want to check out the Enhanced Notification Service for scom: <link removed>

  • Anonymous
    August 11, 2015
    The comment has been removed

  • Anonymous
    September 10, 2015
    Agree with you on removing a link advertising a product based on your's and Tao's solution. By the way, the link to the script is failing. The first part of the HTTP string shouldn't be there.

  • Anonymous
    September 10, 2015
    @Michiel: Link is now fixed. Thanks.