Get-TpmEndorsementKeyInfo
Get-TpmEndorsementKeyInfo
Gets information about the endorsement key and certificates of the TPM.
構文
Parameter Set: Default
Get-TpmEndorsementKeyInfo [[-HashAlgorithm] <String> ] [ <CommonParameters>]
詳細説明
The Get-TpmEndorsementKeyInfo cmdlet gets information about the endorsement public key and certificates of the Trusted Platform Module (TPM).
パラメーター
-HashAlgorithm<String>
Specifies the hash algorithm used for the public key. このパラメーターに対して使用できる値: Sha256.
エイリアス |
なし |
必須? |
false |
位置は? |
2 |
既定値 |
なし |
パイプライン入力を許可する |
True (ByValue) |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
String
This accepts the name of the algorithm, as a string, used to hash the public key. Sha256 is the only supported algorithm.
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
EndorsementKeyObject
This cmdlet generates an EndorsementKeyObject that contains the following members:
-- IsPresent. A Boolean that represents whether the endorsement public key is known to the operating system.
-- PublicKey. An AsnEncodedData object that contains the asn.1 encoded public portion of the endorsement key.
-- PublicKeyHash. The hash, as a String, of the public key if the cmdlet used a hash algorithm.
-- ManufacturerCertificates. A X509Certificate2Collection object that contains the manufacturer endorsement key certificates. This object can contain the manufacturer and platform certificates.
-- AdditionalCertificates. A X509Certificate2Collection object that contains a collection of additional endorsement key certificates that are registered to the operating system, such as any enterprise certificates.
例
Example 1: Get endorsement key information
This command gets information about the endorsement key of the TPM. The command uses the Sha256 algorithm to hash the public key.
PS C:\> Get-TpmEndorsementKeyInfo -Hash "Sha256"