New-CMAlertSubscription
New-CMAlertSubscription
Creates an alert subscription object.
構文
Parameter Set: New
New-CMAlertSubscription -EmailAddress <String[]> -Name <String> [-AlertId <Int32[]> ] [-LocaleId <Int32> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
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.
パラメーター
-AlertId<Int32[]>
Specifies an array of alert identifiers for the subscription.
エイリアス |
AlertIds |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-EmailAddress<String[]>
Specifies an email address where you want to send an alert notification. For example, david.chew@contoso.com. You can separate multiple email addresses by using a semicolon.
エイリアス |
EmailAddresses |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
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 https://go.microsoft.com/fwlink/?LinkId=262651.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Name<String>
Specifies the name of an alert subscription object.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
例
Example 1: Create a new alert subscription
This command 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 "evan.narvaez@contoso.com" -LocaleId 1033 -AlertIds 16777219