Get-CMAlertSubscription

Gets one or more alert subscription objects.

Syntax

Get-CMAlertSubscription
   -Id <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMAlertSubscription
   [-Name <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMAlertSubscription cmdlet gets one or more Microsoft System Center 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.

Examples

Example 1: Display all alert subscriptions

PS C:\> Get-CMAlertSubscription

This command displays all System Center Configuration Manager alert subscriptions.

Example 2: Display alert subscriptions by ID by using wildcard characters

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

This command displays all System Center Configuration Manager alert subscriptions that have an ID that starts with the number 16777.

Example 3: Display an alert subscription by name

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

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

Required Parameters

-Id

Specifies the ID of a subscription.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of an alert subscription object.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False