question

RahulK-5396 avatar image
0 Votes"
RahulK-5396 asked Castorix31 edited

is there any api to check whether TPM is available in the machine and get TPM version of the machine?

We are looking for an API to know whether TPM is available in this machine and also to get TPM version of the machine.
Power shell command "Get-Tpm" will show tpm status, but we need a c# or c++ api.

dotnet-csharpwindows-apic++windows-10-security
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered Castorix31 edited

Probably Tbsi_GetDeviceInfo
(I have not TPM, cannot test ...)


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

... or also with WMI : Win32_Tpm class
(used by tpm.msc)



0 Votes 0 ·
Docs-4663 avatar image
0 Votes"
Docs-4663 answered

These are some options to view the TPM data:


1) Open administrative command prompt and type or copy and paste:

tpmtool gatherlogs %UserProfile%\Desktop


2) Open administrative powershell and type or copy and paste:

get-tpm


3) Boot to the BIOS:

a) Look for TPM settings (Trusted Platform Module)
b) Look for PTT settings (Platform Trust Technology)



https://docs.microsoft.com/en-us/windows/security/information-protection/tpm/trusted-platform-module-overview

https://docs.microsoft.com/en-us/windows/security/information-protection/tpm/tpm-recommendations

https://docs.microsoft.com/en-us/windows/security/information-protection/tpm/trusted-platform-module-top-node

https://docs.microsoft.com/en-us/windows-hardware/design/device-experiences/oem-tpm





.
.
.
.
.

Please remember to vote and to mark the replies as answers if they help.

On the bottom of each post there is:

Propose as answer = answered the question

On the left side of each post there is /\ with a number: click = a helpful post
.
.
.
.
.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.