Check if TPM chip is present and enabled and retrieve version with PowerShell

A Trusted Platform Module (TPM) chip is a specialized hardware component that provides security-related functions and serves as a secure root of trust for a computing system. It is a microcontroller that is integrated into a computer’s motherboard or added as a discrete component. TPM chips are designed to enhance the security and integrity of a computer’s hardware and software.

The primary purpose of a TPM chip is to provide hardware-based security features to protect sensitive data, cryptographic keys, and other critical system information. It achieves this through a combination of encryption, authentication, and hardware-based security mechanisms.

To check if a tpm chip is present and enabled, and to also retrieve the version, you can use the following PowerShell script:


$TPM = Get-WMIObject -class Win32_Tpm -Namespace “root\cimv2\Security\MicrosoftTpm”
If ($TPM.isEnabled) {
“A TPM chip is present and enabled on this computer and the version is $((Get-WMIObject -class Win32_Tpm -Namespace “root\cimv2\Security\MicrosoftTpm”).SpecVersion)”
else {
“The computer does either not have a TPM chip or it is not enabled.”


Leave a comment

Your email address will not be published. Required fields are marked *

8 + 5 =