Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

New-CMAlertSubscription

Updated: September 1, 2013

Applies To: System Center 2012 Configuration Manager SP1

New-CMAlertSubscription

Creates an alert subscription object.

Syntax

Parameter Set: New
New-CMAlertSubscription -EmailAddress <String[]> -Name <String> [-AlertId <Int32[]> ] [-LocaleId <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]




Detailed Description

The New-CMAlertSubscription cmdlet creates a subscription that sends alert notifications to one or more users when specific events occur in Microsoft System Center 2012 Configuration Manager. Before you create an alert subscription, make sure that you have configured email settings for sending alert notifications, and that you have at least one alert configured in System Center 2012 Configuration Manager.

Parameters

-AlertId<Int32[]>

Specifies an array of alert identifiers for the subscription.


Aliases

AlertIds

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-EmailAddress<String[]>

Specifies an email address where you want to send an alert notification. For example, john.smith@contoso.com. You can separate multiple email addresses by using a semicolon.


Aliases

EmailAddresses

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-LocaleId<Int32>

Specifies a locale for alert messages. For more information and a list of locale identifiers, see the Locale IDs Assigned by Microsoft topic at http://go.microsoft.com/fwlink/?LinkId=262651.


Aliases

none

Required?

false

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?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Describes what would happen if you executed the command without actually executing the command.


Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

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: Create a new alert subscription

This example creates an alert subscription named Subscription01 and sends alert notifications to a specific email recipient in English whenever there is an event that pertains to a specified alert.


PS C:\> New-CMAlertSubscription -Name "Subscription01" -EmailAddress "john.smith@contoso.com" -LocaleId 1033 –AlertIds 16777219

Related topics

 
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.