Set-CMEmailNotificationComponent
Set-CMEmailNotificationComponent
Changes configuration settings of an email notification component.
構文
Parameter Set: Disable
Set-CMEmailNotificationComponent -DisableEmailNotification [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: Enable
Set-CMEmailNotificationComponent -EnableEmailNotification -SendFrom <String> -SmtpServerFqdn <String> -TypeOfAuthentication <AuthenticationMethod> {Anonymous | DefaultServiceAccount | Other} [-Port <Int32> ] [-UserName <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
The Set-CMEmailNotificationComponent cmdlet changes configuration settings of an email notification component in Microsoft System Center 2012 Configuration Manager. You can configure the email notification component for each System Center 2012 Configuration Manager site to configure email subscriptions to alerts.
パラメーター
-DisableEmailNotification
Indicates that email notification is disabled.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-EnableEmailNotification
Indicates that Configuration Manager uses an SMTP server to send email alerts.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-Port<Int32>
Specifies the outgoing SMTP port for sending email alerts.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-SendFrom<String>
Specifies the email address from which Configuration Manager sends email alerts.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-SmtpServerFqdn<String>
Specifies the fully qualified domain name (FQDN) of the SMTP server.
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-TypeOfAuthentication<AuthenticationMethod>
Specifies the method by which Configuration Manager authenticates the site server to the SMTP Server. Valid values are:
-- Anonymous
-- DefaultServiceAccount
-- Other
エイリアス |
なし |
必須? |
true |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
True (ByPropertyName) |
ワイルドカード文字を許可する |
false |
-UserName<String>
Specifies the user name to authenticate with the SMTP server from which Configuration Manager sends email alerts. This parameter also specifies the SMTP Server Connection account.
エイリアス |
なし |
必須? |
false |
位置は? |
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: Enable email notification
This command enables email notification for System Center 2012 Configuration Manager. The command specifies that System Center 2012 Configuration Manager uses the System Center 2012 Configuration Manager site that has the site code CM2 on the server cmcen-dist02.tsqa.corp.contoso.com to host the site system role for email notification. The command specifies that System Center 2012 Configuration Manager uses the server named mail.corp.contosco.com for the email server and specifies the outgoing SMTP port for sending email alerts. The command specifies that System Center 2012 Configuration Manager uses the default service account for authenticating the site server to the SMTP Server, and specifies that System Center 2012 Configuration Manager sends email alerts from the email address evan.narvaez@contoso.com.
PS C:\> Set-CMEmailNotificationComponent -SiteSystemServerName "cmcen-dist02.tsqa.corp.contoso.com" -SiteCode "CM2" -EnableEmailNotification $True -MstpServerFqdn "mail.corp.contosco.com" -Port 25 -TypeOfAuthentication DefaultServiceAccount -SendFrom "evan.narvaez@contoso.com"
Example 2: Disable email notification
This command disables email notification for System Center 2012 Configuration Manager on the site server named cmcen-dist02.tsqa.corp.contoso.com.
PS C:\> Set-CMEmailNotificationComponent -SiteSystemServerName "cmcen-dist02.tsqa.corp.contoso.com" -EnableEmailNotification $False
Example 3: Set the outgoing SMTP port for email notification
This command sets the outgoing SMTP port that System Center 2012 Configuration Manager uses for sending email alerts on the site server named cmcen-dist02.tsqa.corp.contoso.com to port 27.
PS C:\> Set-CMEmailNotificationComponent -SiteSystemServerName "cmcen-dist02.tsqa.corp.contoso.com" -Port 27