Get-SCSMEmailTemplate
Načte e-mailové šablony definované v Service Manager.
Syntax
Get-SCSMEmailTemplate
[-Description <String>]
[[-DisplayName] <String>]
[-ManagementPack <ManagementPack>]
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
Rutina Get-SCSMEmailTemplate načte e-mailové šablony definované v Service Manager. Typ vráceného objektu je ManagementPackObjectTemplate. Tato rutina vrací pouze objekty třídy SMTP.
Příklady
Příklad 1: Získání všech šablon
C:\PS>Get-SCSMEmailTemplate
DisplayName Description ManagementPack TimeAdded LastModified
----------- ----------- -------------- --------- ------------
Assigned To User Not Use for notification Service Manager Inci 12/2/2010 12:22:15 A 12/3/2010 12:56:15 A
ification Template s sent to the user w dent Management Conf M M
ho is assigned the i iguration Library
ncident
End User Notificatio Use for notification Service Manager Inci 12/2/2010 12:22:15 A 12/3/2010 12:01:50 A
n Template s sent to end users dent Management Conf M M
iguration Library
Assigned To User Not Use for notification Service Manager Chan 12/2/2010 12:21:55 A 12/2/2010 12:21:55 A
ification Template s sent to the user w ge Management Config M M
ho is assigned the c uration Library
hange request
Escalation Notificat Use for notification Service Manager Inci 12/2/2010 12:22:15 A 12/3/2010 12:01:50 A
ion Template s sent when an incid dent Management Conf M M
ent is escalated iguration Library
Tento příkaz načte všechny e-mailové šablony z Service Manager.
Příklad 2: Zobrazované názvy a cílové třídy
C:\PS>Get-SCSMEmailTemplate|format-table DisplayName,Description -au
DisplayName Description
----------- -----------
Assigned To User Notification Template Use for notifications sent to the user who is assigned the incident
End User Notification Template Use for notifications sent to end users
Assigned To User Notification Template Use for notifications sent to the user who is assigned the change request
Escalation Notification Template Use for notifications sent when an incident is escalated
Tento příkaz načte a pak zobrazí vlastnosti DisplayName a Description šablon Email z Service Manager.
Parametry
-ComputerName
Určuje název počítače, na kterém běží služba System Center Data Access. Uživatelský účet zadaný v parametru Credential musí mít přístupová práva k zadanému počítači.
Type: | System.String[] |
Position: | Named |
Default value: | Localhost |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Credential
Určuje přihlašovací údaje, které tato rutina používá pro připojení k serveru, na kterém běží služba System Center Data Access. Zadaný uživatelský účet musí mít přístupová práva k danému serveru.
Type: | System.Management.Automation.PSCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
Určuje popis šablony e-mailu, která se má načíst.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
Určuje zobrazovaný název šablony e-mailu, který se má načíst.
Type: | System.String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ManagementPack
Určuje sady Management Pack, ve kterých jsou definovány e-mailové šablony k načtení.
Type: | Microsoft.EnterpriseManagement.Configuration.ManagementPack |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SCSession
Určuje objekt, který představuje relaci k serveru pro správu Service Manager.
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Vstupy
None.
Vstup do této rutiny nelze připojit.
Výstupy
Microsoft.EnterpriseManagement.ServiceManager.Sdk.Notifications.EmailTemplate
Tato rutina vrací objekty šablon e-mailu.