Get-SCSMChannel

Get-SCSMChannel

Retrieves the email notification channels that are defined in Service Manager.

Sintaxis

Parameter Set: Default
Get-SCSMChannel [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]

Descripción detallada

The Get-SCSMChannel cmdlet retrieves the email notification channels that are defined in Service Manager. The object returned includes the retry interval in seconds, the return address of the email, the status of the channel, and the list of Simple Mail Transfer Protocol (SMTP) servers.

Parámetros

-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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

localhost

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

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.

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

false

-SCSession<Connection[]>

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

Alias

ninguno

¿Requerido?

false

¿Posición?

named

Valor predeterminado

ninguno

¿Aceptar canalización?

true (ByValue)

¿Aceptar caracteres comodín?

false

<CommonParameters>

Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.

  • None.

    You cannot pipe input to this cmdlet.

Salidas

El tipo de resultado es el tipo de objetos que emite el cmdlet.

  • System.NotificationChannel.SMTP.Projection

    The output of this cmdlet is the SCSMChannel object that contains the SMTP settings for the email notification channel.

Ejemplos

Example 1: Get settings for the notifications channel

This command retrieves the settings for the email Notification channel.

PS C:\>Get-SCSMChannel

Example 2: Get servers for the email notification channel

The first command retrieves the settings for the email notification channel, and then stores them in the $EmailChannel variable.

The second command uses standard dot syntax to display the ConfigruationSources property of $EmailChannel. The command uses Format-Table to format the results.

PS C:\>$EmailChannel = Get-SCSMChannel
PS C:\> $EmailChannel.ConfigurationSources | Format-Table -AtuoSize

Temas relacionados

Set-SCSMChannel