Skip to content

Instantly share code, notes, and snippets.

@jespernohr
Last active March 30, 2016 07:31
Show Gist options
  • Save jespernohr/0f0eccd9aafe153efc5df3c0ba5a80ed to your computer and use it in GitHub Desktop.
Save jespernohr/0f0eccd9aafe153efc5df3c0ba5a80ed to your computer and use it in GitHub Desktop.
#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