Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Disable-SCOMNotificationSubscription

Updated: September 10, 2012

Applies To: System Center 2012 - Operations Manager, System Center 2012 SP1 - Operations Manager

Disable-SCOMNotificationSubscription

This cmdlet disables a notification subscription.

Syntax

Parameter Set: Default
Disable-SCOMNotificationSubscription [-Subscription] <NotificationSubscription[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]




Parameters

-PassThru

Returns an object representing the notification subscription. By default, this cmdlet does not generate any output.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

true (ByPropertyName)

Accept Wildcard Characters?

false

-Subscription<NotificationSubscription[]>

Specifies which subscriptions to change.


Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.

Examples

-------------------------- EXAMPLE 1 --------------------------

This command disables all enabled notifications.


PS C:\> Get-SCOMNotificationSubscription | where-object{$_.Enabled} | Disable-SCOMNotificationSubscription

-------------------------- EXAMPLE 2 --------------------------

This command disables all notifications where the user CONTOSO\AlYoung is on the TO line.


PS C:\> Get-SCOMNotificationSubscription | where-object{$_.ToRecipients -contains "CONTOSO\AlYoung"} | Disable-SCOMNotificationSubscription
 
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.