Get-SCOMNotificationSubscription

Retrieves a list of notification subscriptions.

Syntax

Get-SCOMNotificationSubscription [-DisplayName] <String[]> [-ComputerName <String[]>]
 [-Credential <PSCredential>] [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMNotificationSubscription [-ComputerName <String[]>] [-Credential <PSCredential>] -Id <Guid[]>
 [-SCSession <Connection[]>] [<CommonParameters>]
Get-SCOMNotificationSubscription [-ComputerName <String[]>] [-Credential <PSCredential>] -Name <String[]>
 [-SCSession <Connection[]>] [<CommonParameters>]

Description

The Get-SCOMNotificationSubscription cmdlet retrieves a list of notification subscriptions in System Center 2016 - Operations Manager.

Examples

Example 1: Retrieve notification subscriptions by display name

PS C:\>Get-SCOMNotificationSubscription -DisplayName "Subscription01"

This command retrieves the notification subscription that has the display name Subscription01 and displays information about the subscription to the user.

Parameters

-ComputerName

Specifies an array of names of computers. The cmdlet establishes temporary connections with management groups for these computers. You can use NetBIOS names, IP addresses, or fully qualified domain names (FQDNs). To specify the local computer, type the computer name, localhost, or a dot (.).

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies a PSCredential object for the management group connection. To obtain a PSCredential object, use the Get-Credential cmdlet. For more information, type "Get-Help Get-Credential".

Type:PSCredential
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisplayName

Specifies an array of display names of an object. Values for this parameter depend on the localized management packs you import and the locale of the user that runs Windows PowerShell.

Type:String[]
Required:True
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:True
-Id

Specifies an array of GUIDs.

Type:Guid[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Name

Specifies an array of names to match against the Name property of the given objects.

Type:String[]
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:True
-SCSession

Specifies an array of Connection objects. To obtain a Connection object, use the Get-SCManagementGroupConnection cmdlet.

Type:Connection[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False