Unsolved

1 Rookie

 • 

2 Posts

553

January 24th, 2023 21:00

Querying tpm in WinPE not working

I'm trying to query wmi while in WinPE to check if a system has TPM 2.0 in a PowerShell script and I'm not getting any results. The script is a modified Microsoft script to check if a system meets the requirements for Windows 11.

The pertinent line is $tpm = Get-CimInstance -Namespace "ROOT\cimv2\Security\MicrosoftTpm" -ClassName Win32_TPM but it's only returning a $null value but in Windows I do get a legit return.

I've opened WMIExplorer while in WinPE and browsed to the namespace and I can see all the attributes for the class but no instance of it.

I've tested on an Optiplex 7070 (has TPM 2.0) and Optiplex 9020, 7010, and 5040 models.

Has anyone else had any luck querying tpm out of winpe or know of another way of checking that the system has TPM 2.0 and it's enabled? I really don't want to have to keep a running list of eligible models.

No Responses!
No Events found!

Top