Tpm Category | Vmware PowerCLI Reference

Tpm Category

Cmdlets are usually implemented around resource operations. The four basic operations are CREATE, READ, UPDATE and DELETE. This set of operations is known as CRUD. Most of the cmdlets support CRUD which are respectively cmdlets that start with the New/Get/Set/Remove cmdlet verbs but they also may have additional operations

Step 1: Retrieve a object by running a Get command

You can READ objects by using Get-Tpm2EndorsementKey cmdlet. See example below:

# Retrieves the TPM 2.0 endorsement key information from the TPM 2.0 chip of the specified host when connected directly to this host.

Connect-VIServer -Server $esxiAddress -User myroot -Password mypassword Get-Tpm2EndorsementKey -VMHost $esxiAddress -Server $esxiAddress

Step 2 : Run commands from the CRUD group

You can UPDATE objects by using Export-Tpm2CACertificate cmdlet. See example below:

# Exports the CA certificate from the certificate in the $tpm2EK TPM 2.0 endorsement key that you can retrieve from the myHost host to the c:\ file.

$tpm2Ek = Get-Tpm2Endorsementkey -VMHost myHost Export-Tpm2CACertificate -Tpm2EndorsementKey $tpm2Ek -FilePath c:\

Step 3: Explore More Related Commands:

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.