Get-SCSMEmailTemplateContent
Get-SCSMEmailTemplateContent
Retrieves the content of Service Manager email templates.
Sintaxis
Parameter Set: Default
Get-SCSMEmailTemplateContent [-EmailTemplate] <EmailTemplate[]> [-ComputerName <String[]> ] [-Credential <PSCredential> ] [-SCSession <Connection[]> ] [ <CommonParameters>]
Descripción detallada
The Get-SCSMEmailTemplateContent cmdlet retrieves the content of Service Manager email templates.
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 |
ninguno |
¿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 |
-EmailTemplate<EmailTemplate[]>
Specifies an instance of a ManagementPackObjectTemplate for which to retrieve content.
Alias |
ninguno |
¿Requerido? |
true |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
true (ByValue) |
¿Aceptar caracteres comodín? |
false |
-SCSession<Connection[]>
Specifies an object that represents a 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.
Microsoft.EnterpriseManagement.ServiceManager.Sdk.Notifications.EmailTemplate
You can pipe an email template to the EmailTemplate parameter. You can obtain an EmailTemplate by using the Get-SCSMEmailTemplate cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
- ManagementPackElement#System.Notification.Template.SMTP#Content
Ejemplos
Example 1: Display template contents
This command retrieves the content of the AssignedToUserNotificationTemplate template, and then displays the English version of that content.
C:\PS>Get-SCSMEmailTemplateContent -EmailTemplate (Get-SCObjectTemplate -Name AssignedToUserNotificationTemplate) | Where-Object {$_.language -eq "en"}