Command Shell Reference: Disable-NotificationSubscription
This cmdlet disables the specified notification subscription(s).
SYNTAX
Disable-NotificationSubscription [-NotificationSubscription] <NotificationSubscription> [-WhatIf] [-Confirm] [<CommonParameters>]
Example:
C:\PS>get-notificationsubscription | where-object {$_.enabled -eq $true} | disable-notificationsubscription
Retrieves a list of all ENABLED notification subscriptions in the Management Group and passes them to the disable-notificationsubscription cmdlet, thus disabling them.
Sample Scripts:
Sample scripts and MPs that use the disable-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