Get-SCSMObjectTemplate

オブジェクト テンプレートを取得します。

構文

Get-SCSMObjectTemplate
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMObjectTemplate
   [-DisplayName] <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMObjectTemplate
   [-Id] <Guid[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMObjectTemplate
   [-ManagementPack] <ManagementPack[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]
Get-SCSMObjectTemplate
   [-Name] <String[]>
   [-SCSession <Connection[]>]
   [-ComputerName <String[]>]
   [-Credential <PSCredential>]
   [<CommonParameters>]

説明

Get-SCSMObjectTemplate コマンドレットは、Service Managerで定義されているオブジェクト テンプレートを取得します。

例 1: すべてのオブジェクト テンプレートを取得する

PS C:\>Get-SCSMObjectTemplate
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

このコマンドは、Service Managerで定義されているすべてのオブジェクト テンプレートを取得します。

例 2: 名前でオブジェクト テンプレートを取得する

PS C:\>Get-SCSMObjectTemplate -name "StandardChangeRequest"
StandardChangeRequest


Name                  Description
----                  -----------
StandardChangeRequest Standard Change Requests are pre-approved and used for low-risk pre-tested change operations.

このコマンドは、StandardChangeRequest という名前のオブジェクト テンプレートを取得します。

パラメーター

-ComputerName

接続を確立するコンピューターを指定します。 コンピューターは、System Center データ アクセス サービスを実行している必要があります。 既定値は、現在の管理グループ接続のコンピューターです。

有効な形式は、NetBIOS 名、IP アドレス、または完全修飾ドメイン名 (FQDN) です。 ローカルのコンピューターを指定するには、コンピューター名、「localhost」、またはドット (.) を入力します。

Type:System.String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Credential

管理グループ接続の実行に使用するユーザー アカウントを指定します。 サーバーが指定されている場合、アカウントは ComputerName パラメーターで指定されているサーバーにアクセスできる必要があります。 既定値は現在のユーザーです。

Get-Credential コマンドレットによって返される PSCredential オブジェクトを入力できます。

Type:System.Management.Automation.PSCredential
Position:Named
Default value:Current user context
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DisplayName

取得するオブジェクト テンプレートの表示名を指定します。

Type:System.String[]
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Id

取得するオブジェクト テンプレートの ID を指定します。

Type:System.Guid[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ManagementPack

取得するオブジェクト テンプレートを含む管理パックを指定します。 Get-SCSMManagementPack コマンドレットによって返される ManagementPack オブジェクトを入力できます。

Type:Microsoft.EnterpriseManagement.Configuration.ManagementPack[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

取得するオブジェクト テンプレートの名前を指定します。

Type:System.String[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SCSession

管理サーバーへの接続を指定します。 既定値は現在の管理グループ接続です。

Get-SCSMManagementGroupConnection コマンドレットによって返される管理グループ接続オブジェクトを入力できます。

Type:Microsoft.SystemCenter.Core.Connection.Connection[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

入力

System.Guid

オブジェクト テンプレートの GUID を Get-SCSMObjectTemplate コマンドレットの Id パラメーターにパイプ処理できます。

Microsoft.EnterpriseManagement.Configuration.ManagementPack

管理パック オブジェクトを Get-SCSMObjectTemplate コマンドレットの ManagementPack パラメーターにパイプ処理できます。

System.String

テンプレートの名前を Get-SCSMObjectTemplate コマンドレットの Name パラメーターにパイプできます。

出力

Microsoft.EnterpriseManagement.Configuration.ManagementPackObjectTemplate

このコマンドレットはすべてのテンプレート オブジェクトを取得します。