PowerShell – WMI TPM and Encryption Status

This is a example of how to query the status of the TPM chip and Bitlocker Encryption status of a volume. The C: drive in this case. Notice the namespaces, that’s the trick here. Otherwise, simple stuff.

$ComputerName = 'HOSTNAMEHERE'
#TPM Status
Get-WMIObject -Namespace "root/CIMV2/Security/MicrosoftTpm" -query "SELECT * FROM Win32_TPM" -ComputerName $ComputerName
#Volume Status (C drive)
Get-WMIObject -Namespace "root/CIMV2/Security/MicrosoftVolumeEncryption" -query "SELECT * FROM Win32_EncryptableVolume WHERE DriveLetter='C:'" -ComputerName $ComputerName