Hello,
Welcome to Microsoft Q&A!
Is it possible to check if a device contains a TPM 2.0 module from a UWP app?
Currently, it is not possible to do it with native UWP API because there is no API available in UWP.
There is a Win32 API called Tbsi_GetDeviceInfo but this API is only available in desktop apps and is not supported in UWP.
If you really need to implement this in your app, you might try to use the Win32 code in a desktop app fist, then package the desktop app together with your UWP app via Windows Application Package Project. Use appservice API to communicate with each other, so the UWP app could get the result from desktop app.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.