Get-CMCertificate

取得憑證。

語法

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

Description

Get-CMCertificate Cmdlet 會取得憑證。

注意事項

從 Configuration Manager 月臺磁碟驅動器執行 Configuration Manager Cmdlet,例如 PS XYZ:\>。 如需詳細資訊,請 參閱開始使用

範例

範例 1:取得所有憑證

PS ABC:\> Get-CMCertificate

此命令會取得所有憑證。

範例 2:依標識符和指紋取得憑證

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

此命令會取得具有指定標識符和指紋的自我簽署發佈點憑證。

參數

-CertificateType

指定憑證類型。 有效值為:

  • BootMedia
  • DistributionPoint
  • IsvProxy
類型:CertificateType
接受的值:BootMedia, DistributionPoint, IsvProxy
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-DisableWildcardHandling

此參數會將通配符視為常值字元值。 您無法將其與 ForceWildcardHandling 結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Fast

表示 Cmdlet 不會自動重新整理延遲屬性。

延遲屬性包含相對沒有效率的擷取值,這可能會導致額外的網路流量並降低 Cmdlet 效能。 如果未使用延遲屬性,則應該指定此參數。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ForceWildcardHandling

此參數會處理通配符,並可能導致非預期的行為 (不建議) 。 您無法將其與 DisableWildcardHandling 結合。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Id

指定憑證的標識碼。

類型:String
別名:SmsId
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-KeyType

指定憑證的金鑰類型。 有效值為:

  • SelfSigned
  • 發出
類型:KeyType
接受的值:SelfSigned, Issued
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Thumbprint

指定憑證的指紋。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

IResultObject[]

IResultObject