10/17/2008

The Get-MDMCertificateTemplatecmdlet returns a collection of MDMCertificateTemplateobjects that represent the certificate templates that have been granted authority to be used in the current MDM instance.

You can return a single template by using the Identityparameter, or you can return all templates of a specific type by using the Typeparameter. If you specify no parameters, then all the certificate templates that have been authorized for the current MDM instance are returned.

Syntax

Get-MDMCertificateTemplate [-Identity
<MDMCertificateTemplateId>] [-Type
<MDMCertificateType>] [<CommonParameters>]

Parameters

The following describes the Get-MDMCertificateTemplatecmdlet parameters.

Identity <MDMCertificateTemplateId>

Specifies a single MDM certificate template. The Identity parameter can be a certificate template name or object identifier (also known as an OID). If the value contains a space or other special characters, enclose the string in quotation marks.

Type <MDMCertificateType>

Specifies the type of MDM certificate template to return. Valid types are WebServer, MobileDevice, or GCM.

CommonParameters

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, at the MDM Shell prompt, type get-help about_commonparameters.

Input Type

The Get-MDMCertificateTemplatecmdlet accepts a string through the pipeline that identifies an MDM certificate template, or an object that has the Identityproperty. The identity may be a certificate template name or object identifier.

Output Type

The Get-MDMCertificateTemplatecmdlet returns a collection of MDMCertificateTemplateobjects. To see all the properties for this object, at the MDM Shell prompt, type Get-MDMCertificateTemplate | Get-Member.

Examples

This Get-MDMCertificateTemplatecommand example returns all the MDM certificate templates that have been granted authority to be used in the current MDM instance.

Copy Code
C:\PS>Get-MDMCertificateTemplate

This Get-MDMCertificateTemplatecommand example returns the MDM certificate template with the name "SCMDMGCM (Contoso)" in the current MDM instance.

Copy Code
C:\PS>Get-MDMCertificateTemplate -Identity "SCMDMGCM (Contoso)"

This Get-MDMCertificateTemplatecommand example returns all the MobileDevicetype certificate templates that have been granted authority to be used in the current MDM instance.

Copy Code
C:\PS>Get-MDMCertificateTemplate -Type MobileDevice

Cmdlet Help

To view this information online, at the MDM Shell prompt, type:

get-help Get-MDMCertificateTemplate -detailed, or get-help Get-MDMCertificateTemplate -full

See Also