Export (0) Print
Expand All
Expand Minimize

Get-CMAlertSubscription

Updated: February 7, 2014

Applies To: System Center 2012 R2 Configuration Manager

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.

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 command displays all System Center 2012 Configuration Manager alert subscriptions.


PS C:\> Get-CMAlertSubscription

Example 2: Display alert subscriptions by ID via wildcards

This command 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 command displays the System Center 2012 Configuration Manager alert subscription named Subscription01.


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

Related topics

 
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft