Export-Tpm2EndorsementKey Command | Vmware PowerCLI Reference

Export-Tpm2EndorsementKey

This cmdlet exports the TPM 2.0 endorsement key from the TPM 2.0 chip in the specified host. It only works when you connect to the specified host directly by using the Connect-VIServer cmdlet.

Syntax

Export-Tpm2EndorsementKey
-FilePath < String >
-VMHost < VMHost[] >
[-Force ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
FilePath String named
Specifies the path to the file where you want to export the TPM 2.0 endorsement key.
required
VMHost VMHost[] named
  • pipeline
Specifies the hosts on which you want to export the TPM 2.0 endorsement key from its TPM 2.0 chip.
optional Force SwitchParameter named
Indicates that the cmdlet overwrites the existing destination files and creates directories to complete the specified file path.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

Output

System.IO.FileInfo

Examples

Example 1

Connect-VIServer -Server 1.1.1.1 -User myroot -Password mypassword
Export-Tpm2EndorsementKey -VMHost 1.1.1.1 -Server 1.1.1.1 -FilePath c:\mypath

Exports the TPM 2.0 endorsement key from the TPM 2.0 chip in the 1.1.1.1 host to the c:\mypath file.

Related Commands

Tpm2CACertificate

This cmdlet exports the CA certificate from either the certificate in the specified TPM 2.0 endorsement key or the specified certificate to a file.

Tpm2EndorsementKey

This cmdlet exports the TPM 2.0 endorsement key from the TPM 2.0 chip in the specified host. It only works when you connect to the specified host directly by using the Connect-VIServer cmdlet.

This cmdlet retrieves the TPM 2.0 endorsement key from the TPM 2.0 chip in the specified host. You can use this cmdlet by connecting either directly to an ESXi host or to its vCenter Server system.