diff --git a/winutil.ps1 b/winutil.ps1 index 2a94e43c..c173f1a1 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -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 }