Get-CMAlertSubscription

Get-CMAlertSubscription

Gets one or more alert subscription objects.

Syntax

Parameter Set: SearchByName
Get-CMAlertSubscription [-Name <String> ] [ <CommonParameters>]

Parameter Set: SearchByIdMandatory
Get-CMAlertSubscription -Id <String> [ <CommonParameters>]

Detailed Description

The Get-CMAlertSubscription cmdlet gets one or more Microsoft System Center 2012 Configuration Manager alert subscriptions and displays their properties. If you specify the name or ID of an alert subscription, the cmdlet retrieves only that alert subscription. If you specify part of the name or ID of an alert subscription, the cmdlet retrieves all alert subscriptions that match the partial name or ID. If you do not specify anything, the cmdlet returns the properties of all alert subscriptions.

Parameters

-Id<String>

Specifies the identifier of a subscription.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Name<String>

Specifies the name of an alert subscription object.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Display all alert subscriptions

This example displays all System Center 2012 Configuration Manager alert subscriptions.

PS C:\> Get-CMAlertSubscription

Example 2: Display alert subscriptions by ID via wildcards

This example displays a list of all System Center 2012 Configuration Manager alert subscriptions that begin with the number 16777.

PS C:\> Get-CMAlertSubscription -Id 16777*

Example 3: Display an alert subscription by name

This example displays the System Center 2012 Configuration Manager alert subscription named Subscription01.

PS C:\> Get-CMAlertSubscription –Name "Subscription01"

New-CMAlertSubscription

Set-CMAlertSubscription

Remove-CMAlertSubscription