Grant-MDMCertificateTemplate

2/9/2009

The Grant-MDMCertificateTemplate cmdlet authorizes a certificate template to be used as a template for a specified type of certificate in the current System Center Mobile Device Manager instance.

Syntax

Grant-MDMCertificateTemplate [-Identity] <MDMCertificateTemplateId> -Type <MDMCertificateType> [-confirm] [-whatif] [<CommonParameters>]

Parameters

The following describes the Grant-MDMCertificateTemplate cmdlet parameters.

  • Identity <MDMCertificateTemplateId>
    Specifies an 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 for which the template is authorized. Valid types are WebServer, MobileDevice, or GCM.
  • WhatIf
    Informs you of what changes would be made if the action were to be performed (the cmdlet is not executed).
  • Confirm
    Prompts you for confirmation before the cmdlet executes.
  • 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 Grant-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

None

Examples

This Grant-MDMCertificateTemplate command example grants the current MDM instance the use of the certificate template with the name "SCMDMGCM (Contoso)", authorizing certificates created with this template to be used by the MDM GCM.

C:\PS>Grant-MDMCertificateTemplate -Identity "SCMDMGCM (Contoso)" -Type GCM

This Grant-MDMCertificateTemplate command example grants the current MDM instance the use of the certificate template with the specified object identifier, authorizing certificates created with this template to be used by the MDM GCM.

C:\PS>Grant-MDMCertificateTemplate -Identity "0.0.0.0.9.0.000.00.9.9913859.993825.91034758.3215432.3702260.207.1.30" -Type GCM

Cmdlet Help

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

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

See Also

Reference

Revoke-MDMCertificateTemplate
Get-MDMCertificateTemplate