Command Shell Reference: Enable-NotificationSubscription

 

This cmdlet enables the specified notification subscription(s) present in an Operations Manager 2007 Management Group.

SYNTAX

Enable-NotificationSubscription [-NotificationSubscription] <NotificationSubscription> [-WhatIf] [-Confirm] [<CommonParameters>]

Example:

C:\PS>get-notificationsubscription | where-object {$_.disabled -eq $true} | enable-notificationsubscription

Retrieves a list of all DISABLED notification subscriptions in the Management Group and passes them to the enable-notificationsubscription cmdlet, thus enabling them.

Sample Scripts:

Sample scripts and MPs that use the enable-notificationsubscription cmdlet.

 

For a complete list of Operations Manager Command Shell samples and examples as they are published, see the Operations Manager 2007 Command Shell Online Reference at http://www.systemcenterforum.org/commandshell

2 Responses to “Command Shell Reference: Enable-NotificationSubscription”

  1. Maekee Says:

    The Disable-NotificationSubscription works fine for me but not this Script.

    Dont i have to include the syntax that chooses if we will get the alert from the Alerts was closed or from its started again?

    Something that i should check?

    /Maekee

  2. Pete Says:

    The script seems to work as advertised for me on OpsMgr SP1. What is the error you are seeing?

    By default, I believe the enable-notificationsubscription defaults to sending the errors that are raised while the subscription was disabled. You may want to check that in the lab, but that is my recollection.

Leave a Reply

privacy policy | terms of use | copyright © 2008 pete zerger