Powershell Get-TPM->TpmReady Value

Vid3al 186 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 for business Windows Server User experience PowerShell
Microsoft Security Intune Configuration Manager Deployment
Microsoft Security Intune Configuration Manager Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. rafalzak 3,251 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,751 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 186 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.