Skip to content

Instantly share code, notes, and snippets.

@jespernohr
Created March 30, 2016 05:54
Show Gist options
  • Save jespernohr/92b564507172ca98d53fe724c21d4bfc to your computer and use it in GitHub Desktop.
Save jespernohr/92b564507172ca98d53fe724c21d4bfc to your computer and use it in GitHub Desktop.
#Check TPM Chip locally on Windows 10 PC with the following Powershell Script:
# Creating a variable for TPM WMI object.
$Tpm = Get-wmiobject -Namespace ROOT\CIMV2\Security\MicrosoftTpm -Class Win32_Tpm
# Query if TPM enabled (True/False)
$Tpm.IsEnabled().isenabled
# Query if TPM is activated (True/False)
$Tpm.IsActivated().isactivated
# Query if TPM is owned (True/False)
$Tpm.IsOwned().isOwned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment