-
Notifications
You must be signed in to change notification settings - Fork 128
/
ClearTPM.ps1
35 lines (31 loc) · 949 Bytes
/
ClearTPM.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<#
.SYNOPSIS
Initialize TPM
.DESCRIPTION
This script will turn on the PPI Bypass for TPM clear and Initialize the TPM.
.PARAMETER Password
BIOS Password
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2022 v5.8.207
Created on: 6/28/2022 10:02 AM
Created by: Mick Pletcher
Filename: DellBIOS04.ps1
===========================================================================
#>
param
(
[ValidateNotNullOrEmpty()]
[string]$Password
)
#Install Dell BIOS Provider PowerShell Module
Try {
Import-Module -Name DellBIOSProvider
} Catch {
Find-Module -Name DellBIOSProvider | Install-Module -Force
Import-Module -Name DellBIOSProvider
}
#PPI Bypass for TPM Clear
Set-Item -Path DellSMBIOS:\TPMSecurity\TpmPpiClearOverride Enabled -Password $Password
#Clear TPM
Clear-Tpm