# esxcli system settings encryption recovery list
VMware vSphere 7.0.x
# esxcli system settings encryption get
Sample output:
Mode: NONE
Require Executables Only From Installed VIBs: false
Require Secure Boot: false
esxcli system settings encryption set --mode=TPM
# esxcli system settings encryption get
NOTE: If you receive the following error while executing the above commands, ensure that the TPM on the BIOS level is enabled, to apply this changes need to connect with Vendor.
esxcli system settings encryption set --mode=TPM
Unable to change the encryption mode and policy. Verify that the current host configuration can satisfy the new requirement.
# esxcli system settings encryption set --mode=TPM
# esxcli system settings encryption set --require-secure-boot=T
# esxcli system settings encryption recovery list
# esxcli system settings encryption get
Mode: TPM
Require Executables Only From Installed VIBs: false
Require Secure Boot: true