locked
SCOM powershell to enable certain email subcriptions RRS feed

  • Question

  • Hi,

    Is there a SCOM powershell to enable subcriptions that contain the word "Servers"?

    Thanks!


    Z

    Monday, November 30, 2015 2:06 PM

Answers

  • Hi,

    This Powershell line will do the trick for you:

    Get-SCOMNotificationSubscription | where {$_.DisplayName -like "*servers*"} | Enable-SCOMNotificationSubscription


    Regards, Daniel


    • Edited by Daniel Örneling Monday, November 30, 2015 2:20 PM
    • Proposed as answer by Daniel Örneling Monday, November 30, 2015 2:22 PM
    • Marked as answer by SCOM32 Monday, November 30, 2015 3:00 PM
    Monday, November 30, 2015 2:19 PM

All replies

  • Hi,

    This Powershell line will do the trick for you:

    Get-SCOMNotificationSubscription | where {$_.DisplayName -like "*servers*"} | Enable-SCOMNotificationSubscription


    Regards, Daniel


    • Edited by Daniel Örneling Monday, November 30, 2015 2:20 PM
    • Proposed as answer by Daniel Örneling Monday, November 30, 2015 2:22 PM
    • Marked as answer by SCOM32 Monday, November 30, 2015 3:00 PM
    Monday, November 30, 2015 2:19 PM
  • Thank you!

    Anyway to choose the "Genereated after the subscription is enabled (fewer messages) option"


    Z

    Monday, November 30, 2015 3:00 PM
  • No, not that I know of at least. You can see what you can do with the cmdlet at this site: https://technet.microsoft.com/library/hh527841.aspx which covers the Enable-SCOMNotificationSubscription cmdlet.

    Regards, Daniel


    Monday, November 30, 2015 3:03 PM