Get-MDMCertificateTemplate

2/9/2009

The Get-MDMCertificateTemplate cmdlet returns a collection of MDMCertificateTemplate objects 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 Identity parameter, or you can return all templates of a specific type by using the Type parameter. 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-MDMCertificateTemplate cmdlet 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-MDMCertificateTemplate cmdlet accepts a string through the pipeline that identifies an MDM certificate template, or an object that has the Identity property. The identity may be a certificate template name or object identifier.

Output Type

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

Examples

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

C:\PS>Get-MDMCertificateTemplate

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

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

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

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

Reference

Revoke-MDMCertificateTemplate
Grant-MDMCertificateTemplate