Powershell Get-TPM->TpmReady Value

Vid3al 96 Reputation points
2022-10-05T08:12:24.827+00:00

Hello everyone

I'm trying to figure out how to verify a certain piece of information through a powershell query.

"Get-TPM"

https://learn.microsoft.com/en-us/powershell/module/trustedplatformmodule/get-tpm?view=windowsserver2022-ps

I would like to check if the value of "TpmReady", is FALSE or TRUE.

Thank you all for your support.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,463 questions
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
942 questions
Microsoft Configuration Manager
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. rafalzak 3,221 Reputation points
    2022-10-05T08:56:10.81+00:00

    Hi @Vid3al

    get-tpm | select TpmReady  
    

    or

    $tpm = get-tpm  
    $tpm.TpmReady  
    

    Please click upvote or accept as answer if it helped.

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 44,121 Reputation points
    2022-10-11T09:53:50.403+00:00

    Hello there,

    Run the PowerShell as administrator and enter the command get-tpm. If you see TpmEnabled as True, it means the TPM is enabled successfully on your computer.

    More info here https://github.com/MicrosoftDocs/windows-powershell-docs/blob/main/docset/winserver2022-ps/trustedplatformmodule/Get-Tpm.md

    ----------------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept it as an answer--

    1 person found this answer helpful.
    0 comments No comments

  3. Vid3al 96 Reputation points
    2022-10-05T13:44:23.207+00:00

    Ok. Thank you.

    Now, I would like to create a script that shows a message if TpmReady is FALSE, and then pressing on an "Ok" button of the pop-up then the task sequence proceeds with the other Steps.

    while if it is TRUE, it does not have to show anything is to carry on anyway the other Steps of the Task Sequence.

    Thank you all for your support.

    0 comments No comments