Problem
You have multiple versions of TPM chips across various devices. Depending upon the version of the chip, the setup process varies or affects your BIOS Configuration utility (E.g. CCTK from Dell).
Solution
Identify the version of the TPM chip using WMI/CIM or PowerShell.
If you were to examine Device Manager you will note the information is available. This example is from a Surface Pro 3 with 2.0 revision TPM chip.
This information is also readily available using the WMI (Windows Management Instrumentation) model.
Using PowerShell we can run the following query to see if I have a version 2.0 chip.
$TPMversion=’2.0′
$Query=’Select * from win32_tpm where SpecVersion like “‘+$TPMVersion+'”‘
$NameSpace= ‘root\cimv2\security\microsofttpm’
Get-WmiObject -Namespace $Namespace -Query $Query
In Configuration Manager you would simply target the above stated namespace (Root\cimv2\security\microsofttpm) and then apply a direct query. Here is an example of a query to identify a TPM 1.1 chip.
Select * from Win32_tpm Where SpecVersion like ‘1.1%’
Using this information, you can make your Task Sequences more dynamic if you are dealing with multiple configurations based strictly upon your TPM chip version.
By Sean Kearney
Sean Kearney is a Senior Solutions Architect at Cistel Technology Inc. He lives in the world of Automation leveraging technologies such as System Center Orchestrator and will break out into song when the word “PowerShell” is used. He is a Windows PowerShell MVP, Charter Member of the Springboard Technical Experts Program and an Honorary Scripting Guy who regularly contributes content to Microsoft’s own “Scripting Guys” website.