Query TPM level from a batch file


Ztruker

Well-known member
Member
VIP
Local time
5:54 AM
Posts
180
Location
Space Coast of Florida
OS
Windows 11 Pro X64 22H2 22621.1848
Is there any way to determine what TPM level is available on a system from a batch file? Maybe look at the output of a REG or a WMIC command?
 

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then
Hello Rich, :alien:

If you mean for the TPM version, then you could use the command below or other option in the tutorial below.

tpmtool getdeviceinformation

 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
This command also useful.

Code:
wmic /namespace:\\root\cimv2\security\microsofttpm path win32_tpm get SpecVersion,ManufacturerVersion
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    HP Pavilion
    CPU
    AMD Ryzen 7 5700G
    Motherboard
    Erica6
    Memory
    Micron Technology DDR4-3200 16GB
    Graphics Card(s)
    NVIDIA GeForce RTX 3060
    Sound Card
    Realtek ALC671
    Monitor(s) Displays
    Samsung SyncMaster U28E590
    Screen Resolution
    3840 x 2160
    Hard Drives
    SAMSUNG MZVLQ1T0HALB-000H1
Thanks @Brink and @FreeBooter. TPMTool is not part of Windows 10 or not part of 10 Home any way.
wmic method does not work if TPM is not enabled.
 

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then
How about using WinKey + R, type tpm.msc? Or right-click Start, click Run and type tpm.msc?
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Assuming it's enabled, you'll want the highest supported TPM level.
Code:
powershell "$Ver = ((Get-CimInstance -Namespace 'root/cimv2/Security/MicrosoftTpm' -ClassName 'Win32_Tpm').SpecVersion -split ', ') | sort | select -Last 1; if ($Ver -ne '') { $Ver } else { 'N/A' }"

2.0
 

My Computer

System One

  • OS
    Windows 7
TPM 2.0 is specified in the System Requirements for Win11, that's the highest I've seen. My Notebook from just over a month ago has it.

1708817366794.png
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    HP
    CPU
    Intel(R) Core(TM) i7-4800MQ CPU @ 2.70GHz
    Motherboard
    Product : 190A Version : KBC Version 94.56
    Memory
    16 GB Total: Manufacturer : Samsung MemoryType : DDR3 FormFactor : SODIMM Capacity : 8GB Speed : 1600
    Graphics Card(s)
    NVIDIA Quadro K3100M; Intel(R) HD Graphics 4600
    Sound Card
    IDT High Definition Audio CODEC; PNP Device ID HDAUDIO\FUNC_01&VEN_111D&DEV_76E0
    Hard Drives
    Model Hitachi HTS727575A9E364
    Antivirus
    Microsoft Defender
    Other Info
    Mobile Workstation
This works on my Win 11 Pro at home:

wmic /namespace:\\root\cimv2\security\microsofttpm path win32_tpm get ManufacturerIdTxt, ManufacturerVersionInfo, IsActivated_InitialValue

IsActivated_InitialValue ManufacturerIdTxt ManufacturerVersionInfo
TRUE NTC NPCT75x
 

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then
From powershell:

Get-CIMInstance -class Win32_Tpm -namespace root\CIMV2\Security\MicrosoftTpm | Select SpecVersion

Sample output:


Get-CIMInstance -class Win32_Tpm -namespace root\CIMV2\Security\MicrosoftTpm | Select SpecVersion

SpecVersion
-----------
2.0, 0, 1.38
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
We're all hosed when OEMs refuse to upgrade TPMs.

They want us to buy a new PC.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    HP ZBook G2
    CPU
    Intel® Core i7 5500u
    Motherboard
    HP
    Memory
    8 GB
    Graphics Card(s)
    Intel HD Family Graphics AMD Firepro 4150M
    Sound Card
    Realtek High Audio
    Hard Drives
    1 TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Zone Alarm Free Antivirus/Zone Alarm Free Firewall NEXT GEN
  • Operating System
    Windows 11 Pro 24H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Zbook G4
    CPU
    Xeon 1535m v6
    Motherboard
    HP
    Memory
    32 GB
    Graphics card(s)
    AMD Quadro Pro 4100
    Sound Card
    Bang and Olufson Audio
    Hard Drives
    1TB SSD
    Mouse
    HP USB Mouse
    Antivirus
    Zone Alarm Free Antivirus/Zone Alarm Free Firewall NEXT GEN
