Last active
March 30, 2016 07:31
-
-
Save jespernohr/0f0eccd9aafe153efc5df3c0ba5a80ed to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Clear, Enable and Activate TPM | |
#First, we have to load the WMI class into a variable: | |
$Tpm = Get-wmiobject -Namespace ROOT\CIMV2\Security\MicrosoftTpm -Class Win32_Tpm | |
#Then, a one liner to Clear, Enable and Activate TPM: | |
$Tpm.SetPhysicalPresenceRequest(14) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment