Enable-SCOMNotificationSubscription

Enables a notification subscription.

Syntax

Enable-SCOMNotificationSubscription
      [-Subscription] <NotificationSubscription[]>
      [-PassThru]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Enable-SCOMNotificationSubscription cmdlet enables a notification subscription in System Center 2016 - Operations Manager.

Examples

Example 1: Enable all notification subscriptions

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

This command enables all disabled notifications.

Example 2: Enable notification subscriptions for a specific user

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

This command enables all notifications where the TO line includes a specific user.

Required Parameters

-Subscription

Specifies an array of subscriptions to enable. To obtain a notification subscription object, use the Get-SCOMNotificationSubscription cmdlet.

Type:NotificationSubscription[]
Position:1
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Indicates that the cmdlet creates or modifies an object that a command can use in the pipeline. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False