Created
November 24, 2022 11:48
-
-
Save Lukaszeq/60b647320eaf596056bbbaa1bfa2de22 to your computer and use it in GitHub Desktop.
Is TPM activated on this machine?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tpmCheck = Get-Tpm | |
$isTpmOn = $tpmCheck."TpmActivated" | |
Write-Host "Is TPM activated on this machine?" | |
$isTpmOn = [bool]$isTpmOn | |
if (($isTpmOn) -eq $true) { | |
Write-Host "Yes, TPM is activated." -ForegroundColor Green | |
} | |
else { | |
Write-Host "No, TPM is not activated." -ForegroundColor Red | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PL 🇵🇱 l10n