In this post, you’ll learn about the error “TPM_20_E_COMMAND_SIZE 0x80280142” that is returned when working with COM based APIs or libraries in Windows.
COM Error Message
TPM_20_E_COMMAND_SIZE 0x80280142
What is COM?
Microsoft’s COM stands for Component Object Model. Component Object Model (COM) is a networked, object-oriented framework for building interoperable binary software components. Microsoft’s OLE (compound documents), ActiveX (Internet-enabled components), and other products are built on the COM base technology.
Error Description
Below is the description of this COM Error.
TPM 2.0: The TPM command’s commandSize value is inconsistent with contents of the command buffer; either the size is not the same as the bytes loaded by the hardware interface layer or the value is not large enough to hold a command header.