PowerCLI Reference

Export-Tpm2EndorsementKey

Synopsis

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 [-VMHost] <VMHost[]> [-Confirm] -FilePath <String> [-Force] [-Server <VIServer[]>] [-WhatIf] [<CommonParameters>]

Related Commands

Online Version
Get-Tpm2EndorsementKey
Export-Tpm2CACertificate

Detailed Description

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.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
VMHostVMHost[]Specifies the hosts on which you want to export the TPM 2.0 endorsement key from its TPM 2.0 chip.trueTrue (ByValue)
ConfirmSwitchParameterIf the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation.falseFalse
FilePathStringSpecifies the path to the file where you want to export the TPM 2.0 endorsement key.trueFalse
ForceSwitchParameterIndicates that the cmdlet overwrites the existing destination files and creates directories to complete the specified file path.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.falseFalse
WhatIfSwitchParameterIndicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified.falseFalse

Return Type

System.IO.FileInfo

Notes

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.


Copyright © VMware, Inc. All rights reserved.