Get-​CM​Certificate

Gets a certificate.

Syntax

Get-CMCertificate
   [-CertificateType <CertificateType>]
   [-DisableWildcardHandling]
   [-Fast]
   [-ForceWildcardHandling]
   [-Id <String>]
   [-KeyType <KeyType>]
   [-Thumbprint <String>]
   [<CommonParameters>]

Description

The Get-CMCertificate cmdlet gets a certificate.

Examples

Example 1: Get all certificates

PS ABC:\> Get-CMCertificate

This command gets all certificates.

Example 2: Get a certificate by ID and thumbprint

PS ABC:\> Get-CMCertificate -Id "{4680a1bb-ae51-4bdf-8f27-979eb49e444e}" -Thumbprint e1c2fff14282b61f79f78fbfca6721f0517ab767 -CertificateType DistributionPoint -KeyType SelfSigned

This command gets the self-signed distribution point certificate with the specified ID and thumbprint.

Optional Parameters

-CertificateType

Specifies the certificate type. Valid values are:- BootMedia

  • DistributionPoint
  • IsvProxy
Type:CertificateType
Parameter Sets:BootMedia, DistributionPoint, IsvProxy
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Fast

Indicates that the cmdlet does not automatically refresh lazy properties.Lazy properties contain values that are relatively inefficient to retrieve which can cause additional network traffic and decrease cmdlet performance. If lazy properties are not used, this parameter should be specified.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Id

Specifies the ID of a certificate.

Type:String
Aliases:SmsId
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-KeyType

Specifies the key type of the certificate. Valid values are:- SelfSigned

  • Issued
Type:KeyType
Parameter Sets:SelfSigned, Issued
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Thumbprint

Specifies the thumbprint of the certificate.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False