We're all hosed when OEMs refuse to upgrade TPMs.

They want us to buy a new PC.
I'm not aware of anything sold within the past 5 years+ that is not TPM 2.0 or FTPM 2.0. Even my 8 year old laptop allowed for a FW update to upgrade the TPM from 1.2 to 2.0.
 

My Computers

System One System Two

  • OS
    Win11 Pro 23H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    1Gb Up / 1 Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Win11 Pro 23H2
    Computer type
    Laptop
    Manufacturer/Model
    Lenovo ThinkBook 13x Gen 2
    CPU
    Intel i7-1255U
    Memory
    16 GB
    Graphics card(s)
    Intel Iris Xe Graphics
    Sound Card
    Realtek® ALC3306-CG codec
    Monitor(s) Displays
    13.3-inch IPS Display
    Screen Resolution
    WQXGA (2560 x 1600)
    Hard Drives
    2 TB 4 x 4 NVMe SSD
    PSU
    USB-C / Thunderbolt 4 Power / Charging
    Mouse
    Buttonless Glass Precision Touchpad
    Keyboard
    Backlit, spill resistant keyboard
    Internet Speed
    1Gb Up / 1Gb Down
    Browser
    Edge
    Antivirus
    Windows Defender
    Other Info
    WiFi 6e / Bluetooth 5.1 / Facial Recognition / Fingerprint Sensor / ToF (Time of Flight) Human Presence Sensor
Also add the tpm utility from "Add optional features"

Screenshot 2024-02-27 110110.png

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
I installed TPM diagnostics but how does this give me info from a Command prompt like I can get via WMIC?
It tells me:

1709753462458.png

wmic /namespace:\\root\cimv2\security\microsofttpm path win32_tpm get ManufacturerIdTxt, ManufacturerVersion, IsActivated_InitialValue,ManufacturerVersionInfo,specversion

IsActivated_InitialValue ManufacturerIdTxt ManufacturerVersion ManufacturerVersionInfo SpecVersion
TRUE NTC 7.2.2.0 NPCT75x 2.0, 0, 1.38

Put this in a batch file to make it easy to use.

::
:: Extract TPM information from hardware
::
Echo off
wmic /namespace:\\root\cimv2\security\microsofttpm path win32_tpm get ManufacturerIdTxt, ManufacturerVersion, IsActivated_InitialValue,ManufacturerVersionInfo,specversion
 
Last edited:

My Computer

System One

  • OS
    Windows 11 Pro X64 22H2 22621.1848
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo IdeaCenter K450
    CPU
    Intel Quad Core i7-4770 @ 3.4Ghz 4th Gen
    Memory
    16.0GB PC3-12800 DDR3 SDRAM
    Graphics Card(s)
    EVGA GeForce GTX 780
    Sound Card
    Realtek HD Audio
    Monitor(s) Displays
    Samsung C27F398 27" Curved
    Screen Resolution
    1920x1080
    Hard Drives
    1.0TB Samsung QVO 860 SSD SATA-6GB;
    2TB Seagate ST2000NM0011 72K SATA-6GB;
    2TB Seagate ST2000DM006-2DM164 72K SATA-6GB
    PSU
    CoolerMaster MasterWatt 550 Watt Semifanless Modular
    Keyboard
    Dell USB (KVMS)
    Mouse
    Logitec USB (KVMS)
    Internet Speed
    484.75MB Down, 23.59MB Up
    Browser
    Firefox, Edge - eM Client Pro for E-Mail
    Antivirus
    Windows Defender; MBAM Premium
    Other Info
    Purchased December 2013, many upgrades since then

Latest Support Threads

Back
Top Bottom