Set-SCSMChannel

Set-SCSMChannel

Sets the properties of the email notification channel in Service Manager.

構文

Parameter Set: Default
Set-SCSMChannel [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-Enable <Null> ] [-RetryInterval <Null> ] [-ReturnAddress <String> ] [-SCSession <Connection[]> ] [-SMTPServerList <Hashtable[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

詳細説明

The Set-SCSMChannel cmdlet sets the properties of the email notification channel in Service Manager. This cmdlet is used to configure and enable email notifications that Service Manager sends to an SMTP server. Notification channels are the method by which notification messages are sent to users.

パラメーター

-ComputerName<String[]>

Specifies the name of the computer on which the System Center Data Access service runs. The user account that is specified in the Credential parameter must have access rights to the specified computer.

エイリアス

なし

必須?

false

位置は?

named

既定値

localhost

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Credential<PSCredential>

Specifies the credentials that this cmdlet uses to connect to the server on which the System Center Data Access service runs. The specified user account must have access rights to that server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-Enable<Null>

Indicates whether this cmdlet enables or disables the channel.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RetryInterval<Null>

Specifies how many seconds to wait before retrying to send email.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-ReturnAddress<String>

Specifies the return address when sending an email notification.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-SCSession<Connection[]>

Specifies the object that represents the session to a Service Manager management server.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

true (ByValue)

ワイルドカード文字を許可する

false

-SMTPServerList<Hashtable[]>

Specifies the list of SMTP servers that are used to send email notifications. The servers are used in the order that they are listed. The list is an array of hash tables with the following allowed keys:

-- Server. The SMTP server to use. Server must be provided. If Server is not provided or is not valid, this cmdlet generates a terminating error.
-- Port. The SMTP port to use. Default value is port 25.
-- Authentication. Valid values are Windows and Anonymous. The default value is Anonymous.

エイリアス

なし

必須?

false

位置は?

named

既定値

なし

パイプライン入力を許可する

false

ワイルドカード文字を許可する

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)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

  • None.

    You cannot pipe input to this cmdlet.

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • None.

    This cmdlet does not generate any output.

Example 1: Change the reply address of the channel

This command changes the replyTo address property of the email channel.

PS C:\>Set-SCSMChannel -ReturnAddress "Administrator@Woodgrove.com"

Example 2: Set the servers for the channel

This command sets the list of SMTP servers for the email channel.

PS C:\>Set-SCSMChannel -SMTPServerList @{ Server = "SMTPServer1"; Port = 25; Authentication = "Windows" },
    @{ Server = "SMTPServer2"; Port = 25; Authentication = "Windows" },
    @{ Server = "SMTPServer3"; Port = 25; Authentication = "Windows" }

関連トピック

Get-SCSMChannel