Get-SCObjectTemplate
Gets an object template.
Syntax
Empty (Default)
Get-SCObjectTemplate
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromClassDisplayName
Get-SCObjectTemplate
[-DisplayName] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromClassGuids
Get-SCObjectTemplate
[-Id] <Guid[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromManagementPack
Get-SCObjectTemplate
[-ManagementPack] <ManagementPack[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
FromClassName
Get-SCObjectTemplate
[-Name] <String[]>
[-SCSession <Connection[]>]
[-ComputerName <String[]>]
[-Credential <PSCredential>]
[<CommonParameters>]
Description
The Get-SCObjectTemplate cmdlet retrieves an object template that is defined in Service Manager.
Examples
Example 1: Get all object templates
PS C:\>Get-SCObjectTemplate
Name Description
---- -----------
PortalIncidentTemplate Template applied to incidents created via the portal
AssignedToUserNotificationTemplate Use for notifications sent to the user who is assigned the incident
StandardChangeRequest Standard Change Requests are pre-approved and used for low-risk pre-tested cha...
DataProvider.Microsoft.EnterpriseManagement.ServiceManager.Connector.AD Linking Framework Active Directory Data Provider class
DataConsumer.Microsoft.EnterpriseManagement.ServiceManager.Connector.Sms Linking Framework Configuration Manager Data Consumer class
AffectedUserNotificationTemplate Use for notifications sent to end users
NetworkingIssueIncidentTemplate Use for incidents that are for networking problems
ChangeRequestAssignedToUserNotificationTemplate Use for notifications sent to the user who is assigned the change request
OpsMgr.CIList.Template This template sets the base classes that control which configuration items are...
DefaultParallelActivityTemplate Default Parallel Activity
SecurityReleaseChangeRequest Use Security Release template for security patch scenario. It includes typical...
EscalationNotificationTemplate Use for notifications sent when an incident is escalated
DataProvider.Microsoft.EnterpriseManagement.ServiceManager.Connector.Sms Linking Framework Configuration Manager Data Provider class
MinorChangeRequest Minor Change Requests can be approved by change manager. Use them for low-risk...
DefaultIncidentTemplate Use when you want to open an incident for which you do not have a specific tem...
DefaultDependentActivityTemplate Default Dependent Activity
EmergencyChangeRequest Emergency Change Requests are used for urgent changes which should be implemen...
DataConsumer.Microsoft.EnterpriseManagement.ServiceManager.Connector.AD Linking Framework Active Directory Data Consumer class
SoftwareIssueIncidentTemplate Use for incidents that are for software problems
HighPriorityIncidentTemplate Use for incidents that have high impact and high urgency
MajorChangeRequest Major Change Requests should be screened by Change Manager. Change Advisory Bo...
DefaultReviewActivityTemplate Default Review Activity
HardwareIssueIncidentTemplate Use for incidents that are for hardware problems
DefaultSequentialActivityTemplate Default Sequential Activity
PrintingIssueIncidentTemplate Use for incidents that are for printing problems
DefaultManualActivityTemplate Default Manual Activity
Microsoft.SystemCenter.WorkItem.SCOMIncident.Template System Center Operations Manager incident template
DefaultReleaseRecord Default Release Record
This command retrieves all object templates that are defined in Service Manager.
Example 2: Get object templates by name
PS C:\>Get-SCObjectTemplate -name "StandardChangeRequest"
StandardChangeRequest
Name Description
---- -----------
StandardChangeRequest Standard Change Requests are pre-approved and used for low-risk pre-tested change operations.
This command retrieves the object template with the name StandardChangeRequest.
Parameters
-ComputerName
Specifies a computer with which to establish a connection. The computer must be running the System Center Data Access service. The default value is the computer for the current management group connection.
Valid formats include a NetBIOS name, an IP address, or a fully qualified domain name (FQDN). To specify the local computer, type the computer name, "localhost", or a dot (.).
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Credential
Specifies a user account under which the management group connection will run. The account must have access to the server that is specified in the ComputerName parameter, if the server is specified. The default value is the current user.
You can enter a PSCredential object that is returned by the Get-Credential cmdlet.
Parameter properties
Type: | System.Management.Automation.PSCredential |
Default value: | Current user context |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisplayName
Specifies the display name of the object template to retrieve.
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromClassDisplayName
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Id
Specifies the ID of the object template to retrieve.
Parameter properties
Type: | System.Guid[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromClassGuids
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ManagementPack
Specifies the management pack containing the object templates to retrieve. You can enter a ManagementPack object that is returned by the Get-SCManagementPack cmdlet.
Parameter properties
Type: | Microsoft.EnterpriseManagement.Configuration.ManagementPack[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromManagementPack
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the Name of the object template to retrieve.
Parameter properties
Type: | System.String[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
FromClassName
Position: | 1 |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-SCSession
Specifies a connection to a management server. The default value is the current management group connection.
You can enter a management group connection object that is returned by the Get-SCManagementGroupConnection cmdlet.
Parameter properties
Type: | Microsoft.SystemCenter.Core.Connection.Connection[] |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Inputs
System.Guid
You can pipe a GUID of an object template to the Id parameter of the Get-SCObjectTemplate cmdlet.
Microsoft.EnterpriseManagement.Configuration.ManagementPack
You can pipe a management pack object to the ManagementPack parameter of the Get-SCObjectTemplate cmdlet.
System.String
You can pipe a name of a template to the Name parameter of the Get-SCObjectTemplate cmdlet.
Outputs
Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate
This cmdlet retrieves all template objects.