Enable-SCOMNotificationSubscription

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enable-SCOMNotificationSubscription

Enables a notification subscription.

Syntax

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

Detailed Description

The Enable-SCOMNotificationSubscription cmdlet enables a notification subscription.

Parameters

-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

none

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

none

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 enables all disabled notifications.

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

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

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

PS C:\>Get-SCOMNotificationSubscription | where-object{$_.ToRecipients -contains "CONTOSO\AlYoung"} | Enable-SCOMNotificationSubscription