mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-22 14:01:31 -06:00
added check for checking if path exists for TPM (#195)
This commit is contained in:
parent
7ac6d2cbc0
commit
75c6c04b48
@ -673,6 +673,9 @@ $WPFtweaksbutton.Add_Click({
|
||||
}
|
||||
If ( $WPFMiscTweaksDisableTPMCheck.IsChecked -eq $true ) {
|
||||
Write-Host "Disabling TPM Check..."
|
||||
If (!(Test-Path "HKLM:\SYSTEM\Setup\MoSetup")) {
|
||||
New-Item -Path "HKLM:\SYSTEM\Setup\MoSetup" -Force | Out-Null
|
||||
}
|
||||
Set-ItemProperty -Path "HKLM:\SYSTEM\Setup\MoSetup" -Name "AllowUpgradesWithUnsupportedTPM" -Type DWord -Value 1
|
||||
$WPFMiscTweaksDisableTPMCheck.IsChecked = $false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user